From bc5fd61d5d8ac96a2445501d132cfa8052bc052c Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Fri, 19 Apr 2024 17:39:44 +0200 Subject: [PATCH] =?UTF-8?q?Move=20the=20booking=E2=80=99s=20filter=20to=20?= =?UTF-8?q?the=20bottom?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first thing to show, the most important, is the grid; then users can change the grid’s output. --- web/templates/admin/campsite/index.gohtml | 42 +++++++++++------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/web/templates/admin/campsite/index.gohtml b/web/templates/admin/campsite/index.gohtml index addf242..a7a67be 100644 --- a/web/templates/admin/campsite/index.gohtml +++ b/web/templates/admin/campsite/index.gohtml @@ -17,27 +17,6 @@

{{( pgettext "Campsites" "title" )}}

{{ if .Campsites -}} -
-
- {{ with .From -}} -
- {{( gettext "From Date" )}} - {{ template "month-input" . }} - {{ template "error-message" . }} -
- {{- end }} - {{ with .To -}} -
- {{( gettext "To Date" )}} - {{ template "month-input" . }} - {{ template "error-message" . }} -
- {{- end }} -
-
- -
-
@@ -83,6 +62,27 @@
+
+
+ {{ with .From -}} +
+ {{( gettext "From Date" )}} + {{ template "month-input" . }} + {{ template "error-message" . }} +
+ {{- end }} + {{ with .To -}} +
+ {{( gettext "To Date" )}} + {{ template "month-input" . }} + {{ template "error-message" . }} +
+ {{- end }} +
+
+ +
+
{{ else -}}

{{( gettext "No campsites added yet." )}}

{{- end }}