This commit is contained in:
Ross
2024-11-18 10:56:41 +00:00
parent 00323cc6bd
commit 8be4c4f923
2 changed files with 13 additions and 12 deletions
+12 -11
View File
@@ -4,8 +4,9 @@
<h2>{{collection.name}}</h2>
{% include 'exam_notes.html' %}
<div>
Exam mode: {{collection.exam_mode}}<br />
Exam mode: {{collection.exam_mode}} (Exam open acess: {{collection.exam_open_access}})<br />
Publish results: {{collection.publish_results}}<br />
Active: {{collection.active}}<br />
Collection Type: {{collection.get_collection_type_display}}<br />
@@ -33,7 +34,7 @@
<p>View as a viva collection <a href='{% url "atlas:collection_viva" collection.pk %}'>here</a>
{% else %}
<p>This collection will be available to view/take <a href='{{collection.get_take_url}}'>here</a> (when active)
<p>Review collection <a href='{% url "atlas:collection_viva" collection.pk %}'>here</a>
<p>Review collection <a href='{% url "atlas:collection_viva" collection.pk %}'>here</a>
{% endif %}
{% if can_edit %}
@@ -50,24 +51,24 @@
<summary>Answer management</summary>
<div class="alert alert-danger">
<p>Manage answers for this collection. </p>
<p>Manage answers for this collection. </p>
Please note these are permanant and cannot be undone.
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 %}"
hx-swap="outerHTML"
hx-confirm="Are you sure you want to reset all answers? This action cannot be undone."
hx-post="{% url 'atlas:collection_reset_answers' collection.pk %}"
hx-swap="outerHTML"
hx-confirm="Are you sure you want to reset all answers? This action cannot be undone."
>Reset all answers</button>
<button title="This will specific user answers and attempts"
hx-post="{% url 'atlas:collection_reset_answers_user_list' collection.pk %}"
hx-swap="innerHTML"
hx-target="#user-list"
hx-post="{% url 'atlas:collection_reset_answers_user_list' collection.pk %}"
hx-swap="innerHTML"
hx-target="#user-list"
>Reset user answers</button>
<div id="user-list"></div>
</details>
{% endif %}
{% include 'exam_overview_js.html' %}
@@ -1,6 +1,6 @@
{% for cid_user_exam in cid_users %}
<button title="This will clear the user answers and attempts"
<button class="btn btn-sm btn-primary" title="This will clear the user answers and attempts"
hx-post="{% url 'atlas:collection_reset_answers_user' collection.pk cid_user_exam.user_user.id %}"
hx-swap="outerHTML"
hx-confirm="Are you sure you want to reset answers for the user? This action cannot be undone."