more fixes
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user