fix some collection issues

This commit is contained in:
Ross
2024-07-22 11:35:37 +01:00
parent fe8c5b208b
commit 07d766cb30
5 changed files with 66 additions and 2 deletions
@@ -18,6 +18,15 @@
<h2>Case: <a href="{% url 'atlas:case_detail' case_detail.case.pk %}">{{case_detail.case.title}}</a></h2>
{% if case_detail.question_schema is not None and not case_detail.question_answers %}
<div class="alert alert-danger" role="alert">
<h4 class="alert-heading">Answers not defined!</h4>
<p>A question schema has been defined but no question answers are found.</p>
</div>
{% endif %}
<p>This form allows you to add questions to a case. A example of how the quesiton will be displayed is shown below.</p>
<p>If answers are supplied the question will be automarked</p>
@@ -44,6 +44,21 @@
</button>
<div id='case-list'></div>
</p>
<details>
<summary>Answer management</summary>
<div class="alert alert-danger">
<p>Manage answers for this collection. </p>
Please note these are permanant and cannot be undone.
</div>
<button title="This will clear all user answers and attempts"
hx-post="{% url 'atlas:collection_reset_answers' collection.pk %}"
>Reset all answers</button>
</summary>
{% endif %}
{% include 'exam_overview_js.html' %}
{% endblock %}