more fixes

This commit is contained in:
Ross
2020-11-26 21:35:06 +00:00
parent 2e555b0b06
commit 79d8143c7e
4 changed files with 41 additions and 18 deletions
+4 -1
View File
@@ -12,7 +12,10 @@
<ol>
{% for question in questions.all %}
<li>{{ question }}<img src="{{ question.image|thumbnail_url:'exam-list' }}" alt="thumbail" /></li>
<li>{{ question.description }}: {{ question.GetPrimaryAnswer }}<img src="{{ question.image|thumbnail_url:'exam-list' }}" alt="thumbail" />
<br />
Exams: {{ question.GetExams }} / Modality: {{ question.modality }}
</li>
{% endfor %}
</ol>
<a href="{% url 'anatomy:exam_json' pk=exam.pk %}">JSON</a>
@@ -2,12 +2,14 @@
{% block content %}
<div class="anatomy">
<h2>{{ exam.name }}</h2>
<h3>Candidate: {{ user_names|get_item:user }}</h3>
<!-- Answers: {{ user_answers_and_marks|get_item:user }}-->
Answers: {% for ans, score in answers_and_marks %}
<h2>Exam: {{ exam.name }}</h2>
<h3>Candidate: {{ cid }}</h3>
Answers:
<ul>{% for ans, score, correct_answer in answers_and_marks %}
<li>Question {{forloop.counter}}: {{ correct_answer }}</li>
{{ans}} ({{score}}),
{% endfor %}
<br /> Total mark: {{ score }}
</ul>
<br /> Total mark: {{ total_score }}
</div>
{% endblock %}