From cd97597cb64d96a076d17f229df615430ed9be69 Mon Sep 17 00:00:00 2001 From: Simon Oliver Tveit Date: Tue, 10 Dec 2024 14:36:31 +0100 Subject: [PATCH 1/4] Center content of destinations page --- src/argus/htmx/templates/htmx/destination/_content.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/argus/htmx/templates/htmx/destination/_content.html b/src/argus/htmx/templates/htmx/destination/_content.html index b9be838c4..ca9ae6200 100644 --- a/src/argus/htmx/templates/htmx/destination/_content.html +++ b/src/argus/htmx/templates/htmx/destination/_content.html @@ -1,4 +1,4 @@ -
+
{% include "htmx/destination/_create_form.html" %} {% for error in errors %}

{{ error }}

{% endfor %} {% include "htmx/destination/_form_list.html" %} From 5ba417202301d802fdf67384e3753bc3997e652d Mon Sep 17 00:00:00 2001 From: Simon Oliver Tveit Date: Tue, 10 Dec 2024 14:49:48 +0100 Subject: [PATCH 2/4] Add newsfragment --- changelog.d/1079.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/1079.added.md diff --git a/changelog.d/1079.added.md b/changelog.d/1079.added.md new file mode 100644 index 000000000..36bf4c17d --- /dev/null +++ b/changelog.d/1079.added.md @@ -0,0 +1 @@ +Centre HTMX destination page content. From 8882e522204a954e94ca2e89c5b75c6ff4d73390 Mon Sep 17 00:00:00 2001 From: Simon Oliver Tveit Date: Tue, 10 Dec 2024 14:55:34 +0100 Subject: [PATCH 3/4] Add gap between collapse element and create form --- src/argus/htmx/templates/htmx/destination/_content.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/argus/htmx/templates/htmx/destination/_content.html b/src/argus/htmx/templates/htmx/destination/_content.html index ca9ae6200..654cedd06 100644 --- a/src/argus/htmx/templates/htmx/destination/_content.html +++ b/src/argus/htmx/templates/htmx/destination/_content.html @@ -1,4 +1,4 @@ -
+
{% include "htmx/destination/_create_form.html" %} {% for error in errors %}

{{ error }}

{% endfor %} {% include "htmx/destination/_form_list.html" %} From e655dc851b2c0b71ce81b970973345dd1a8c4ae3 Mon Sep 17 00:00:00 2001 From: Simon Oliver Tveit Date: Tue, 10 Dec 2024 14:56:51 +0100 Subject: [PATCH 4/4] Add newsfragment --- changelog.d/1080.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/1080.added.md diff --git a/changelog.d/1080.added.md b/changelog.d/1080.added.md new file mode 100644 index 000000000..783bc4aae --- /dev/null +++ b/changelog.d/1080.added.md @@ -0,0 +1 @@ +Add vertical gap between collapse element and create form on HTMX destinations page.