Enhance exam completion confirmation messages for clarity and user assurance
This commit is contained in:
@@ -205,7 +205,7 @@
|
||||
.finally(()=>{ if(btn){ const s = btn.querySelector('.spinner-border'); if(s) s.remove(); btn.disabled = false; } });
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
// Visual indicators for HTMX add/remove actions
|
||||
document.addEventListener('DOMContentLoaded', function(){
|
||||
document.body.addEventListener('htmx:beforeRequest', function(evt){
|
||||
|
||||
@@ -70,9 +70,9 @@
|
||||
|
||||
{% if not cid_user_exam.completed %}
|
||||
{% if not cid %}
|
||||
<button class="btn btn-primary mt-3" hx-get="{% url 'physics:exam_complete_user' pk=exam.id %}" hx-swap="outerHTML" hx-confirm="Finish exam?">Finish Exam</button>
|
||||
<button class="btn btn-primary mt-3" hx-get="{% url 'physics:exam_complete_user' pk=exam.id %}" hx-swap="outerHTML" hx-confirm="Finish exam?. This will end your attempt and you will not be able to change your answers. Are you sure?">Finish Exam</button>
|
||||
{% else %}
|
||||
<button class="btn btn-primary mt-3" hx-get="{% url 'physics:exam_complete' pk=exam.id cid=cid passcode=passcode %}" hx-swap="outerHTML" hx-confirm="Finish exam?">Finish Exam</button>
|
||||
<button class="btn btn-primary mt-3" hx-get="{% url 'physics:exam_complete' pk=exam.id cid=cid passcode=passcode %}" hx-swap="outerHTML" hx-confirm="Finish exam?. This will end your attempt and you will not be able to change your answers. Are you sure?">Finish Exam</button>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user