camper/web/templates
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 Allow opening a booking or creating a new from the booking grid 2024-04-25 12:29:43 +02:00
mail/payment Compute ACSI discount 2024-03-14 22:08:01 +01:00
public “Finish” the new booking form 2024-04-24 20:19:13 +02:00
campground_map.svg Add a controlled layer group for the zones on the map 2024-01-31 15:12:11 +01:00