Add HTMX endpoint to set open access for exam questions and corresponding result template

This commit is contained in:
Ross
2025-10-20 21:33:03 +01:00
parent 593eafd427
commit 9b9cd8c813
3 changed files with 80 additions and 0 deletions
@@ -0,0 +1,10 @@
<div class="alert alert-info">
{% if changed %}
Updated {{ changed }} question{{ changed|pluralize }} in "{{ exam.name }}". Open access set to {{ state|yesno:"true,false" }}.
{% else %}
No questions were updated.
{% endif %}
<div class="mt-2">
<button class="btn btn-sm btn-secondary" type="button" onclick="document.querySelector('#action-result').innerHTML='';">Close</button>
</div>
</div>