This commit is contained in:
Ross
2022-04-04 21:44:02 +01:00
parent 14421a8628
commit 9717c9a9f8
@@ -3,27 +3,27 @@
{% block content %} {% block content %}
{% include 'atlas/collection_headers.html' %} {% include 'atlas/collection_headers.html' %}
<ul> <div class="vstack gap-3">
{% for case_detail, answers in case_map.items %} {% for case_detail, answers in case_map.items %}
<li> <div class="bg-light border">
Case: {{case_detail.case.title}}<br/> Case: {{case_detail.case.title}}<br/>
Answers Answers
<ul> <ul>
{% for answer in answers %} {% for answer in answers %}
<li {% if not answer.score %}class="flagged"{% endif %}><a href="{% url 'atlas:collection_mark_question' collection.pk forloop.counter0 %}">{{answer.answer}} <li {% if not answer.score %}class="flagged"{% endif %}><a href="{% url 'atlas:collection_mark_question' collection.pk forloop.counter0 %}">{{answer.answer}}
{% if not answer.score %} {% if not answer.score %}
<span class="badge rounded-pill bg-success">{{answer.score}</span> <span class="badge rounded-pill bg-danger">Unmarked</span>
{% else %} {% else %}
<span class="badge rounded-pill bg-danger">{{answer.score}</span> <span class="badge rounded-pill bg-success">{{answer.score}}</span>
{% endif %} {% endif %}
}</a></li> }</a></li>
{% endfor %} {% endfor %}
</ul> </ul>
</li> </div>
{% endfor %} {% endfor %}
</ul> </div>
{% endblock %} {% endblock %}