.
This commit is contained in:
@@ -4,13 +4,20 @@
|
|||||||
<div class="sbas">
|
<div class="sbas">
|
||||||
<h2>Exam: {{ exam.name }}</h2>
|
<h2>Exam: {{ exam.name }}</h2>
|
||||||
<h3>Candidate: {{ cid }}</h3>
|
<h3>Candidate: {{ cid }}</h3>
|
||||||
|
{% if not exam.publish_results %}
|
||||||
|
<div class="alert alert-info" role="alert"><h4>Exam results not published</h4>Submitted answers are visible below.</div>
|
||||||
|
{% endif %}
|
||||||
Answers:
|
Answers:
|
||||||
<ul>
|
<ul>
|
||||||
{% for question, a, score, correct_answer, chosen_answer in answers_and_marks %}
|
{% for question, a, score, correct_answer, chosen_answer in answers_and_marks %}
|
||||||
<li class="user-answer-li"><a href="{% url 'sbas:exam_take' exam.pk forloop.counter0 cid passcode %}">Question
|
<li class="user-answer-li"><a href="{% url 'sbas:exam_take' exam.pk forloop.counter0 cid passcode %}">Question
|
||||||
{{forloop.counter}}</a> - {{ question.stem |safe}}</li>
|
{{forloop.counter}}</a> - {{ question.stem |safe}}</li>
|
||||||
<span>Correct answer: {{correct_answer|safe}} <br />Chosen answer: {{a}} {{chosen_answer|safe}} <span class="answer-{{score}}">(Score:
|
<span>Correct answer: {{correct_answer|safe}} <br />Chosen answer: {{a}} {{chosen_answer|safe}}
|
||||||
{{score}})</span></span>
|
{% if exam.publish_results or view_all_results %}
|
||||||
|
<span class="answer-{{score}}">(Score: {{score}})</span>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</span>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
<br /> Total mark: {{ total_score }} / {{max_score}}
|
<br /> Total mark: {{ total_score }} / {{max_score}}
|
||||||
|
|||||||
Reference in New Issue
Block a user