diff --git a/bulletin/templates/bulletin/_form.html b/bulletin/templates/bulletin/_form.html index 72d2a72..8dd2177 100644 --- a/bulletin/templates/bulletin/_form.html +++ b/bulletin/templates/bulletin/_form.html @@ -27,7 +27,7 @@
- + {% render_field form.content class='form-control text_wysiwyg' %} {{ form.content.help_text }} @@ -69,6 +69,49 @@
+ + {% render_field form.file_content class='file-selector' %} + +
+ + + + +
+ +
+ {% if bulletin %} +
+ + {{ bulletin.filename }} + {% else %} + {% trans 'Click or drop the .xls file with the goals data' %}
+ + {% trans 'The file could not exceed 1MB.' %} + {% endif %} +
+ + {{ form.file_content.help_text }} + + {% if form.file_content.errors %} + + {% endif %} +
+ + + +
{% render_field form.tags class='form-control' data-role="tagsinput" %} @@ -197,81 +240,7 @@
-
-
- -
-
-
-
- -
- - {{ form.all_students.help_text }} - - {% if form.all_students.errors %} - - {% endif %} -
-

{% trans 'Attribute students to bulletin' %}:

- {% render_field form.students class='form-control' %} - - {{ form.students.help_text }} - - {% if form.students.errors %} - - {% endif %} - -
- -

{% trans 'Attribute groups to bulletin' %}:

- {% render_field form.groups class='form-control' %} - - {{ form.groups.help_text }} - - {% if form.groups.errors %} - - {% endif %} -
-
-- libgit2 0.21.2