This commit is contained in:
Ross
2021-07-29 21:31:30 +01:00
parent 93c174f8c2
commit e6af06d731
+2 -3
View File
@@ -9,7 +9,7 @@ CID: {{cid}}
{{answer_count}} out of {{exam_count}} questions answered. Click to go to question. {{answer_count}} out of {{exam_count}} questions answered. Click to go to question.
<ul class="question-list"> <ul class="question-list">
{% for question, answer in question_answer_tuples %} {% for question, answer in question_answer_tuples %}
<li class=""><a href="{% url sbas:exam_take pk=exam.id sk=forloop.counter0 cid=cid" %}>{{forloop.counter}}: {{answer.answer}}</a></li> <li {% if not answer %}class="unanswered"{% endif %}><a href="{% url 'sbas:exam_take' pk=exam.id sk=forloop.counter0 cid=cid" %}>{{forloop.counter}}: {{answer.answer}}</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
@@ -23,7 +23,6 @@ CID: {{cid}}
{% endblock %} {% endblock %}
{% block css %} {% block css %}
<style type="text/css"> <style type="text/css">
.form-contents { display: none; } .unanswered { border: 1px solid red; }
.selected { border: 1px solid purple; }
</style> </style>
{% endblock %} {% endblock %}