From 8b7da1554accd9e65f2d10d07f1cb3508724872f Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 5 Jan 2026 14:53:03 +0000 Subject: [PATCH] Refactor exam question fragment to reposition flag button within the button row for improved layout and accessibility during HTMX updates. --- .../physics/partials/exam_take_fragment.html | 47 +++++++++++-------- 1 file changed, 27 insertions(+), 20 deletions(-) diff --git a/physics/templates/physics/partials/exam_take_fragment.html b/physics/templates/physics/partials/exam_take_fragment.html index 7999b40e..dc8626b3 100644 --- a/physics/templates/physics/partials/exam_take_fragment.html +++ b/physics/templates/physics/partials/exam_take_fragment.html @@ -1,6 +1,5 @@
- {% include 'physics/partials/exam_flag_button.html' %}
@@ -57,28 +56,36 @@
- {% if previous > -1 %} - - {% endif %} +
+
+ {% if previous > -1 %} + + {% endif %} - {% if next %} - - - + {% if next %} + + + - - - {% else %} - {% if not exam.publish_results %} - - {% endif %} - {% endif %} + + + {% else %} + {% if not exam.publish_results %} + + {% endif %} + {% endif %} -
- - +
+ + +
+ +
+ {% include 'physics/partials/exam_flag_button.html' %} +
+