This commit is contained in:
Ross
2021-12-17 16:40:42 +00:00
parent a0bb014b91
commit 0ba0785f53
2 changed files with 72 additions and 46 deletions
+23 -13
View File
@@ -5,18 +5,28 @@
<h2>CID: {{ cid }}</h2>
<h3>Assigned exams</h3>
<p>The following exams will be available to take when active.
{% for t, exams in available_exams %}
<h4>{{t}}</h4>
<ul>
{% for e in exams %}
<li><a href="{{e.get_take_url}}?cid={{cid}}&passcode={{passcode}}" target="_blank">{{e.name}} {% if e.active %}[Active]{% endif %}</a></li>
{% endfor %}
</ul>
{% endfor %}
{% for t, exams in available_exams %}
<h4>{{t}}</h4>
<ul>
{% for e in exams %}
<li><a href="{{e.get_take_url}}?cid={{cid}}&passcode={{passcode}}" target="_blank">{{e.name}} {% if e.active %}[Active]{% endif %}</a></li>
{% endfor %}
</ul>
{% endfor %}
<h3>Exam results</h3>
The following exam results been found. Click to view answers (and scores when the results are published):
{% if physics_exams %}
<h3>Exam results</h3>
The following exam results been found. Click to view answers (and scores when the results are published):
{% for exam_type, exams in all_exams %}
{% if exams %}
<h4>{{exam_type}}</h4>
<ul>
{% for exam in exams %}
<li><a href="{% url '{{exam_type}}:exam_scores_cid_user' pk=exam.pk sk=cid passcode=passcode %}">{{exam.name}}</a> {% if exam.active %}[Active]{% endif %} {% if exam.publish_results %}[Results Published]{% endif %}</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
{% comment %} {% if physics_exams %}
<h4>Physics</h4>
<ul>
{% for exam in physics_exams %}
@@ -55,6 +65,6 @@
<li><a href="{% url 'sbas:exam_scores_cid_user' pk=exam.pk sk=cid passcode=passcode %}">{{exam.name}}</a> {% if exam.active %}[Active]{% endif %} {% if exam.publish_results %}[Results Published]{% endif %}</li>
{% endfor %}
</ul>
{% endif %}
</div>
{% endif %} {% endcomment %}
</div>
{% endblock %}