This commit is contained in:
Ross
2021-07-29 20:14:39 +01:00
parent adcdd4782b
commit f99adbe391
+1 -3
View File
@@ -6,12 +6,10 @@
<h3>Candidate: {{ cid }}</h3> <h3>Candidate: {{ cid }}</h3>
Answers: Answers:
<ul> <ul>
{% for question, ans in answers_and_marks %} {% for question, a, score, correct_answer in answers_and_marks %}
<li class="user-answer-li">Question {{forloop.counter}} - {{ question.stem }}</li> <li class="user-answer-li">Question {{forloop.counter}} - {{ question.stem }}</li>
{% for a, score, correct_answer in ans %}
<span>Correct answer: {{correct_answer}} <br />{{a}} <span class="answer-{{score}}">(Score: {{score}})</span></span> <span>Correct answer: {{correct_answer}} <br />{{a}} <span class="answer-{{score}}">(Score: {{score}})</span></span>
{% endfor %} {% endfor %}
{% endfor %}
</ul> </ul>
<br /> Total mark: {{ total_score }} / {{max_score}} <br /> Total mark: {{ total_score }} / {{max_score}}
<div> <div>