253 Commits

Author SHA1 Message Date
2f1895b71a Show international phone number with 00 instead of +
Customer wants it that way.
2024-01-11 20:56:35 +01:00
f28664acce Replace use of L10NInput with I18nInput for campsite 2024-01-10 21:52:49 +01:00
3f46ea3a9a Add “Menu” next to the trigram symbol (“hamburger”) 2024-01-10 19:41:57 +01:00
9a7d7bf0de Add location information to the demo 2024-01-10 19:22:27 +01:00
07223f64d2 Merge remote-tracking branch 'origin/upcoming' 2023-12-22 10:41:59 +01:00
15761a370d Change home image background 2023-12-22 10:41:27 +01:00
a5c35c8da3 Add color to booking link and fix footer image sizes 2023-12-22 10:41:02 +01:00
92db4dfff6 Only hide immediate children of label[x-show]
Otherwise, it affects the ones inside CKEditor
2023-12-22 04:12:03 +01:00
cdf32a0234 Updated translations 2023-12-22 03:32:40 +01:00
4d0123def7 Bring back the whole list of options in type page, but in accordion
This is how the customer wants it.
2023-12-22 03:27:49 +01:00
12d5356455 Add the link to the reservation conditions to the booking form
This text must be created in the administration interface, but whatever.
2023-12-22 02:29:06 +01:00
03c20fec88 Add management of legal texts 2023-12-22 02:23:18 +01:00
ee86b34e93 Do not panic if there is no location information 2023-12-22 00:26:40 +01:00
7028997e53 Require user_profile for location 2023-12-22 00:26:23 +01:00
bda3507b62 Merge remote-tracking branch 'origin/upcoming' 2023-12-22 00:22:06 +01:00
8cfa3b1c77 Add bottom border to heading and add camping association images 2023-12-22 00:20:53 +01:00
242e2b1c45 Pass the calendar days to the database as strings
Otherwise, it “helpfully” transforms the hours to UTC+02:00, in my case,
and returns a day extra, fucking up the request for the next sis months,
skipping almost a whole month.
2023-12-21 22:51:12 +01:00
adf87fce94 Add the language switch on the header’s top most in desktop sizes
Customer wants the language switch at the same level as the email and
phone links, because that’s what they have on the old website.
2023-12-21 22:39:58 +01:00
8b9f3438a0 Merge remote-tracking branch 'origin/upcoming' 2023-12-21 21:19:18 +01:00
b2b0f035b5 Add style for booking menu item and operture footer section 2023-12-21 21:18:22 +01:00
ff6e9497b5 Replace contact page with location
Customer does not want a contact page, but a page where they can write
the direction on how to reach the campground, with a Google map embed
instead of using Leaflet, because Google Maps shows the reviews right
in the map.

That means i had to replace the GPS locations with XML fields for the
customer to write.  In all four languages.

This time i tried a translation approach inspired by PrestaShop: instead
of opening a new page for each language, i have all languages in the
same page and use AlpineJS to show just a single language.  It is far
easier to write the translations, even though you do not have the source
text visible, specially in this section that there is no place for me
to put the language links.
2023-12-21 21:17:04 +01:00
84423166e1 Add missing reset client_min_messages to setup_redsys test 2023-12-21 20:28:58 +01:00
ca48e1d108 Fix the location of CKEditor’s translations 2023-12-21 20:20:04 +01:00
38d07fb662 Add a class to the booking menu item, and move it second to last
Oriol needs to give it style, and customer wants it there.
2023-12-21 19:13:10 +01:00
5c4ce32143 Do not panic if there is no Redsys payment set up yet 2023-12-21 17:51:39 +01:00
47a2b8e480 Add plot and electricity icons 2023-12-21 17:40:06 +01:00
c9a6df658f Add position to campsite type features 2023-12-21 17:33:01 +01:00
8d3dd589aa Allow to “replace” carousel slides
We realized that it was impossible to update the image of the home and
services carousels: since i am using the add_{type}_carousel() function,
it actually added a new slide instead of replacing the old one.

We need this one for tomorrow, so i made a workaround creating the
new slide, moving the relevant data from the old slide to the new, and
then removing the old slide.  Yuck.
2023-12-21 16:43:46 +01:00
a7e62dbe70 Justify nav’s content to the end
This is to bring back the old behaviour when header was a flex with
space-between, that pushed the menu as far to the right as possible.
2023-12-21 16:24:39 +01:00
d21b34ab40 Merge remote-tracking branch 'origin/upcoming' 2023-12-21 16:22:33 +01:00
2379733673 Set multiply blending mode to campground map’s zones and trees 2023-12-21 16:19:04 +01:00
c555ecd432 Update campground map 2023-12-21 11:59:01 +01:00
acb1b7ced4 Update debian service description 2023-12-21 01:52:20 +01:00
83cf92b8c0 Create the correct camper user in Debian post install 2023-12-21 00:40:01 +01:00
7b6bae5062 Add the email and phone numbers at the very top
Requested by the customer
2023-12-20 20:39:26 +01:00
34081a50f4 Move home carousel to the page’s bottom
Customer requested it
2023-12-20 20:24:06 +01:00
b6c4eb790f Add the country name to the footer’s address
Customer requested it
2023-12-20 20:22:47 +01:00
907d9844d3 Add the booking link to the menu
Customer requested it
2023-12-20 20:19:05 +01:00
3bca810d44 Fix a couple of French translation errors 2023-12-20 20:17:23 +01:00
b4b7584c14 Show “full slides in the carousels, 3 slides in the biggest breakpoint
Customer does not want the next slide to show partially; either it shows
theo whole slide, or not at all.

Had to remove the min-width for campsite type’s spiel, or it would make
the whole thing fall over, i do not know why; possibly because slick
could not reduce the width to its expected value.
2023-12-20 20:11:39 +01:00
678b5cc523 Add user-defined order to campsite types, options, seasons and carousels
I use Sortable, exactly like HTMx’s sorting example does[0].  Had to
export the slug or ID of some entries to be able to add it in the hidden
input.

For forms that use ID instead of slug, had to use an input name other
than “id” because otherwise the swap would fail due to bug #1496[1].  It
is apparently fixed in a recent version of HTMx, but i did not want to
update for fear of behaviour changes.

[0]: https://htmx.org/examples/sortable/
[1]: https://github.com/bigskysoftware/htmx/issues/1496
2023-12-20 19:52:14 +01:00
d2858302ef Parse only campsite type and dates when getting booking form
If i parse everything, then the campsite type options no longer have
their minimum values preset, meaning that people have to input each and
every one of them.
2023-12-20 18:53:07 +01:00
4a07d09557 Fix “optionnel” to “Facultatif” in the French translation
It was me that did it wrong.
2023-12-20 17:51:01 +01:00
1fa7559a46 Fix encoding issue in PO file for French 2023-12-20 13:09:00 +01:00
626af6260f Add country names in French 2023-12-20 13:03:13 +01:00
b8029cd131 Update styles 2023-12-20 13:02:56 +01:00
ed099ad19f Update campground map 2023-12-20 13:02:41 +01:00
a4b6a7e955 Add French translations 2023-12-20 13:01:52 +01:00
1d186a03f3 Add French’s Gettext file, with very little translations
I do not know enough French to do the full translations, but i wanted to
make sure that it would work.
2023-12-13 23:55:43 +01:00
66a7ae3d27 Fix typo in Accommodation, and fix its translations 2023-12-13 23:45:36 +01:00