camper/web/templates/admin
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
..
amenity Add amenities section and public page 2024-01-27 22:51:41 +01:00
booking “Mockup” for the new booking form 2024-04-23 21:07:41 +02:00
campsite “Mockup” for the new booking form 2024-04-23 21:07:41 +02:00
carousel Add breadcrumb to all admin pages 2024-01-21 22:44:04 +01:00
home Make the slogan user-editable and translatable 2024-01-23 11:52:39 +01:00
legal Add breadcrumb to all admin pages 2024-01-21 22:44:04 +01:00
media Add breadcrumb to all admin pages 2024-01-21 22:44:04 +01:00
payment Use pre-authorization to accept payment, rather than charge 2024-03-24 22:06:59 +01:00
season Fix breadcrumb title in season’s form.gohtml 2024-01-22 03:39:54 +01:00
services Remove the required attribute from service’s name input 2024-01-24 11:17:49 +01:00
surroundings Add ad management for surroundings 2024-01-23 14:53:15 +01:00
user Add breadcrumb to all admin pages 2024-01-21 22:44:04 +01:00
dashboard.gohtml Add breadcrumb to all admin pages 2024-01-21 22:44:04 +01:00
form.gohtml Replace admin’s campsite map with a booking grid 2024-04-19 11:29:52 +02:00
htmx.gohtml Move admin-only links inside the user’s menu 2023-09-25 13:13:19 +02:00
layout.gohtml Add the admin page to see payments 2024-02-14 04:54:42 +01:00
location.gohtml Use lang-selector template for location.gohtml 2024-01-24 00:48:30 +01:00
login.gohtml Add breadcrumb to all admin pages 2024-01-21 22:44:04 +01:00
profile.gohtml Add breadcrumb to all admin pages 2024-01-21 22:44:04 +01:00
taxDetails.gohtml Add the number of maximum nights that tourist tax applies 2024-02-27 20:06:28 +01:00