This commit is contained in:
Ross
2021-09-08 18:15:08 +01:00
parent 30c701f6b3
commit d375ab4a09
2 changed files with 25 additions and 11 deletions
+4
View File
@@ -704,4 +704,8 @@ input {
.id { .id {
opacity: 50%; opacity: 50%;
font-size: small; font-size: small;
}
.sticky-alert {
position: sticky;
} }
+21 -11
View File
@@ -12,17 +12,20 @@
<h2>Marking question <a href="{% url 'longs:mark' exam.id question_details.current|add:'-1' %}" <h2>Marking question <a href="{% url 'longs:mark' exam.id question_details.current|add:'-1' %}"
title="View question answers">{{question_details.current}}</a> of {{question_details.total}}</h2> title="View question answers">{{question_details.current}}</a> of {{question_details.total}}</h2>
{% if not next_unmarked_id and not unmarked %} {% if not next_unmarked_id and not unmarked %}
<div class="alert alert-info" role="alert">Success! Marking question complete. <br/>Return to <a href="{% url 'longs:mark' exam.id question_details.current|add:'-1' %}">question <div class="alert alert-info stick-alert" role="alert">Success! Marking question complete. <br />Return to <a
overview</a>, <a href="{% url 'longs:mark_overview' pk=exam.pk %}">marking href="{% url 'longs:mark' exam.id question_details.current|add:'-1' %}">question
overview</a><br/> overview</a>, <a href="{% url 'longs:mark_overview' pk=exam.pk %}">marking
{% if previous_cid %} overview</a><br />
<a href="{% url 'longs:mark_answer' pk=exam.pk sk=question_details.current|add:'-1' cid=previous_cid %}">Previous candidate</a> {% if previous_cid %}
{% endif %} <a href="{% url 'longs:mark_answer' pk=exam.pk sk=question_details.current|add:'-1' cid=previous_cid %}">Previous
{% if next_cid %} candidate</a>
<a href="{% url 'longs:mark_answer' pk=exam.pk sk=question_details.current|add:'-1' cid=next_cid %}">Next candidate</a> {% endif %}
{% endif %} {% if next_cid %}
</div> <a href="{% url 'longs:mark_answer' pk=exam.pk sk=question_details.current|add:'-1' cid=next_cid %}">Next
candidate</a>
{% endif %}
</div>
{% endif %} {% endif %}
<span>Marking CID: {{answer.cid}} ({{unmarked|length}} answer(s) left to mark)</span> <span>Marking CID: {{answer.cid}} ({{unmarked|length}} answer(s) left to mark)</span>
@@ -96,4 +99,11 @@
{% endif %} {% endif %}
</form> </form>
</div> </div>
{% if previous_cid %}
<a href="{% url 'longs:mark_answer' pk=exam.pk sk=question_details.current|add:'-1' cid=previous_cid %}">Previous
candidate</a>
{% endif %}
{% if next_cid %}
<a href="{% url 'longs:mark_answer' pk=exam.pk sk=question_details.current|add:'-1' cid=next_cid %}">Next candidate</a>
{% endif %}
{% endblock %} {% endblock %}