Go to file
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
cmd/camper Increase HTTP timeout 2024-03-05 12:05:00 +01:00
debian Tag version 8 of the database 2024-04-22 13:43:38 +02:00
demo Fix insert of booking in demo SQL file 2024-04-24 20:39:19 +02:00
deploy “Finish” the new booking form 2024-04-24 20:19:13 +02:00
pkg Allow opening a booking or creating a new from the booking grid 2024-04-25 12:29:43 +02:00
po “Finish” the new booking form 2024-04-24 20:19:13 +02:00
revert Add alter column back to integer for booking.number_dogs in reverse 2024-04-24 20:29:23 +02:00
test “Finish” the new booking form 2024-04-24 20:19:13 +02:00
verify “Finish” the new booking form 2024-04-24 20:19:13 +02:00
web Allow opening a booking or creating a new from the booking grid 2024-04-25 12:29:43 +02:00
.gitignore Add the sample campsite types to the demo file 2023-09-10 03:57:46 +02:00
Makefile Send an email on notification of success payment 2024-02-13 05:20:35 +01:00
go.mod Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
go.sum Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
guix.scm Add Guix package definition 2024-01-28 18:12:38 +01:00
sqitch.conf Add empty Sqitch configuration anq plan files 2023-07-20 23:43:23 +02:00
sqitch.plan “Finish” the new booking form 2024-04-24 20:19:13 +02:00