From 95f5f27c18380e2fb2f33526c467e822dd10c4d8 Mon Sep 17 00:00:00 2001 From: adityacp Date: Thu, 1 Mar 2018 18:56:13 +0530 Subject: Add basic UI for grading system --- grades/templates/add_grades.html | 12 ++++-- grades/templates/grading_systems.html | 80 +++++++++++++++++++++++++++++------ 2 files changed, 76 insertions(+), 16 deletions(-) diff --git a/grades/templates/add_grades.html b/grades/templates/add_grades.html index 1e4d29e..e4ea915 100644 --- a/grades/templates/add_grades.html +++ b/grades/templates/add_grades.html @@ -1,13 +1,16 @@ +{% extends "manage.html" %} +{% block main %} - Back to Grading Systems + Back to Grading Systems

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

+
{% if not system_id %}
{% else %} {% endif %} {% csrf_token %} - +
{{ grade_form }}
{{ formset.management_form }} @@ -21,10 +24,11 @@
{% endfor %} {% if not is_default %} - - + + {% else %}

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

{% endif %}
+{% endblock %} diff --git a/grades/templates/grading_systems.html b/grades/templates/grading_systems.html index 143b037..baa5610 100644 --- a/grades/templates/grading_systems.html +++ b/grades/templates/grading_systems.html @@ -1,17 +1,73 @@ +{% extends "manage.html" %} +{% block main %} - Default Grading System: - - My grading System: - {% if grading_systems %} -