camper/pkg/database
jordi fita mas c9e8165f83 Allow updating bookings
I need to retrieve the values from the database and put them in the
form, like all other forms, but in this case the processing is done as
if it were a new form, because everything comes from the query string
and there is no need to do any extra work then.

Had to move the <footer> from the fields.gohtml to form.gohtml because
then it could not know that it was editing an existing booking.  Had to
move the <fieldset> out too, in order to give it an ID and make it
htmx’s target, or it would replace the form, causing even more problems
—the button would disappear then—.  The target **must** be in <form>
because it is needed for tis children’s hx-get and for its own hx-put.
2024-04-25 20:27:08 +02:00
..
OptionUnits.go Add payment relation and use it to compute the booking’s cart 2024-02-12 05:21:00 +01:00
RecordArray.go Copy RecordArray from pgtype to database 2023-09-12 21:58:30 +02:00
db.go Refactor ISO date, and datestamp format in constant 2024-01-31 19:58:46 +01:00
funcs.go Allow updating bookings 2024-04-25 20:27:08 +02:00
tx.go Add the campsite type cost per season 2023-10-01 21:14:39 +02:00
types.go Handle payment notifications from Redsys 2024-02-13 02:38:38 +01:00
zeronull.go Change draft_payment return type to row of payment 2024-02-13 19:51:39 +01:00