From 5293f3f347830850fe7f4ef6db144723528b16c0 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Wed, 3 Jun 2026 22:47:31 -0700 Subject: [PATCH] Fixes to calendar lifecycle --- web/modules/custom/riverside_pt/css/app.css | 4 ++++ .../riverside_pt/js/components/rpt-booking.js | 23 ++++++++++++++++++- 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/web/modules/custom/riverside_pt/css/app.css b/web/modules/custom/riverside_pt/css/app.css index 518dbe8..aebdbf9 100644 --- a/web/modules/custom/riverside_pt/css/app.css +++ b/web/modules/custom/riverside_pt/css/app.css @@ -761,6 +761,10 @@ html { margin-top: 2vw; } +.mb-3{ + margin-bottom: 0.75rem; +} + .block{ display: block; } diff --git a/web/modules/custom/riverside_pt/js/components/rpt-booking.js b/web/modules/custom/riverside_pt/js/components/rpt-booking.js index 31ad3ae..6c18670 100644 --- a/web/modules/custom/riverside_pt/js/components/rpt-booking.js +++ b/web/modules/custom/riverside_pt/js/components/rpt-booking.js @@ -13,7 +13,7 @@ const CHECK = html` `; -const EMPTY_FORM = { firstName: "", lastName: "", phone: "", comments: "" }; +const EMPTY_FORM = { firstName: "", lastName: "", email: "", phone: "", comments: "" }; function formatPhone(raw) { let d = String(raw || "").replace(/\D/g, ""); @@ -298,6 +298,7 @@ function BookingPanel({ service, settings, onServiceChange }) { service: service, firstName: formData.firstName, lastName: formData.lastName, + email: formData.email, phone: formData.phone, comments: formData.comments, }), @@ -310,6 +311,7 @@ function BookingPanel({ service, settings, onServiceChange }) { service: service, firstName: formData.firstName, lastName: formData.lastName, + email: formData.email, }); setSuccess(true); setSelectedSlotId(null); @@ -371,6 +373,10 @@ function BookingPanel({ service, settings, onServiceChange }) { ${slots.length > 0 ? html`
Select a time on ${(function () { + var p = slots[0].start.split("T")[0].split("-"); + return parseInt(p[1]) + "/" + parseInt(p[2]) + "/" + p[0]; + })()}: