diff --git a/atlas/templates/atlas/collection_reset_answers_user_list.html b/atlas/templates/atlas/collection_reset_answers_user_list.html index f2be051d..ecd48659 100644 --- a/atlas/templates/atlas/collection_reset_answers_user_list.html +++ b/atlas/templates/atlas/collection_reset_answers_user_list.html @@ -1,10 +1,14 @@ {% for cid_user_exam in cid_users %} + {% if cid_user_exam.user_user and 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-confirm="Are you sure you want to reset answers for the user? This action cannot be undone." + >{{ cid_user_exam.user_user }} + {% else %} + + {% endif %} + {% endfor %} \ No newline at end of file