From 18aef751ca8ab39eebf2129e898fc7a311022ab1 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 2 Feb 2026 11:59:28 +0000 Subject: [PATCH] Add display sets section to condition, finding, and structure detail templates; list associated cases for better context --- atlas/templates/atlas/condition_detail.html | 14 ++++++++++++++ atlas/templates/atlas/finding_detail.html | 10 ++++++++++ atlas/templates/atlas/structure_detail.html | 10 ++++++++++ 3 files changed, 34 insertions(+) diff --git a/atlas/templates/atlas/condition_detail.html b/atlas/templates/atlas/condition_detail.html index a0fa25d5..4e44ee81 100755 --- a/atlas/templates/atlas/condition_detail.html +++ b/atlas/templates/atlas/condition_detail.html @@ -83,6 +83,20 @@ {% endif %} + {# Also include cases that reference this condition via CaseDisplaySet #} + {% if condition.casedisplayset_set.exists %} +
+
+
Cases via Display Sets
+
    + {% for ds in condition.casedisplayset_set.all %} +
  • {{ ds.case.get_link }} [Display set: {{ ds.name }}]
  • + {% endfor %} +
+
+
+ {% endif %} + {% if condition.differential_set.exists %}
diff --git a/atlas/templates/atlas/finding_detail.html b/atlas/templates/atlas/finding_detail.html index 715f06ad..944e4960 100755 --- a/atlas/templates/atlas/finding_detail.html +++ b/atlas/templates/atlas/finding_detail.html @@ -27,6 +27,16 @@ {% endif %} + {# Also include cases referenced via CaseDisplaySet that list this finding #} + {% if finding.casedisplayset_set.all %} +

Cases via Display Sets

+
    + {% for ds in finding.casedisplayset_set.all %} +
  • Case: {{ ds.case.get_link }} (Display set: {{ ds.name }})
  • + {% endfor %} +
+ {% endif %} + {% if finding.sbas_questions.all %}

Related SBA Questions

    diff --git a/atlas/templates/atlas/structure_detail.html b/atlas/templates/atlas/structure_detail.html index 75ef1243..c2624553 100755 --- a/atlas/templates/atlas/structure_detail.html +++ b/atlas/templates/atlas/structure_detail.html @@ -27,6 +27,16 @@ {% endfor %}
+ {# Include cases referenced via CaseDisplaySet that list this structure #} + {% if structure.casedisplayset_set.all %} +

Cases via Display Sets

+
    + {% for ds in structure.casedisplayset_set.all %} +
  • Case: {{ ds.case.get_link }} (Display set: {{ ds.name }})
  • + {% endfor %} +
+ {% endif %} + {% if structure.sbas_questions.all %}

Related SBA Questions