From 4ad101d65e939014ab0554d7a0fb14b4a728b984 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 20 Oct 2025 12:13:08 +0100 Subject: [PATCH] Add sources display to question detail view for better reference tracking --- sbas/templates/sbas/partials/import_preview.html | 2 +- sbas/templates/sbas/question_detail.html | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/sbas/templates/sbas/partials/import_preview.html b/sbas/templates/sbas/partials/import_preview.html index 58d57f52..67c578be 100644 --- a/sbas/templates/sbas/partials/import_preview.html +++ b/sbas/templates/sbas/partials/import_preview.html @@ -44,7 +44,7 @@ {% else %} None {% endif %} -

+

{% endif %}

M2M fields (click to exclude)

Green = will be created/attached. Click a value to exclude it (grey).

diff --git a/sbas/templates/sbas/question_detail.html b/sbas/templates/sbas/question_detail.html index 7d1829ac..fb2c6533 100644 --- a/sbas/templates/sbas/question_detail.html +++ b/sbas/templates/sbas/question_detail.html @@ -34,6 +34,17 @@ Best answer: {{ question.best_answer }} ({{question.get_correct_answer_stripped}}) {% endautoescape %} +
+ Sources: + {% if question.sources %} + + {% else %} + None + {% endif %}
Examinations: {% for exam in question.exams.all %} {{ exam }}