From c177d216885c6cfe1527801b3aaaa06efc8a32a5 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 2 Mar 2026 12:45:26 +0000 Subject: [PATCH] Fix indentation for quick edit buttons and form in case inline field template --- atlas/templates/atlas/case_display_block.html | 24 +++++++++---------- .../atlas/partials/case_inline_field.html | 2 +- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/atlas/templates/atlas/case_display_block.html b/atlas/templates/atlas/case_display_block.html index 2c3acacc..0669c27f 100755 --- a/atlas/templates/atlas/case_display_block.html +++ b/atlas/templates/atlas/case_display_block.html @@ -103,9 +103,9 @@ {% endwith %} {% if can_edit %} + hx-get="{% url 'atlas:case_inline_field' case.pk 'title' %}?edit=1&show_label=0" + hx-target="#case-inline-title" + hx-swap="outerHTML">quick edit {% endif %} @@ -242,9 +242,9 @@ Diagnostic certainty: {% if can_edit %} + hx-get="{% url 'atlas:case_inline_field' case.pk 'diagnostic_certainty' %}?edit=1&show_label=0" + hx-target="#case-inline-diagnostic_certainty" + hx-swap="outerHTML">quick edit {% endif %} {% url 'atlas:case_inline_field' case.pk 'diagnostic_certainty' as diag_url %} {% with endpoint_default=diag_url|add:"?show_label=0" endpoint_edit=diag_url|add:"?edit=1&show_label=0" %} @@ -278,9 +278,9 @@ {% if can_edit %} + hx-get="{% url 'atlas:case_inline_field' case.pk 'description' %}?edit=1&show_label=0" + hx-target="#case-inline-description" + hx-swap="outerHTML">quick edit {% endif %} @@ -298,7 +298,7 @@
History {% if can_edit %} - @@ -316,7 +316,7 @@
Discussion {% if can_edit %} - @@ -334,7 +334,7 @@
Report {% if can_edit %} - diff --git a/atlas/templates/atlas/partials/case_inline_field.html b/atlas/templates/atlas/partials/case_inline_field.html index 22608c15..86c6c2db 100644 --- a/atlas/templates/atlas/partials/case_inline_field.html +++ b/atlas/templates/atlas/partials/case_inline_field.html @@ -19,7 +19,7 @@ {% endif %} {% if editing %} -