From 0f76351ae9b712daf4414d87f326e7737bd7a4b0 Mon Sep 17 00:00:00 2001 From: jordi fita mas Date: Tue, 13 Feb 2024 05:59:07 +0100 Subject: [PATCH] Move down HTMx attributes for booking form Otherwise, it reloads the form while customers are writing their details, removing the focus from the form; **very** annoying. On the plus side, there is nothing to compute when entering these fields, thus no redundant work is done now. --- web/templates/public/booking/fields.gohtml | 23 +++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/web/templates/public/booking/fields.gohtml b/web/templates/public/booking/fields.gohtml index 6332b99..11d717d 100644 --- a/web/templates/public/booking/fields.gohtml +++ b/web/templates/public/booking/fields.gohtml @@ -5,13 +5,12 @@ --> {{- /*gotype: dev.tandem.ws/tandem/camper/pkg/booking.publicPage*/ -}} {{ with .Form -}} -
+
- -
+ +
{{( pgettext "Accommodation" "title" )}} {{ range .CampsiteType.Options -}}