From ea38a25fa162f95077aa7b8aacd70b6c327ca13f Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 17 Dec 2025 14:46:09 +0000 Subject: [PATCH] Reorganize historic runs section to improve layout and accessibility --- .../templates/rota/rota_detail.html | 62 ++++++++++--------- 1 file changed, 33 insertions(+), 29 deletions(-) diff --git a/djangorota/djangorota/templates/rota/rota_detail.html b/djangorota/djangorota/templates/rota/rota_detail.html index 0d557b6..d52e5d6 100644 --- a/djangorota/djangorota/templates/rota/rota_detail.html +++ b/djangorota/djangorota/templates/rota/rota_detail.html @@ -19,28 +19,7 @@ {% include 'rota/partials/worker_list.html' %} -
-
- Historic runs -
-
- {% csrf_token %} - -
-
-
    - {% for run in rota.runs.all %} -
  • - Run {{ run.id }} — {{ run.get_status_display }} - {% if run.finished_at %} — finished {{ run.finished_at }}{% endif %} - Export -
  • - {% empty %} -
  • No previous runs
  • - {% endfor %} -
-
-
+ {# Historic runs moved to be grouped with the scheduled-run controls further down the page. #}

Constraint options

@@ -108,6 +87,17 @@
+ {# Run controls and historic runs moved to the bottom of the page. #} + +
+

Edit shifts

+

+
{# Load form via HTMX when user clicks 'Add shift' - initial empty state #}
+ {% include 'rota/partials/shift_list.html' %} +
+ +
+
{% csrf_token %}
@@ -117,13 +107,27 @@
-
- -
-

Edit shifts

-

-
{# Load form via HTMX when user clicks 'Add shift' - initial empty state #}
- {% include 'rota/partials/shift_list.html' %} +
+
+ Historic runs +
+
+ {% csrf_token %} + +
+
+
    + {% for run in rota.runs.all %} +
  • + Run {{ run.id }} — {{ run.get_status_display }} + {% if run.finished_at %} — finished {{ run.finished_at }}{% endif %} + Export +
  • + {% empty %} +
  • No previous runs
  • + {% endfor %} +
+