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 @@