From 1a04064e6b3b34d9b4bccf2f05ca0ac1e2be7561 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 20 Oct 2025 22:53:35 +0100 Subject: [PATCH] Refactor exam overview layout for improved readability and structure, enhancing question display with better styling and organization. --- sbas/templates/sbas/exam_overview.html | 75 +++++++++++++++++--------- 1 file changed, 51 insertions(+), 24 deletions(-) diff --git a/sbas/templates/sbas/exam_overview.html b/sbas/templates/sbas/exam_overview.html index 05996df1..59dc69ba 100644 --- a/sbas/templates/sbas/exam_overview.html +++ b/sbas/templates/sbas/exam_overview.html @@ -8,33 +8,60 @@ {% block content %} {% load thumbnail %} -
+
+
+
+

This exam will be available to take here (when active).

+
+
- This exam will be available to take here (when active). +

Questions in this Exam

- {% autoescape off %} -
    - {% for question in questions.all %} - -
  1. - - {{ question.stem|safe }} -
      -
    1. {{ question.a_answer|safe }}
    2. -
    3. {{ question.b_answer|safe }}
    4. -
    5. {{ question.c_answer|safe }}
    6. -
    7. {{ question.d_answer|safe }}
    8. -
    9. {{ question.e_answer|safe }}
    10. Best answer : {{question.best_answer}} ({{question.get_correct_answer_stripped}}) -
    -
    - Category: {{ question.category }}, View Edit - -
  2. - {% endfor %} -
- {% endautoescape %} +
+ {% for question in questions.all %} +
+
+
+
+
+
{{ question.stem|safe }}
+
+
+
Category: {{ question.category }}
+
+ View + Edit +
+
+
+
+
+
    +
  1. {{ question.a_answer|safe }}
  2. +
  3. {{ question.b_answer|safe }}
  4. +
  5. {{ question.c_answer|safe }}
  6. +
  7. {{ question.d_answer|safe }}
  8. +
  9. {{ question.e_answer|safe }}
  10. +
+
+
+
Best answer
+
+ {% if question.best_answer %} + {{ question.best_answer|stringformat:'s'|slice:":1"|upper }} + {% else %} + - + {% endif %} +
+
({{ question.get_correct_answer_stripped }})
+
+
+
+
+
+ {% endfor %} +