summaryrefslogtreecommitdiff
path: root/grades
diff options
context:
space:
mode:
authoradityacp2021-02-01 17:38:00 +0530
committeradityacp2021-02-01 17:38:00 +0530
commitfca319fefcd2a0e476415968b18873b0c791a5fe (patch)
treed16d5308d643a3b619b28360eedd173fff49f48b /grades
parent164d4d79787f3f6ef21a213bd647e885bf1cc899 (diff)
downloadonline_test-fca319fefcd2a0e476415968b18873b0c791a5fe.tar.gz
online_test-fca319fefcd2a0e476415968b18873b0c791a5fe.tar.bz2
online_test-fca319fefcd2a0e476415968b18873b0c791a5fe.zip
Change templates and models
- Remove unwanted model manager methods - Minor UI refactor for course and question interface
Diffstat (limited to 'grades')
-rw-r--r--grades/templates/add_grades.html10
-rw-r--r--grades/templates/grading_systems.html6
2 files changed, 10 insertions, 6 deletions
diff --git a/grades/templates/add_grades.html b/grades/templates/add_grades.html
index c7006a9..29da212 100644
--- a/grades/templates/add_grades.html
+++ b/grades/templates/add_grades.html
@@ -7,8 +7,8 @@
<script type="text/javascript" src="{% static 'yaksh/js/tinymce/js/tinymce/tinymce.min.js' %}"></script>
<script type="text/javascript" src="{% static 'yaksh/js/add_grades.js' %}"></script>
{% endblock %}
-{% block main %}
-<html>
+{% block content %}
+<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<ul class="nav nav-pills" id="course_tabs">
@@ -31,6 +31,7 @@
</div>
</div>
<hr>
+<div class="container">
<a href="{% url 'grades:grading_systems'%}" class="btn btn-primary btn-lg">
View Grading Systems
</a>
@@ -89,7 +90,6 @@
{{ hidden }}
{% endfor %}
<b><u>Grade Range {{forloop.counter}}.</u></b>
- <div class="container">
<div class="row">
{% for field in form.visible_fields %}
<div class="col-sm-3">
@@ -100,7 +100,6 @@
</div>
{% endfor %}
</div>
- </div>
{% endfor %}
</div>
</table>
@@ -114,5 +113,6 @@
{% endif %}
<br><br>
</form>
-</html>
+</div>
+</div>
{% endblock %}
diff --git a/grades/templates/grading_systems.html b/grades/templates/grading_systems.html
index 46b3d30..841b1ad 100644
--- a/grades/templates/grading_systems.html
+++ b/grades/templates/grading_systems.html
@@ -1,8 +1,9 @@
{% extends "manage.html" %}
{% block title %} View Grading Systems {% endblock %}
{% block pagetitle %} View Grading Systems {% endblock %}
-{% block main %}
+{% block content %}
<html>
+<div class="container-fluid">
<div class="row">
<div class="col-md-8">
<ul class="nav nav-pills" id="course_tabs">
@@ -25,6 +26,7 @@
</div>
</div>
<hr>
+ <div class="container">
<a href="{% url 'grades:add_grade' %}" class="btn btn-success btn-lg">
<span class=" fa fa-plus-circle"></span>&nbsp;Add a Grading System
</a>
@@ -95,5 +97,7 @@
{% endfor %}
</table>
{% endif %}
+ </div>
+</div>
</html>
{% endblock %}