camper/pkg/booking
jordi fita mas 9eb6483cb9 Allow opening a booking or creating a new from the booking grid
I wanted to use a regular <a>, but apparently rendering that many
anchors is too resource-intensive for Firefox, and it is noticeably
slower.  It was even worse, in fact, because i had to have different
content for the main grid and the grid show in the new booking form,
as i did not want to have these links there, and had call a template for
each cell: 3 months × ~30 days × ~100 campsites = 9000 calls!

Using JavaScript for that is shameful, but it does not add much to the
existing markup, and no need for template fuckery.

I am using double-click to follow these links, instead of single click,
because it would be too easy to misclik on the grid, but that forced me
to add `user-select: none` to prevent the selection of text when double-
clicking.
2024-04-25 12:29:43 +02:00
..
admin.go “Finish” the new booking form 2024-04-24 20:19:13 +02:00
campsite.go Allow opening a booking or creating a new from the booking grid 2024-04-25 12:29:43 +02:00
cart.go “Mockup” for the new booking form 2024-04-23 21:07:41 +02:00
ods.go Refactor ISO date, and datestamp format in constant 2024-01-31 19:58:46 +01:00
payment.go Compute ACSI discount 2024-03-14 22:08:01 +01:00
public.go “Mockup” for the new booking form 2024-04-23 21:07:41 +02:00