.
This commit is contained in:
+23
-13
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user