This commit is contained in:
Ross
2022-04-01 19:50:24 +01:00
parent e85813ed32
commit 6c0c50e4e5
3 changed files with 15 additions and 2 deletions
@@ -56,8 +56,15 @@
{% if take %}
<h1>TAKE</h1>
{% endif %}
<div>
{% if previous %}
<a href="{% url 'atlas:collection_case_view' pk=collection.pk case_number=case_number|add:-1 cid=cid passcode=passcode %}">Previous</a>
{% endif %}
{% if next %}
<a href="{% url 'atlas:collection_case_view' pk=collection.pk case_number=case_number|add:1 cid=cid passcode=passcode %}">Next</a>
{% endif %}
</div>
{% else %}
<div>
{% if previous %}
<a href="{% url 'atlas:collection_case_view' pk=collection.pk case_number=case_number|add:-1 %}">Previous</a>
@@ -68,6 +75,9 @@
</div>
<br />
Return to <a href='{{collection.get_absolute_url}}'>collection</a>
{% endif %}
{% endblock %}
{% block js %}
<script type="text/javascript">