From 4cce4441533b6de18b73359bdd768d6d8fca2300 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 27 Oct 2025 22:23:52 +0000 Subject: [PATCH] Refactor exam_take.html for improved layout, accessibility, and user experience --- sbas/templates/sbas/exam_take.html | 150 +++++++++++++++++------------ 1 file changed, 91 insertions(+), 59 deletions(-) diff --git a/sbas/templates/sbas/exam_take.html b/sbas/templates/sbas/exam_take.html index bc871298..619b5bbd 100755 --- a/sbas/templates/sbas/exam_take.html +++ b/sbas/templates/sbas/exam_take.html @@ -1,72 +1,104 @@ {% extends 'base.html' %} {% block content %} - - {% if request.user.is_authenticated %} - User: {{request.user}} - {% else %} - CID: {{cid}} - {% endif %} - - {% include "exam_clock.html" %} -
-

{{exam}}: Question [{{pos|add:1}}/{{exam_length}}]

- {% if exam.publish_results %} - - {% elif cid_user_exam.completed %} - - {% endif %} - -
-

{{question.stem|safe}}

-
- - - -
- -
{% csrf_token %} -
- {{form}} -
- - {% if previous > -1 %} - - {% endif %} - {% if next %} - +
+
+ + + {% if request.user.is_authenticated %} + User: {{ request.user }} {% else %} - {% if not exam.publish_results %} - - {% endif %} + CID: {{ cid }} {% endif %} - - {% if exam.publish_results and question.feedback %} -

Feedback

-

{{question.feedback|safe}}

- {% endif %} -
- - - +
+

{{ exam }}: Question [{{ pos|add:1 }}/{{ exam_length }}]

+ +
+ {% include "exam_clock.html" %}
-

Questions

- {% endblock %} {% block js %}