blob: baa5610a191c89891b3bace3ba7c3e26862e7a05 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
|
{% extends "manage.html" %}
{% block main %}
<html>
<a href="{% url 'grades:add_grade' %}" class="btn btn-primary"> Add a Grading System </a>
<br><br>
<b> Available Grading Systems: </b>
<table class="table">
<tr>
<th>Grading System</th>
<th>Grading Ranges</th>
</tr>
<tr>
<td>
<a href="{% url 'grades:edit_grade' default_grading_system.id %}">
{{ default_grading_system.name }}</a> (<b>Default Grading System</b>)
</td>
<td>
<table class="table">
<tr>
<th>Lower Limit</th>
<th>Upper Limit</th>
<th>Grade</th>
<th>Description</th>
</tr>
{% for range in default_grading_system.graderange_set.all %}
<tr>
<td>{{range.lower_limit}}</td>
<td>{{range.upper_limit}}</td>
<td>{{range.grade}}</td>
{% if range.description %}
<td>{{range.description}}</td>
{% else %}
<td>------</td>
{% endif %}
</tr>
{% endfor %}
</table>
</td>
</tr>
{% if grading_systems %}
{% for system in grading_systems %}
<tr>
<td>
<a href="{% url 'grades:edit_grade' system.id %}">{{ system.name }}</a>
</td>
<td>
<table class="table">
<tr>
<th>Lower Limit</th>
<th>Upper Limit</th>
<th>Grade</th>
<th>Description</th>
</tr>
{% for range in system.graderange_set.all %}
<tr>
<td>{{range.lower_limit}}</td>
<td>{{range.upper_limit}}</td>
<td>{{range.grade}}</td>
{% if range.description %}
<td>{{range.description}}</td>
{% else %}
<td>------</td>
{% endif %}
</tr>
{% endfor %}
</table>
</td>
</tr>
{% endfor %}
</table>
{% endif %}
</html>
{% endblock %}
|