From 2a6066381e57ba47d39d797b9ca6ce0452a5d95d Mon Sep 17 00:00:00 2001 From: kdeterme Date: Mon, 31 Aug 2026 14:29:45 +0200 Subject: [PATCH] feat: integrate global document viewer modal and update note UI for interventions --- .../common/components/document_viewer.html | 16 +++++-- .../templatetags/document_viewer_tags.py | 28 +++++++++++- .../services/document_sequencing.py | 21 +++++++-- .../detail/card_notes_documents.html | 21 ++++++--- .../intervention_detail_mobile.html | 13 +++++- .../tests/test_document_sequencing.py | 43 +++++++++++++++++++ loko/interventions/views/detail.py | 13 +++--- loko/interventions/views/mobile.py | 13 +++--- 8 files changed, 142 insertions(+), 26 deletions(-) diff --git a/loko/common/templates/common/components/document_viewer.html b/loko/common/templates/common/components/document_viewer.html index 59fedfd..f5e124d 100644 --- a/loko/common/templates/common/components/document_viewer.html +++ b/loko/common/templates/common/components/document_viewer.html @@ -18,6 +18,7 @@ {% if docs %} +{% if not modal_only %} {# ═══════════════════════════ Thumbnail Grid ═══════════════════════════ #} {% endfor %} +{% endif %} +{% if not grid_only %} {# ═══════════════════════════ Viewer Modal ════════════════════════════ #} {# /modal #} +{% endif %} {# ═══════════════════════════ Inline JS ══════════════════════════════ #}