From 681a7560ba2f4597f6e5c4ecc601ad47e48dd8db Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 17 Nov 2025 12:12:31 +0000 Subject: [PATCH] Refactor question form layout: improve indentation and formatting for better readability --- physics/templates/physics/question_form.html | 60 ++++++++++---------- 1 file changed, 30 insertions(+), 30 deletions(-) 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 %}