camper/web/static
jordi fita mas 3aa53cf1a9 “Mockup” for the new booking form
It does nothing but compute the total of a booking, much like it does
for guests.  In fact, i use the same payment relations to do the exact
same computation, otherwise i am afraid i will make a mistake in the
ACSI or such, now or in future version; better if both are exactly the
same.

The idea is that once the user creates the booking, i will delete that
payment, because it makes no sense to keep it in this case; nobody is
going to pay for it.

Had to reuse the grid showing the bookings of campsites because
employees need to select one or more campsites to book, and need to see
which are available.  In this case, i have to filter by campsite type
and use the arrival and departure dates to filter the months, now up to
the day, not just month.

Had to change max width of th and td in the grid to take into account
that now a month could have a single day, for instance, and the month
heading can not stretch the day or booking spans would not be in their
correct positions.

For that, i needed to access campsiteEntry, bookingEntry, and Month from
campsite package, but campsite imports campsite/types, and
campsite/types already imports booking for the BookingDates type.  To
break the cycle, had to move all that to booking and use from campsite;
it is mostly unchanged, except for the granularity of dates up to days
instead of just months.

The design of this form calls for a different way of showing the totals,
because here employees have to see the amount next to the input with
the units, instead of having a footer with the table.  I did not like
the idea of having to query the database for that, therefore i “lifter”
the payment draft into a struct that both public and admin forms use
to show they respective views of the cart.
2024-04-23 21:07:41 +02: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 “Mockup” for the new booking form 2024-04-23 21:07:41 +02: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
idiomorph-ext@0.3.0.min.js Use idiomorph and a delay in the booking form 2024-02-27 20:06:28 +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 Compute ACSI discount 2024-03-14 22:08:01 +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