This commit is contained in:
Ross
2021-12-17 18:24:51 +00:00
parent 4ee2de687b
commit 335a419dda
2 changed files with 16 additions and 16 deletions
+2 -2
View File
@@ -5,11 +5,11 @@
<h2>Exam: {{exam.name}}</h2>
{% if exam.publish_results %}
{% comment %} {% if exam.publish_results %}
<div class="alert alert-primary" role="alert">
Exam is in review mode. Add question feedback <a href="#" onclick="return window.create_popup_window('{% url 'feedback_create' question_type='physics' pk=question.pk %}')">here</a>.
</div>
{% endif %}
{% endif %} {% endcomment %}
<div><p>Questions</p></div>
{{answer_count}} out of {{exam_length}} questions answered. Click to go to question.
+14 -14
View File
@@ -1,23 +1,23 @@
{% extends 'base.html' %}
{% block content %}
CID: {{cid}}
CID: {{cid}}
<h2>Exam: {{exam.name}}</h2>
<h2>Exam: {{exam.name}}</h2>
<div><p>Questions</p></div>
{{answer_count}} out of {{exam_length}} questions answered. Click to go to question.
<div class="sba-finish-list">
{% for question, answer in question_answer_tuples %}
<a href="{% url 'sbas:exam_take' pk=exam.id sk=forloop.counter0 cid=cid passcode=passcode %}"><button {% if not answer %}class="unanswered"{% endif %}>{{forloop.counter}}: {{answer.answer}}</button></a>
{% endfor %}
</div>
<div><p>Questions</p></div>
{{answer_count}} out of {{exam_length}} questions answered. Click to go to question.
<div class="sba-finish-list">
{% for question, answer in question_answer_tuples %}
<a href="{% url 'sbas:exam_take' pk=exam.id sk=forloop.counter0 cid=cid passcode=passcode %}"><button {% if not answer %}class="unanswered"{% endif %}>{{forloop.counter}}: {{answer.answer}}</button></a>
{% endfor %}
</div>
{% endblock %}
{% block js %}
<script>
$(document).ready(() => {
})
</script>
{% endblock %}
<script>
$(document).ready(() => {
})
</script>
{% endblock %}