From 0de7c345a21dced9f47e491c8360934498f417fa Mon Sep 17 00:00:00 2001 From: Ross Date: Sat, 1 Nov 2025 08:15:30 +0000 Subject: [PATCH] Refactor case display to enhance layout and add subspecialty, pathological process, and diagnostic certainty badges --- atlas/templates/atlas/case_display_block.html | 48 +++++++++++-------- 1 file changed, 27 insertions(+), 21 deletions(-) diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index 4d2ae3ee..32392e8f 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -121,28 +121,34 @@ {% endif %} -
- - ID: {{ case.id }} - - / - - {{ case.created_date|date:"d/m/Y" }} - +
+
+ ID: {{ case.id }} + / + {{ case.created_date|date:"d/m/Y" }} +
+ +
+ {# Subspecialty badges (preserve any anchor returned by get_link) #} + {% if case.subspecialty.all %} + {% for sub in case.subspecialty.all %} + {{ sub.get_link|safe }} + {% endfor %} + {% else %} + No subspecialty + {% endif %} + + {# Pathological process badges #} + {% if case.pathological_process.all %} + {% for p in case.pathological_process.all %} + {{ p.get_link|safe }} + {% endfor %} + {% endif %} + + {# Diagnostic certainty as a badge #} + Diagnostic certainty: {{ case.get_diagnostic_certainty_display }} +
- Subspecialty: - - Pathological Process: - - Diagnostic certainty: {{case.get_diagnostic_certainty_display}}
Viewer