Fix button formatting for user answer reset functionality

This commit is contained in:
Ross
2025-10-13 10:26:11 +01:00
parent 41d1fa605b
commit 1cf18c6f0d
@@ -2,13 +2,12 @@
{% for cid_user_exam in cid_users %} {% for cid_user_exam in cid_users %}
{% if cid_user_exam.user_user and cid_user_exam.user_user.id %} {% if cid_user_exam.user_user and cid_user_exam.user_user.id %}
<button class="btn btn-sm btn-primary" 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-post="{% url 'atlas:collection_reset_answers_user' collection.pk cid_user_exam.user_user.id %}"
hx-swap="outerHTML" hx-swap="outerHTML"
hx-confirm="Are you sure you want to reset answers for the user? This action cannot be undone." hx-confirm="Are you sure you want to reset answers for the user? This action cannot be undone."
>{{ cid_user_exam.user_user }}</button> >{{ cid_user_exam.user_user }}</button>
{% else %} {% else %}
<button class="btn btn-sm btn-secondary" disabled>Unknown user</button> <button class="btn btn-sm btn-secondary" disabled>Unknown user</button>
{% endif %} {% endif %}
{% endfor %} {% endfor %}