This commit is contained in:
Ross
2022-04-08 23:18:28 +01:00
parent 11f3836e53
commit e98fa204c0
2 changed files with 15 additions and 0 deletions
+14
View File
@@ -16,6 +16,20 @@
<a href="{% url 'admin:atlas_case_change' case.id %}" title="Edit the Case using the admin interface">Admin Edit</a>
{% endif %}
</div>
{% if collection %}
<div>
{% if previous %}
<a href="{% url 'atlas:collection_case_view' exam.id previous %}">Previous question</a>
{% endif %}
Viewing question as part of collection: {{collection.name}} [{{pos}}/{{collection_length}}]
{% if next %}
<a href="{% url 'atlas:collection_case_view' exam.id next %}">Next question</a>
{% endif %}
</div>
{% endif %}
{% include 'atlas/case_display_block.html' %}
{% endblock %}
+1
View File
@@ -1384,6 +1384,7 @@ def collection_case_view(request, pk, case_number):
{
"form": form,
"collection": collection,
"collection_length": len(collection),
"case": case,
"series_list": series_list,
"case_number": case_number,