Files
penracourses/templates/cid_scores.html
T
Ross 03d8aa5ccc .
2022-04-04 15:05:14 +01:00

45 lines
1.9 KiB
HTML

{% extends 'base.html' %}
{% block content %}
<div class="">
<h2>CID: {{ cid }}</h2>
<h3>Assigned exams</h3>
<p>The following exams will be available to take when active.
{% for exam_type, exams in available_exams %}
<h4>{{exam_type}}</h4>
<ul>
{% for exam in exams %}
<li><a href="{{exam.get_take_url}}?cid={{cid}}&passcode={{passcode}}" target="_blank">{{exam.name}} {% if exam.active %}[Active]{% endif %}</a></li>
{% endfor %}
</ul>
{% endfor %}
<h3>Exam results</h3>
<div>
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|title}}</h4>
<ul>
{% for exam in exams %}
<li><a href="{% url exam_type|add:':exam_scores_cid_user' pk=exam.pk cid=cid passcode=passcode %}">{{exam.name}}</a> {% if exam.active %}[Active]{% endif %} {% if exam.publish_results %}[Results Published]{% endif %}</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</div>
{% if case_collections %}
<div>
The following Case Collections have been found.
<h4>Case Collection</h4>
{% for collection in case_collections %}
<li><a href="{% url atlas:collection_detail' pk=collection.pk %}">{{collection.name}}</a> {% if collection.active %}[Active]{% endif %} {% if collection.publish_results %}[Results Published]{% endif %}</li>
{% endfor %}
</div>
{% endif %}
</div>
{% endblock %}