.
This commit is contained in:
+3
-1
@@ -3,6 +3,8 @@
|
||||
{% block content %}
|
||||
<div class="">
|
||||
<h2>404 error</h2>
|
||||
Page not found....
|
||||
{{ reason }}
|
||||
|
||||
<h3>a {{resolved}}</h3>
|
||||
</div>
|
||||
{% endblock %}
|
||||
+29
-25
@@ -4,43 +4,47 @@
|
||||
<div class="">
|
||||
<h2>CID: {{ cid }}</h2>
|
||||
<h3>Assigned exams</h3>
|
||||
<p>The following exams will be available to take when active.
|
||||
<div id="exam-assigned">
|
||||
The following exams will be available to take when active.
|
||||
{% for exam_type, exams in available_exams %}
|
||||
<h4>{{exam_type}}</h4>
|
||||
<ul>
|
||||
<ul class='{{exam_type}}'>
|
||||
{% 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>
|
||||
<li class="exam"><a href="{{exam.get_take_url}}?cid={{cid}}&passcode={{passcode}}" target="_blank">{{exam.name}} {% if exam.active %}[Active]{% endif %}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endfor %}
|
||||
|
||||
{% if all_exams %}
|
||||
<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>
|
||||
{% endif %}
|
||||
<h3>Exam results</h3>
|
||||
<div id="exam-results">
|
||||
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 class='{{exam_type}}'>
|
||||
{% for exam in exams %}
|
||||
<li class="exam"><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>
|
||||
{% endif %}
|
||||
|
||||
{% if case_collections %}
|
||||
<div>
|
||||
<h3>Case Collection</h3>
|
||||
The following Case Collections have been found.
|
||||
{% for collection in case_collections %}
|
||||
<li><a href="{{collection.get_take_url}}?cid={{cid}}&passcode={{passcode}}">{{collection.name}}</a> {% if collection.active %}[Active]{% endif %} {% if collection.publish_results %}[Results Published]{% endif %}</li>
|
||||
|
||||
{% endfor %}
|
||||
<div>
|
||||
<h3>Case Collection</h3>
|
||||
The following Case Collections have been found.
|
||||
<ul>
|
||||
{% for collection in case_collections %}
|
||||
<li><a href="{{collection.get_take_url}}?cid={{cid}}&passcode={{passcode}}">{{collection.name}}</a> {% if collection.active %}[Active]{% endif %} {% if collection.publish_results %}[Results Published]{% endif %}</li>
|
||||
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="">
|
||||
<h2>{{exam.name}}</h2>
|
||||
Exam is currently inactive.
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -13,4 +13,6 @@
|
||||
{% if request.user.is_staff %}
|
||||
<p><a href="{% url 'password_change' %}">Change password</a></p>
|
||||
{% endif %}
|
||||
|
||||
<p>This page is for user account logins. If you have a CID / Passcode <a href="{% url 'cid_selector' %}">click here</a>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user