This commit is contained in:
Ross
2021-07-29 21:29:20 +01:00
parent 11d882bfdb
commit 08b8bae669
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -6,10 +6,10 @@ CID: {{cid}}
<h2>Exam: {{exam.name}}</h2>
<div><p>Questions</p></div>
{{answer_count}} out of {exam_count} questions answered.
{{answer_count}} out of {{exam_count}} questions answered. Click to go to question.
<ul class="question-list">
{% for question, answer in question_answer_tuples %}
<li class="">{{forloop.counter}}: {{answer.answer}}</li>
<li class=""><a href="{% url sbas:exam_take pk=exam.id sk=forloop.counter0 cid=cid">{{forloop.counter}}: {{answer.answer}}</a></li>
{% endfor %}
</ul>
+1
View File
@@ -263,6 +263,7 @@ def exam_finish(request, pk, cid):
"sbas/exam_finish.html",
{
"exam": exam,
"cid": cid,
"question_answer_tuples": question_answer_tuples,
"answer_count": len(answers),
"exam_length": len(questions),