Enhance navigation buttons for previous and next candidates with improved styling and accessibility features

This commit is contained in:
Ross
2025-09-08 10:50:18 +01:00
parent d7a410e8f8
commit 83e8c14f31
+7 -4
View File
@@ -154,13 +154,16 @@
Return to <a class="marking-link" href="{% url 'shorts:mark' exam.id question_details.current|add:'-1' %}">question Return to <a class="marking-link" href="{% url 'shorts:mark' exam.id question_details.current|add:'-1' %}">question
overview</a>, <a class="marking-link" href="{% url 'shorts:mark_overview' pk=exam.pk %}">marking overview</a>, <a class="marking-link" href="{% url 'shorts:mark_overview' pk=exam.pk %}">marking
overview</a><br /> overview</a><br />
{% if previous_answer_id %} {% if previous_answer_id %}
<a href="{% url 'shorts:mark_answer' exam_id=exam.pk question_number=question_details.current|add:'-1' answer_id=previous_answer_id %}">Previous <a href="{% url 'shorts:mark_answer' exam_id=exam.pk question_number=question_details.current|add:'-1' answer_id=previous_answer_id %}" class="btn btn-sm btn-secondary">Previous candidate</a>
candidate</a> {% else %}
<a class="btn btn-sm btn-secondary disabled-link" tabindex="-1" aria-disabled="true" style="pointer-events: none; color: #aaa; text-decoration: none;">Previous candidate</a>
{% endif %} {% endif %}
{% if next_answer_id %} {% if next_answer_id %}
<a href="{% url 'shorts:mark_answer' exam_id=exam.pk question_number=question_details.current|add:'-1' answer_id=next_answer_id %}">Next <a href="{% url 'shorts:mark_answer' exam_id=exam.pk question_number=question_details.current|add:'-1' answer_id=next_answer_id %}" class="btn btn-sm btn-secondary">Next candidate</a>
candidate</a> {% else %}
<a class="btn btn-sm btn-secondary disabled-link" tabindex="-1" aria-disabled="true" style="pointer-events: none; color: #aaa; text-decoration: none;">Next candidate</a>
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}