This commit is contained in:
Ross
2021-09-08 18:53:41 +01:00
parent afc2746a70
commit 54ff4490d9
8 changed files with 65 additions and 35 deletions
+4 -4
View File
@@ -11,11 +11,11 @@
<div id="stark-marking-button"><a href="{% url 'longs:mark' pk=exam.pk sk=0 %}"><button>Click here to start marking</button></a></div>
<ul id="question-mark-list">
{% for question in questions.all %}
<li data-markcount={{question.get_unmarked_answer_count}}
{% if question.get_unmarked_answer_count %}class="unmarked" {% endif %}
{% for question, unmarked_count in question_unmarked_map %}
<li data-markcount={{unmarked_count}}
{% if unmarked_count %}class="unmarked" {% endif %}
><a href="{% url 'longs:mark' pk=exam.pk sk=forloop.counter0 %}">Question {{forloop.counter }}:
{{ question }}</a><br /> Answers to mark: {{question.get_unmarked_answer_count}}</li>
{{ question }}</a><br /> Answers to mark: {{unmarked_count}}</li>
{% endfor %}
</ul>
</div>