From c975b3c967e29080f59357f33954499c10ffec7a Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 20 Oct 2025 21:55:19 +0100 Subject: [PATCH] Enhance exam overview and status templates with improved layout and functionality for open access management and publish results status. --- .../generic/exam_overview_headers.html | 58 +++++++++-------- .../generic/partials/exams/exam_status.html | 62 ++++++++++++------- 2 files changed, 71 insertions(+), 49 deletions(-) diff --git a/generic/templates/generic/exam_overview_headers.html b/generic/templates/generic/exam_overview_headers.html index cb02f8a1..efd80d16 100644 --- a/generic/templates/generic/exam_overview_headers.html +++ b/generic/templates/generic/exam_overview_headers.html @@ -55,10 +55,7 @@
Open access: -
{{ exam.open_access }}
-
-
- {% include "generic/partials/exams/exam_status.html#exam-active" %} + {{ exam.open_access }}
@@ -67,6 +64,13 @@
+
+
+
+ {% include "generic/partials/exams/exam_status.html#exam-active" %} +
+
+
@@ -86,35 +90,35 @@ Supervisor visible: {{ exam.results_supervisor_visible }}
+
+ +
+
+
+ + +
Select questions on the list above (checkboxes) then click one of the actions below.
+
+ + + +
+
+
+
+
+
-
- -
-
-
- - -
Select questions on the list above (checkboxes) then click one of the actions below.
-
- - - -
-
-
-
-
-
diff --git a/generic/templates/generic/partials/exams/exam_status.html b/generic/templates/generic/partials/exams/exam_status.html index 7a130cfd..b5a51885 100644 --- a/generic/templates/generic/partials/exams/exam_status.html +++ b/generic/templates/generic/partials/exams/exam_status.html @@ -1,30 +1,48 @@ {% load partials %} {% partialdef publish-results %} -
- Publish results: {{exam.publish_results}} - -
+
+
Publish results
+
+ {% if exam.publish_results %} + Published + {% else %} + Unpublished + {% endif %} +
+
+ +
+
{% endpartialdef publish-results %} {% partialdef exam-active %} -
- Exam active: {{exam.active}} - -
+
+
Exam active
+
+ {% if exam.active %} + Active + {% else %} + Inactive + {% endif %} +
+
+ +
+
{% endpartialdef exam-active %} \ No newline at end of file