diff --git a/physics/templates/physics/question_form.html b/physics/templates/physics/question_form.html index e20843da..ceb96d51 100644 --- a/physics/templates/physics/question_form.html +++ b/physics/templates/physics/question_form.html @@ -2,39 +2,39 @@ {% load crispy_forms_tags %} {% block content %} -
-
-
-

Add question

-
- {% csrf_token %} - {{ form.media }} +
+
+
+

Add question

+ + {% csrf_token %} + {{ form.media }} - {% if form.non_field_errors %} -
{{ form.non_field_errors }}
- {% endif %} + {% if form.non_field_errors %} +
{{ form.non_field_errors }}
+ {% endif %} - {% if form.helper %} - {% crispy form form.helper %} - {% else %} - {% for field in form %} -
- {{ field.label_tag }} - {{ field }} - {% if field.help_text %} -
{{ field.help_text }}
- {% endif %} - {% for error in field.errors %} -
{{ error }}
- {% endfor %} -
- {% endfor %} - {% endif %} + {% if form.helper %} + {% crispy form form.helper %} + {% else %} + {% for field in form %} +
+ {{ field.label_tag }} + {{ field }} + {% if field.help_text %} +
{{ field.help_text }}
+ {% endif %} + {% for error in field.errors %} +
{{ error }}
+ {% endfor %} +
+ {% endfor %} + {% endif %} - - Cancel - + + Cancel + +
-
{% endblock %}