This commit is contained in:
Ross
2021-09-21 19:56:50 +01:00
parent 9881e8bd56
commit 0a1b331151
+36 -36
View File
@@ -1,41 +1,41 @@
{% extends 'sbas/base.html' %} {% extends 'sbas/base.html' %}
{% block content %} {% block content %}
<div class="question"> <div class="question">
<a href="{% url 'admin:sbas_question_change' question.id %}" <a href="{% url 'admin:sbas_question_change' question.id %}"
title="Edit the Question using the admin interface">Admin Edit</a> title="Edit the Question using the admin interface">Admin Edit</a>
<a href="{% url 'feedback_create' question_type='sbas' pk=question.pk %}"> Add Note</a> <a href="{% url 'feedback_create' question_type='sbas' pk=question.pk %}"> Add Note</a>
<div class="date"> <div class="date">
Created: {{ question.created_date|date:"d/m/Y"}} Created: {{ question.created_date|date:"d/m/Y"}}
</div> </div>
{% autoescape off %} {% autoescape off %}
<span>{{question.stem}}</span> <span>{{question.stem}}</span>
<div> <div>
<ol class="abcde"> <ol class="abcde">
<li>{{ question.a_answer }}</li> <li>{{ question.a_answer }}</li>
<li>{{ question.b_answer }}</li> <li>{{ question.b_answer }}</li>
<li>{{ question.c_answer }}</li> <li>{{ question.c_answer }}</li>
<li>{{ question.d_answer }}</li> <li>{{ question.d_answer }}</li>
<li>{{ question.e_answer }}</li> <li>{{ question.e_answer }}</li>
</ol> </ol>
Best answer: {{ question.best_answer }} ({{question.get_correct_answer_stripped}}) Best answer: {{ question.best_answer }} ({{question.get_correct_answer_stripped}})
</div> </div>
{% endautoescape %} {% endautoescape %}
<div> <div>
Examinations: {% for exam in question.exams.all %} Examinations: {% for exam in question.exams.all %}
<a href="{% url 'sbas:exam_overview' pk=exam.pk %}">{{ exam.name }}</a> <a href="{% url 'sbas:exam_overview' pk=exam.pk %}">{{ exam.name }}</a>
{% endfor %} {% endfor %}
</div> </div>
<div> <div>
Category: {{ question.category }} Category: {{ question.category }}
</div> </div>
<div> <div>
Author: {% for user in question.author.all %} Author: {% for user in question.author.all %}
{{ author }}, {{ author }},
{% endfor %} {% endfor %}
</div> </div>
{% include 'question_notes.html' %} {% include 'question_notes.html' %}
</div> </div>
{% endblock %} {% endblock %}