Fix indentation for quick edit buttons and form in case inline field template

This commit is contained in:
Ross
2026-03-02 12:45:26 +00:00
parent 2a1db54a17
commit c177d21688
2 changed files with 13 additions and 13 deletions
+12 -12
View File
@@ -103,9 +103,9 @@
{% endwith %}
{% if can_edit %}
<button class="btn btn-sm btn-link text-muted p-0 ms-2 quick-edit-button"
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</button>
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</button>
{% endif %}
</div>
</h2>
@@ -242,9 +242,9 @@
<span>Diagnostic certainty:</span>
{% if can_edit %}
<button class="btn btn-sm btn-link text-muted p-0 ms-2 quick-edit-button"
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</button>
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</button>
{% 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 @@
</div>
{% if can_edit %}
<button class="btn btn-sm btn-link text-muted p-0 ms-2 quick-edit-button"
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</button>
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</button>
{% endif %}
</div>
@@ -298,7 +298,7 @@
<div class="card h-100">
<div class="card-header d-flex justify-content-between align-items-center quick-edit-wrap">History
{% if can_edit %}
<button class="btn btn-sm btn-link text-muted p-0 quick-edit-button"
<button class="btn btn-sm btn-link text-muted p-0 quick-edit-button"
hx-get="{% url 'atlas:case_inline_field' case.pk 'history' %}?edit=1&show_label=0"
hx-target="#case-inline-history"
hx-swap="outerHTML">quick edit</button>
@@ -316,7 +316,7 @@
<div class="card h-100">
<div class="card-header d-flex justify-content-between align-items-center quick-edit-wrap">Discussion
{% if can_edit %}
<button class="btn btn-sm btn-link text-muted p-0 quick-edit-button"
<button class="btn btn-sm btn-link text-muted p-0 quick-edit-button"
hx-get="{% url 'atlas:case_inline_field' case.pk 'discussion' %}?edit=1&show_label=0"
hx-target="#case-inline-discussion"
hx-swap="outerHTML">quick edit</button>
@@ -334,7 +334,7 @@
<div class="card h-100">
<div class="card-header d-flex justify-content-between align-items-center quick-edit-wrap">Report
{% if can_edit %}
<button class="btn btn-sm btn-link text-muted p-0 quick-edit-button"
<button class="btn btn-sm btn-link text-muted p-0 quick-edit-button"
hx-get="{% url 'atlas:case_inline_field' case.pk 'report' %}?edit=1&show_label=0"
hx-target="#case-inline-report"
hx-swap="outerHTML">quick edit</button>
@@ -19,7 +19,7 @@
{% endif %}
{% if editing %}
<form hx-post="{{ endpoint_url_default }}"
<form hx-post="{{ endpoint_url_default }}"
hx-target="#{{ container_id }}"
hx-swap="outerHTML"
class="mt-2">