.
This commit is contained in:
+1
-2
@@ -136,8 +136,6 @@ def cid_scores(request, pk, passcode):
|
||||
|
||||
case_collections = cid_user.casecollection_exams.all()
|
||||
|
||||
exams.append(("Case Collection", case_collections))
|
||||
|
||||
available_exams = cid_user.get_cid_exams()
|
||||
|
||||
return render(
|
||||
@@ -154,6 +152,7 @@ def cid_scores(request, pk, passcode):
|
||||
"passcode": passcode,
|
||||
"cid_user": cid_user,
|
||||
"available_exams": available_exams,
|
||||
"case_collections": case_collections,
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
{% 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 %}
|
||||
@@ -26,6 +27,18 @@
|
||||
</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="{% atlas:case_collection_overview' pk=collection.pk%}">{{collection.name}}</a> {% if collection.active %}[Active]{% endif %} {% if collection.publish_results %}[Results Published]{% endif %}</li>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user