This commit is contained in:
Ross
2022-04-04 15:03:03 +01:00
parent d6bc845caf
commit a105197006
2 changed files with 14 additions and 2 deletions
+1 -2
View File
@@ -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,
},
)
+13
View File
@@ -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 %}