This commit is contained in:
Ross
2021-08-20 21:54:32 +01:00
parent debeef56b9
commit 12d6ae1bf3
3 changed files with 13 additions and 13 deletions
+6 -6
View File
@@ -21,22 +21,22 @@
{% for question in questions.all %} {% for question in questions.all %}
<li> <li>
{{ question.stem }} {{ question.stem|safe }}
<ol type="a" class="abcde"> <ol type="a" class="abcde">
<li> <li>
{{ question.a_answer }} {{ question.a_answer|safe }}
</li> </li>
<li> <li>
{{ question.b_answer }} {{ question.b_answer|safe }}
</li> </li>
<li> <li>
{{ question.c_answer }} {{ question.c_answer|safe }}
</li> </li>
<li> <li>
{{ question.d_answer }} {{ question.d_answer|safe }}
</li> </li>
<li> <li>
{{ question.e_answer }} {{ question.e_answer|safe }}
</li> </li>
Best answer : {{question.best_answer}} Best answer : {{question.best_answer}}
</ol> </ol>
+1 -1
View File
@@ -7,7 +7,7 @@
Answers: Answers:
<ul> <ul>
{% for question, a, score, correct_answer 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 |safe}}</li>
<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 %}
</ul> </ul>
+6 -6
View File
@@ -5,13 +5,13 @@ CID: {{cid}}
<h2>Question [{{pos}}/{{exam_length}}]</h2> <h2>Question [{{pos}}/{{exam_length}}]</h2>
<div><p>{{question.stem}}</p></div> <div><p>{{question.stem|safe}}</p></div>
<ul class="sba-answer-list"> <ul class="sba-answer-list">
<li data-ans="a">{{question.a_answer}}</li> <li data-ans="a">{{question.a_answer|safe}}</li>
<li data-ans="b">{{question.b_answer}}</li> <li data-ans="b">{{question.b_answer|safe}}</li>
<li data-ans="c">{{question.c_answer}}</li> <li data-ans="c">{{question.c_answer|safe}}</li>
<li data-ans="d">{{question.d_answer}}</li> <li data-ans="d">{{question.d_answer|safe}}</li>
<li data-ans="e">{{question.e_answer}}</li> <li data-ans="e">{{question.e_answer|safe}}</li>
</ul> </ul>
<ul></ul> <ul></ul>