camper/web/static
jordi fita mas e5023a2a41 Handle the booking cart entirely with HTMx
Besides the dynamic final cart, that was already handled by HTMx, i had
to check the maximum number of guests, whether the accommodation allows
“overflow”, whether dogs are allowed, and that the booking dates were
within the campground’s opening and closing dates.

I could do all of this with AlpineJS, but then i would have to add the
same validation to the backend, prior to accept the payment.  Would not
make more sense to have them in a single place, namely the backend? With
HTMx i can do that.

However, i now have to create the form “piecemeal”, because i may not
have the whole information when the visitor arrives to the booking page,
and i still had the same problem as in commit d2858302efa—parsing the
whole form as is would leave guests and options field empty, rather than
at their minimum values.

One of the fieldsets in that booking form are the arrival and departure
dates, that are the sames we use in the campsite type’s page to
“preselect” these values.  Since now are in a separate struct, i can
reuse the same type and validation logic for both pages, making my
JavaScript code useless, but requiring HTMx.  I think this is a good
tradeoff, in fact.
2024-02-10 03:49:44 +01:00
..
camping-association Add bottom border to heading and add camping association images 2023-12-22 00:20:53 +01:00
ckeditor5@40.2.0 Allow updating images in CKEditor-“powered” textarea 2024-01-16 01:26:35 +01:00
fonts Add the minimal CSS for the admin section from Numerus 2023-09-28 02:23:25 +02:00
leaflet@1.9.4 Show campground map using leaflet 2024-01-14 22:31:13 +01:00
alpinejs@3.13.3.min.js Replace contact page with location 2023-12-21 21:17:04 +01:00
camper.css Add public pages for each individual accommodation 2024-01-26 22:27:54 +01:00
camper.js Remove the extra <div> when saving content from CKEditor 2024-01-21 21:04:51 +01:00
default_avatar.svg Add profile form, inside a user menu 2023-07-26 20:46:09 +02:00
favicon.ico Add favicon 2023-07-26 18:59:17 +02:00
htmx@1.9.3.min.js Add the logout button 2023-07-26 13:49:47 +02:00
icons.css Add cabin, flask_gear, grate_droplet, shirt, shop, and tent icons 2024-01-24 19:32:01 +01:00
jquery@3.7.1.min.js Add the first test for the front end design 2023-09-05 04:40:48 +02:00
map.js Show zones in campground map by default if requested by query parameters 2024-02-04 03:43:00 +01:00
public.css Handle the booking cart entirely with HTMx 2024-02-10 03:49:44 +01:00
slick@1.8.1.css Add the first test for the front end design 2023-09-05 04:40:48 +02:00
slick@1.8.1.min.js Add the first test for the front end design 2023-09-05 04:40:48 +02:00
sortable@1.15.1.min.js Add user-defined order to campsite types, options, seasons and carousels 2023-12-20 19:52:14 +01:00