From cbff1317d03a877e8aebc36e6ead41ff49871613 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 15 Dec 2025 10:53:21 +0000 Subject: [PATCH] Enhance resource display: conditionally render resource search panel and update pre/post review badge logic --- atlas/templates/atlas/case_display_block.html | 2 ++ .../templates/atlas/partials/case_resources_list.html | 10 ++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index 177ee772..62618629 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -204,9 +204,11 @@
Resources
+ {% if can_edit%}
{% include 'atlas/partials/resource_search_panel.html' %}
+ {% endif %}
{% include 'atlas/partials/case_resources_list.html' with case=case %} diff --git a/atlas/templates/atlas/partials/case_resources_list.html b/atlas/templates/atlas/partials/case_resources_list.html index 8b82fca7..7a8ed3af 100644 --- a/atlas/templates/atlas/partials/case_resources_list.html +++ b/atlas/templates/atlas/partials/case_resources_list.html @@ -2,14 +2,20 @@ {% if case.caseresource_set.exists %}
    {% for cr in case.caseresource_set.all %} -
  • +
  • {{ cr.resource.name }} - {% if cr.pre_review %}pre{% endif %} + {% if cr.pre_review %} + pre + {% else %} + post + {% endif %}
    + {% if can_edit %}
    + {% endif %}
  • {% endfor %}