From 374ee1791104a671c4301be3704470417731f031 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 2 Feb 2026 11:59:35 +0000 Subject: [PATCH] Refactor detail templates for condition, finding, and structure to improve layout consistency and readability --- atlas/templates/atlas/condition_detail.html | 208 ++++++++++---------- atlas/templates/atlas/finding_detail.html | 4 +- atlas/templates/atlas/structure_detail.html | 4 +- 3 files changed, 108 insertions(+), 108 deletions(-) diff --git a/atlas/templates/atlas/condition_detail.html b/atlas/templates/atlas/condition_detail.html index 4e44ee81..102fa4e0 100755 --- a/atlas/templates/atlas/condition_detail.html +++ b/atlas/templates/atlas/condition_detail.html @@ -17,141 +17,141 @@
Details
-
Primary name
-
{% if condition.canonical %}No (alias of {{ condition.canonical.name }}){% else %}Yes{% endif %}
+
Primary name
+
{% if condition.canonical %}No (alias of {{ condition.canonical.name }}){% else %}Yes{% endif %}
-
Subspecialty
+
Subspecialty
+
+ {% for sub in condition.subspecialty.all %} + {{ sub }} + {% empty %} + — + {% endfor %} +
+ +
Synonyms
+
+
+ {% include 'atlas/partials/_synonyms_list.html' %} +
+
+ +
Parent
+
+ {% for parent in condition.parent.all %} + {{ parent }} + {% empty %} + — + {% endfor %} +
+ +
Children
+
+ {% for child in condition.child.all %} + {{ child }} + {% empty %} + — + {% endfor %} +
+ +
RCR condition
+
{% if condition.rcr_curriculum %}Yes{% else %}No{% endif %}
+ + {% if not condition.rcr_curriculum %} +
RCR condition map
- {% for sub in condition.subspecialty.all %} - {{ sub }} + {% for map in condition.rcr_curriculum_map.all %} + {{ map }} {% empty %} — {% endfor %}
- -
Synonyms
-
-
- {% include 'atlas/partials/_synonyms_list.html' %} -
-
- -
Parent
-
- {% for parent in condition.parent.all %} - {{ parent }} - {% empty %} - — - {% endfor %} -
- -
Children
-
- {% for child in condition.child.all %} - {{ child }} - {% empty %} - — - {% endfor %} -
- -
RCR condition
-
{% if condition.rcr_curriculum %}Yes{% else %}No{% endif %}
- - {% if not condition.rcr_curriculum %} -
RCR condition map
-
- {% for map in condition.rcr_curriculum_map.all %} - {{ map }} - {% empty %} - — - {% endfor %} -
- {% endif %} -
+ {% endif %} +
{% if condition.case_set.exists %} -
-
-
Associated Cases
-
    - {% for case in condition.case_set.all %} -
  • {{ case.get_link }}
  • - {% endfor %} -
+
+
+
Associated Cases
+
    + {% for case in condition.case_set.all %} +
  • {{ case.get_link }}
  • + {% endfor %} +
+
-
{% 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 %} -
+
+
+
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 %} -
-
-
Associated Case Differentials
-
    - {% for diff in condition.differential_set.all %} -
  • {{ diff.case.get_link }} [{{ diff.text }}]
  • - {% endfor %} -
+
+
+
Associated Case Differentials
+
    + {% for diff in condition.differential_set.all %} +
  • {{ diff.case.get_link }} [{{ diff.text }}]
  • + {% endfor %} +
+
-
{% endif %} {% if condition.sbas_questions.exists %} -
-
-
Related SBA Questions
- +
+
+
Related SBA Questions
+ +
-
{% endif %} {% if not condition.rcr_curriculum and can_merge %} -
-
-
Merge
-

Merge this condition into another. This will transfer associated cases and differentials but will not transfer synonyms, parents or children.

+
+
+
Merge
+

Merge this condition into another. This will transfer associated cases and differentials but will not transfer synonyms, parents or children.

-

- -

+

+ +

-
-
-
- {% csrf_token %} -
- {{ form.as_p }} -
- -
-
+
+
+
+ {% csrf_token %} +
+ {{ form.as_p }} +
+ +
+
+
-
{% endif %}
diff --git a/atlas/templates/atlas/finding_detail.html b/atlas/templates/atlas/finding_detail.html index 944e4960..15db66a8 100755 --- a/atlas/templates/atlas/finding_detail.html +++ b/atlas/templates/atlas/finding_detail.html @@ -12,8 +12,8 @@

Name: {{finding.name}}

- Primary name: {% if finding.canonical %}No (alias of {{ finding.canonical.name }}){% else %}Yes{% endif %}
- Synonyms: {{ finding.get_synonym_link|safe }}
+ Primary name: {% if finding.canonical %}No (alias of {{ finding.canonical.name }}){% else %}Yes{% endif %}
+ Synonyms: {{ finding.get_synonym_link|safe }}
{% if finding.seriesfinding_set.all %}

Associated Cases

diff --git a/atlas/templates/atlas/structure_detail.html b/atlas/templates/atlas/structure_detail.html index c2624553..6c0d6677 100755 --- a/atlas/templates/atlas/structure_detail.html +++ b/atlas/templates/atlas/structure_detail.html @@ -14,8 +14,8 @@

Name: {{structure.name}}

- Primary name: {% if structure.canonical %}No (alias of {{ structure.canonical.name }}){% else %}Yes{% endif %}
- Synonyms: {{ structure.get_synonym_link|safe }}
+ Primary name: {% if structure.canonical %}No (alias of {{ structure.canonical.name }}){% else %}Yes{% endif %}
+ Synonyms: {{ structure.get_synonym_link|safe }}

Associated Cases