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]; + })()}: