From eb05d4b0bc3fd0e2ce5160f30251bd9b939ccef6 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 2 Jan 2020 15:56:43 +0530 Subject: Show the grading ranges in a single line --- grades/templates/add_grades.html | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'grades') diff --git a/grades/templates/add_grades.html b/grades/templates/add_grades.html index d05a9bb..97c3c47 100644 --- a/grades/templates/add_grades.html +++ b/grades/templates/add_grades.html @@ -60,21 +60,24 @@ {% endfor %} {{ formset.management_form }}
-
+
{% for form in formset %} {% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} Grade Range {{forloop.counter}}. -
- {% for field in form.visible_fields %} - {% if field.field.widget|is_checkbox %} - {{field.label}} - {% endif %} - {{ field }} -
- {% endfor %} -
+
+
+ {% for field in form.visible_fields %} +
+ {% if field.field.widget|is_checkbox %} + {{ field.label_tag }} + {% endif %} + {{ field }} +
+ {% endfor %} +
+
{% endfor %}
-- cgit