From 5294c5f2f6c95e87d4dcba0a2a1f4b1e66a82d98 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 20 Oct 2025 15:59:27 +0100 Subject: [PATCH] Add display of related SBA questions in finding, presentation, and structure detail views --- atlas/templates/atlas/finding_detail.html | 11 ++++++++++- atlas/templates/atlas/presentation_detail.html | 11 ++++++++++- atlas/templates/atlas/structure_detail.html | 11 ++++++++++- 3 files changed, 30 insertions(+), 3 deletions(-) diff --git a/atlas/templates/atlas/finding_detail.html b/atlas/templates/atlas/finding_detail.html index 5f82131c..c7e502e6 100755 --- a/atlas/templates/atlas/finding_detail.html +++ b/atlas/templates/atlas/finding_detail.html @@ -7,7 +7,7 @@ Delete {% if request.user.is_superuser %} Admin Edit + title="Edit the Finding using the admin interface">Admin Edit {% endif %}
@@ -27,6 +27,15 @@ {% endif %} + {% if finding.sbas_questions.all %} +

Related SBA Questions

+ + {% endif %} + {% endblock %} {% block js %} diff --git a/atlas/templates/atlas/presentation_detail.html b/atlas/templates/atlas/presentation_detail.html index 6b314d5c..8503bc59 100755 --- a/atlas/templates/atlas/presentation_detail.html +++ b/atlas/templates/atlas/presentation_detail.html @@ -9,7 +9,7 @@ Delete {% endcomment %} {% if request.user.is_superuser %} Admin Edit + title="Edit the Condition using the admin interface">Admin Edit {% endif %}
@@ -27,6 +27,15 @@ {% endif %} + {% if presentation.sbas_questions.all %} +

Related SBA Questions

+ + {% endif %} + {% endblock %} {% block js %} diff --git a/atlas/templates/atlas/structure_detail.html b/atlas/templates/atlas/structure_detail.html index 555ddc25..ee99fe20 100755 --- a/atlas/templates/atlas/structure_detail.html +++ b/atlas/templates/atlas/structure_detail.html @@ -9,7 +9,7 @@ Delete {% if request.user.is_superuser %} Admin Edit + title="Edit the Structure using the admin interface">Admin Edit {% endif %}
@@ -27,6 +27,15 @@ {% endfor %} + {% if structure.sbas_questions.all %} +

Related SBA Questions

+ + {% endif %} + {% endblock %} {% block js %}