summaryrefslogtreecommitdiff
path: root/grades/templates
diff options
context:
space:
mode:
authoradityacp2020-03-04 17:11:20 +0530
committeradityacp2020-03-04 17:11:20 +0530
commit674c81d9e1d3499e255e8995701fb65d1358a0ac (patch)
tree72a46393825b06607cc81cc0c8d3af1f50babbbf /grades/templates
parentf85fbae3c76595a8f2039a60c0e7051d39dfe643 (diff)
downloadonline_test-674c81d9e1d3499e255e8995701fb65d1358a0ac.tar.gz
online_test-674c81d9e1d3499e255e8995701fb65d1358a0ac.tar.bz2
online_test-674c81d9e1d3499e255e8995701fb65d1358a0ac.zip
Change settings
- Add messages in grading systems page - Add password validator in settings - Fix naming in templates
Diffstat (limited to 'grades/templates')
-rw-r--r--grades/templates/add_grades.html35
-rw-r--r--grades/templates/grading_systems.html2
2 files changed, 34 insertions, 3 deletions
diff --git a/grades/templates/add_grades.html b/grades/templates/add_grades.html
index 59a344d..f53a337 100644
--- a/grades/templates/add_grades.html
+++ b/grades/templates/add_grades.html
@@ -14,7 +14,7 @@
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'yaksh:add_course' %}">
- Add New Course
+ Add/Edit Course
</a>
</li>
<li class="nav-item dropdown hide">
@@ -46,13 +46,44 @@
Note: For grade range lower limit is inclusive and upper limit is exclusive
</div>
<br>
+{% if messages %}
+ {% for message in messages %}
+ <div class="alert alert-dismissible alert-{{ message.tags }}">
+ <button type="button" class="close" data-dismiss="alert">
+ <i class="fa fa-close"></i>
+ </button>
+ <strong>{{ message }}</strong>
+ </div>
+ {% endfor %}
+ <br>
+{% endif %}
{% if not system_id %}
<form action="{% url 'grades:add_grade' %}" method="POST">
{% else %}
<form action="{% url 'grades:edit_grade' system_id %}" method="POST">
{% endif %}
{% csrf_token %}
- <table class="table">
+ <table class="table table-responsive-sm">
+ {% if grade_form.errors %}
+ {% for field in grade_form %}
+ {% for error in field.errors %}
+ <div class="alert alert-dismissible alert-danger">
+ <button type="button" class="close" data-dismiss="alert">
+ <i class="fa fa-close"></i>
+ </button>
+ <strong>{{ error|escape }}</strong>
+ </div>
+ {% endfor %}
+ {% endfor %}
+ {% for error in grade_form.non_field_errors %}
+ <div class="alert alert-dismissible alert-danger">
+ <button type="button" class="close" data-dismiss="alert">
+ <i class="fa fa-close"></i>
+ </button>
+ <strong>{{ error|escape }}</strong>
+ </div>
+ {% endfor %}
+ {% endif %}
{% for field in grade_form %}
{{ field }}
<hr>
diff --git a/grades/templates/grading_systems.html b/grades/templates/grading_systems.html
index 8102230..88adfa0 100644
--- a/grades/templates/grading_systems.html
+++ b/grades/templates/grading_systems.html
@@ -13,7 +13,7 @@
</li>
<li class="nav-item">
<a class="nav-link" href="{% url 'yaksh:add_course' %}">
- Add New Course
+ Add/Edit Course
</a>
</li>
<li class="nav-item dropdown hide">