From 29f93bce956af26e1b3ffe5ffc04e02c9f32de59 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 2 Jan 2020 15:34:18 +0530 Subject: Change UI in add grades template --- grades/templates/add_grades.html | 97 +++++++++++++++++++++++++++++++--------- 1 file changed, 77 insertions(+), 20 deletions(-) (limited to 'grades/templates/add_grades.html') diff --git a/grades/templates/add_grades.html b/grades/templates/add_grades.html index a3f52da..d05a9bb 100644 --- a/grades/templates/add_grades.html +++ b/grades/templates/add_grades.html @@ -1,9 +1,51 @@ {% extends "manage.html" %} +{% load custom_filters %} +{% block title %} Add/Edit Grading {% endblock %} {% block main %} - Back to Grading Systems -

-

Note: For grade range lower limit is inclusive and upper limit is exclusive

+


+
+
+ +
+
+
+
+ Note: For grade range lower limit is inclusive and upper limit is exclusive +

{% if not system_id %}
@@ -12,24 +54,39 @@ {% endif %} {% csrf_token %} - {{ grade_form }} + {% for field in grade_form %} + {{ field }} +
+ {% 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 %} +
+ {% endfor %} +
- {{ formset.management_form }} -
- Grade Ranges -
- {% for form in formset %} -
- {{ form }} -
-
- {% endfor %} - {% if not is_default %} - - - {% else %} -

Note: This is a default grading system. You cannot change this.

- {% endif %} + {% if not is_default %} + + + {% else %} +
+ Note: This is a default grading system. You cannot change this. +
+ {% endif %} +

{% endblock %} -- cgit 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/templates/add_grades.html') 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 From 664fa46ba041ebdc5912a3bf125056bbc52b1f95 Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 3 Jan 2020 11:17:04 +0530 Subject: Remove unncessary break html tags and add bootstrap custom file input --- grades/templates/add_grades.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'grades/templates/add_grades.html') diff --git a/grades/templates/add_grades.html b/grades/templates/add_grades.html index 97c3c47..6a9dec9 100644 --- a/grades/templates/add_grades.html +++ b/grades/templates/add_grades.html @@ -1,9 +1,9 @@ {% extends "manage.html" %} {% load custom_filters %} {% block title %} Add/Edit Grading {% endblock %} +{% block pagetitle %} Add/Edit Grading {% endblock %} {% block main %} -



+ + View Grading Systems + +

Note: For grade range lower limit is inclusive and upper limit is exclusive
-- cgit From 687a1a676eadbda5c57f3387fbaa8dd3e9359511 Mon Sep 17 00:00:00 2001 From: adityacp Date: Wed, 12 Feb 2020 14:20:23 +0530 Subject: Fix views tests --- grades/templates/add_grades.html | 5 ----- 1 file changed, 5 deletions(-) (limited to 'grades/templates/add_grades.html') diff --git a/grades/templates/add_grades.html b/grades/templates/add_grades.html index 6a9dec9..59a344d 100644 --- a/grades/templates/add_grades.html +++ b/grades/templates/add_grades.html @@ -12,11 +12,6 @@ My Courses -