Implement exam selection feature with HTMX support in exam edit view and add exam selection fragment template

This commit is contained in:
Ross
2025-10-20 21:01:03 +01:00
parent bdb7aff5d1
commit d342e7e047
3 changed files with 52 additions and 3 deletions
+3 -3
View File
@@ -21,9 +21,9 @@
</div>
<div class="btn-group" role="group">
<button id="button-select-add-exam" class="btn btn-outline-primary btn-sm"
data-exam_json_edit_url="{% url 'generic:generic_exam_json_edit' %}"
data-exam_list_url="{% url 'api-1:'|add:app_name|add:'_user_exams' %}"
data-type={{app_name}} data-csrf="{{ csrf_token }}">Add to exam</button>
hx-get="{% url 'generic:generic_exam_json_edit' %}?type={{ app_name }}"
hx-target="#action-result"
hx-swap="innerHTML">Add to exam</button>
</div>
</div>
</div>