From e3ba51b8e5de056ddd6c64f66a0d282a33991a92 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 23 Nov 2026 10:32:45 +0000 Subject: [PATCH] Re-open the barber vacancy and stop repeat submits on manage-booking The barber ad (hidden 2026-10-06) is back on the listing page and its redirect is removed, now that the salon is hiring a barber again. On the guest manage-booking page, "Bekreft endring" and "Avbestill" could be clicked repeatedly while the slow POST (Google Calendar + e-mails) was in flight, sending the request again each time. Both forms now lock after the first submit, mirroring the booking form, and the page reloads when restored from the back-forward cache so the buttons are usable again. Co-Authored-By: Claude Opus 5.5 --- .htaccess | 3 -- application/views/pages/manage-booking.php | 39 ++++++++++++++++++++-- ledigestilling/index.html | 2 -- 3 files changed, 37 insertions(+), 7 deletions(-) diff --git a/.htaccess b/.htaccess index 0c567a6..12ba363 100755 --- a/.htaccess +++ b/.htaccess @@ -11,9 +11,6 @@ # Job ad renamed: ledigestilling.html -> negletekniker.html (2026-07-17) RewriteRule ^ledigestilling/ledigestilling\.html$ /ledigestilling/negletekniker.html [R=301,L] - # Barber vacancy hidden (2026-10-06): file kept, direct visits go to the listing. 302 so it can be re-opened. - RewriteRule ^ledigestilling/barber\.html$ /ledigestilling/ [R=302,L] - RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d diff --git a/application/views/pages/manage-booking.php b/application/views/pages/manage-booking.php index fee2d8d..6d9af4f 100755 --- a/application/views/pages/manage-booking.php +++ b/application/views/pages/manage-booking.php @@ -29,6 +29,7 @@ 'next' => 'Neste', 'back' => 'Tilbake', 'send' => 'Bekreft endring', + 'sending' => 'Sender...', 'no_times' => 'Ingen ledige tider denne dagen!', 'no_workers' => 'Ingen medarbeidere utfører alle de valgte tjenestene.', 'expired_msg' => 'Denne bestillingen er allerede passert og kan ikke endres.', @@ -53,6 +54,7 @@ 'next' => 'Tovább', 'back' => 'Vissza', 'send' => 'Módosítás megerősítése', + 'sending' => 'Küldés...', 'no_times' => 'Ezen a napon nincs szabad időpont!', 'no_workers' => 'Egyik kolléga sem végzi el az összes kiválasztott szolgáltatást.', 'expired_msg' => 'Ez a foglalás már elmúlt, nem módosítható.', @@ -77,6 +79,7 @@ 'next' => 'Next', 'back' => 'Back', 'send' => 'Confirm changes', + 'sending' => 'Sending...', 'no_times' => 'There is no available time on this day!', 'no_workers' => 'No staff member performs all of the selected services.', 'expired_msg' => 'This booking has already passed and cannot be modified.', @@ -245,8 +248,7 @@
-
+ @@ -450,8 +452,41 @@