Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+7
-81
@@ -1,89 +1,15 @@
|
||||
// AK-P16b · booking-page editor UI (M06 Block E.2 + H). Minimal FUNCTIONAL form
|
||||
// (bespoke polish follows D-P16): grunddata + providers + confirmation template +
|
||||
// publish toggle, and the public-URL + iframe embed-code generator with copy buttons.
|
||||
// AK-P16b · booking-page editor route component (M06 Block E.2 + H). Thin
|
||||
// wrapper: injects the loader data + csrf into the interim ~/ui screen
|
||||
// (AD-28); final Subframe optics follow David's D-P16 delta.
|
||||
|
||||
import { Form, useActionData, useLoaderData } from "react-router";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useActionData, useLoaderData } from "react-router";
|
||||
import { useRootData } from "~/utils/data/useRootData";
|
||||
import { BookingPageEditorPage } from "~/components/screens/booking/BookingPageEditorPage";
|
||||
import type { BookingPageEditorLoaderData, BookingPageEditorActionData } from "../routes/BookingPageEditor.server";
|
||||
|
||||
function CopyField({ label, value }: { label: string; value: string }): JSX.Element {
|
||||
return (
|
||||
<div className="mt-2">
|
||||
<span className="text-muted-foreground text-xs">{label}</span>
|
||||
<div className="flex gap-2">
|
||||
<input readOnly value={value} className="w-full rounded border px-2 py-1 text-xs" data-ui-id="ui.booking.pages.embed.value" />
|
||||
<button type="button" className="rounded border px-2 py-1 text-xs" onClick={() => navigator.clipboard?.writeText(value)}>
|
||||
⧉
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function BookingPageEditorRoute(): JSX.Element {
|
||||
const { t } = useTranslation();
|
||||
export default function BookingPageEditorRoute(): React.JSX.Element {
|
||||
const vm = useLoaderData<BookingPageEditorLoaderData>();
|
||||
const actionData = useActionData<BookingPageEditorActionData>();
|
||||
const rootData = useRootData();
|
||||
const page = vm.page;
|
||||
|
||||
return (
|
||||
<main className="mx-auto max-w-2xl px-4 py-10" data-ui-id="ui.booking.pages.editor">
|
||||
<h1 className="text-foreground text-xl font-semibold">{t("bookings.pages.editor.title")}</h1>
|
||||
|
||||
{actionData && !actionData.ok ? (
|
||||
<p role="alert" className="mt-4 text-red-600" data-ui-id="ui.booking.pages.editor.error">
|
||||
{t(actionData.errorKey)}
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
<Form method="post" className="mt-6 space-y-3">
|
||||
{rootData.csrf && <input type="hidden" name="csrf" value={rootData.csrf} />}
|
||||
<label className="block">
|
||||
<span className="text-sm">{t("bookings.pages.editor.slug")}</span>
|
||||
<input name="slug" defaultValue={page?.slug ?? ""} required className="w-full rounded border px-2 py-1" />
|
||||
</label>
|
||||
<label className="block">
|
||||
<span className="text-sm">{t("bookings.pages.editor.pageTitle")}</span>
|
||||
<input name="title" defaultValue={page?.title ?? ""} required className="w-full rounded border px-2 py-1" />
|
||||
</label>
|
||||
<label className="block">
|
||||
<span className="text-sm">{t("bookings.pages.editor.description")}</span>
|
||||
<textarea name="description" defaultValue={page?.description ?? ""} className="w-full rounded border px-2 py-1" />
|
||||
</label>
|
||||
<label className="block">
|
||||
<span className="text-sm">{t("bookings.pages.editor.duration")}</span>
|
||||
<input name="durationMinutes" type="number" defaultValue={page?.durationMinutes ?? 30} className="w-full rounded border px-2 py-1" />
|
||||
</label>
|
||||
<label className="block">
|
||||
<span className="text-sm">{t("bookings.pages.editor.providers")}</span>
|
||||
<input name="providers" defaultValue={page?.providerUserIds.join(",") ?? ""} placeholder="userId1,userId2" className="w-full rounded border px-2 py-1" />
|
||||
</label>
|
||||
<label className="block">
|
||||
<span className="text-sm">{t("bookings.pages.editor.confirmationSubject")}</span>
|
||||
<input name="confirmationEmailSubject" defaultValue={page?.confirmationEmailSubject ?? ""} className="w-full rounded border px-2 py-1" />
|
||||
</label>
|
||||
<label className="block">
|
||||
<span className="text-sm">{t("bookings.pages.editor.confirmationBody")}</span>
|
||||
<textarea name="confirmationEmailBody" defaultValue={page?.confirmationEmailBody ?? ""} className="w-full rounded border px-2 py-1" />
|
||||
</label>
|
||||
<label className="flex items-center gap-2 text-sm">
|
||||
<input type="checkbox" name="isPublished" defaultChecked={page?.isPublished ?? false} />
|
||||
{t("bookings.pages.editor.publishToggle")}
|
||||
</label>
|
||||
<button type="submit" className="rounded bg-primary px-4 py-2 text-primary-foreground" data-ui-id="ui.booking.pages.editor.save">
|
||||
{t("bookings.pages.editor.save")}
|
||||
</button>
|
||||
</Form>
|
||||
|
||||
{vm.publicUrl && vm.embedCode ? (
|
||||
<section className="mt-8" data-ui-id="ui.booking.pages.embed">
|
||||
<h2 className="font-medium">{t("bookings.pages.embedCode")}</h2>
|
||||
<CopyField label={t("bookings.pages.publicUrl")} value={vm.publicUrl} />
|
||||
<CopyField label={t("bookings.pages.embedCode")} value={vm.embedCode} />
|
||||
</section>
|
||||
) : null}
|
||||
</main>
|
||||
);
|
||||
return <BookingPageEditorPage vm={vm} actionErrorKey={actionData && !actionData.ok ? actionData.errorKey : null} csrf={rootData.csrf ?? null} />;
|
||||
}
|
||||
+143
-42
@@ -1,14 +1,102 @@
|
||||
// AK-P16b · public booking page (M06 Block G) — minimal FUNCTIONAL UI (reachable +
|
||||
// i18n + states), NOT the bespoke Calendly-polish screen (that waits on David D-P16).
|
||||
// Single-page flow: pick a slot → fill the mini-form (GDPR required) → confirmation
|
||||
// with an "add to calendar" (.ics) download. The component reads route-injected data
|
||||
// only (no DB import); it is in apps/web so useLoaderData is allowed here.
|
||||
// AK-P16b · public booking page (M06 Block G) — interim S04-style look (AD-28)
|
||||
// matching the PublicFormRenderer target screens: centered card with accent bar,
|
||||
// slot pills, themed submit and centered success state. Kept as plain `tcbook-*`
|
||||
// CSS (no `~/ui`, no Tailwind) so the `/embed` iframe variant stays
|
||||
// dependency-free — same documented deviation as PublicFormRenderer. The bespoke
|
||||
// Calendly-polish screen still follows David D-BOOK/D-P16 (design-nachzug).
|
||||
// Single-page flow: pick a slot → fill the mini-form (GDPR required) →
|
||||
// confirmation with an "add to calendar" (.ics) download. The component reads
|
||||
// route-injected data only (no DB import); useLoaderData is allowed here.
|
||||
|
||||
import { Form, useActionData, useLoaderData, useNavigation } from "react-router";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import type { PublicBookingLoaderData, PublicBookingActionData } from "../routes/PublicBooking.server";
|
||||
|
||||
export default function PublicBookingRoute(): JSX.Element {
|
||||
/**
|
||||
* Self-contained styles mirroring TCFORM_CSS (S04 public form, V01 success,
|
||||
* V03 submit error) with booking-specific slot pills. Driven by the same CSS
|
||||
* variable names' booking twins so a tenant theme can restyle both surfaces.
|
||||
*/
|
||||
const TCBOOK_CSS = `
|
||||
.tcbook-root { font-family: var(--tcbook-font, system-ui, -apple-system, "Segoe UI", sans-serif); color: var(--tcbook-text, #16232e); box-sizing: border-box; padding: 16px; }
|
||||
.tcbook-root *, .tcbook-root *::before, .tcbook-root *::after { box-sizing: border-box; }
|
||||
.tcbook-root--page { min-height: 100vh; background: #f2f4f7; padding: 48px 16px; }
|
||||
.tcbook-shell { max-width: 576px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
|
||||
.tcbook-brand { display: flex; justify-content: center; }
|
||||
.tcbook-brand-badge { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid #e0e5eb; background: #eef2f7; background: color-mix(in srgb, var(--tcbook-primary, #2563eb) 10%, #ffffff); color: var(--tcbook-primary, #2563eb); font-size: 1.15rem; font-weight: 700; }
|
||||
.tcbook-card { background: var(--tcbook-bg, #ffffff); border: 1px solid #e0e5eb; border-top: 4px solid var(--tcbook-primary, #2563eb); border-radius: var(--tcbook-radius, 10px); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06); padding: 32px 28px; }
|
||||
.tcbook-root h1 { font-size: 1.35rem; line-height: 1.3; margin: 0 0 6px; font-weight: 700; }
|
||||
.tcbook-tenant { margin: 0 0 4px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.6; }
|
||||
.tcbook-root p.tcbook-description { margin: 0; font-size: 0.9rem; line-height: 1.5; opacity: 0.72; }
|
||||
.tcbook-duration { margin: 8px 0 0; font-size: 0.85rem; opacity: 0.72; }
|
||||
.tcbook-divider { border: 0; height: 1px; background: #e7ebef; margin: 20px 0; }
|
||||
.tcbook-legend { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 8px; padding: 0; }
|
||||
.tcbook-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
|
||||
.tcbook-slot { position: relative; }
|
||||
.tcbook-slot input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; }
|
||||
.tcbook-slot span { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; padding: 9px 14px; border: 1px solid #cfd6dd; border-radius: var(--tcbook-radius, 8px); font-size: 0.92rem; font-weight: 500; background: #fff; transition: border-color 120ms ease, background 120ms ease, color 120ms ease; }
|
||||
.tcbook-slot input:checked + span { border-color: var(--tcbook-primary, #2563eb); background: var(--tcbook-primary, #2563eb); color: #fff; }
|
||||
.tcbook-slot input:focus-visible + span { outline: 2px solid var(--tcbook-primary, #2563eb); outline-offset: 2px; }
|
||||
.tcbook-slot input:hover:not(:checked) + span { border-color: var(--tcbook-primary, #2563eb); }
|
||||
.tcbook-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
|
||||
.tcbook-row { display: block; margin-bottom: 14px; }
|
||||
.tcbook-root input[type=text], .tcbook-root input[type=email], .tcbook-root input[type=tel] { width: 100%; padding: 10px 12px; border: 1px solid #cfd6dd; border-radius: var(--tcbook-radius, 8px); font: inherit; font-size: 0.95rem; color: inherit; background: #fff; transition: border-color 120ms ease, box-shadow 120ms ease; }
|
||||
.tcbook-root input:focus { outline: none; border-color: var(--tcbook-primary, #2563eb); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tcbook-primary, #2563eb) 18%, transparent); }
|
||||
.tcbook-root input::placeholder { color: inherit; opacity: 0.45; }
|
||||
.tcbook-root input[type=checkbox] { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--tcbook-primary, #2563eb); flex: none; }
|
||||
.tcbook-consent { border: 1px solid #e0e5eb; border-radius: var(--tcbook-radius, 8px); background: #fbfcfd; padding: 12px 14px; margin-bottom: 14px; }
|
||||
.tcbook-consent label { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.875rem; line-height: 1.45; margin: 0; cursor: pointer; }
|
||||
.tcbook-error { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #fecaca; border-radius: var(--tcbook-radius, 8px); background: #fef2f2; color: #991b1b; font-size: 0.9rem; line-height: 1.45; margin: 16px 0 0; }
|
||||
.tcbook-error svg { flex: none; margin-top: 2px; }
|
||||
.tcbook-empty { padding: 12px 14px; border: 1px dashed #cfd6dd; border-radius: var(--tcbook-radius, 8px); background: #fbfcfd; font-size: 0.9rem; line-height: 1.45; margin-top: 16px; opacity: 0.85; }
|
||||
.tcbook-root button.tcbook-submit { display: block; width: 100%; background: var(--tcbook-primary, #2563eb); color: #fff; border: 0; padding: 12px 18px; border-radius: var(--tcbook-radius, 8px); cursor: pointer; font: inherit; font-size: 0.95rem; font-weight: 600; transition: filter 120ms ease; }
|
||||
.tcbook-root button.tcbook-submit:hover:not([disabled]) { filter: brightness(0.92); }
|
||||
.tcbook-root button.tcbook-submit:focus-visible { outline: 2px solid var(--tcbook-primary, #2563eb); outline-offset: 2px; }
|
||||
.tcbook-root button.tcbook-submit[disabled] { opacity: 0.6; cursor: progress; }
|
||||
.tcbook-success { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding: 16px 0; }
|
||||
.tcbook-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: #ecfdf5; color: #059669; }
|
||||
.tcbook-success-message { margin: 0; font-size: 1.1rem; font-weight: 600; line-height: 1.4; }
|
||||
.tcbook-success-body { margin: 0; font-size: 0.92rem; line-height: 1.5; opacity: 0.78; }
|
||||
.tcbook-ics { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--tcbook-primary, #2563eb); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: var(--tcbook-radius, 8px); font-size: 0.92rem; font-weight: 600; transition: filter 120ms ease; }
|
||||
.tcbook-ics:hover { filter: brightness(0.92); }
|
||||
@media (max-width: 520px) { .tcbook-card { padding: 24px 16px; } .tcbook-root--page { padding: 24px 12px; } .tcbook-grid-2 { grid-template-columns: 1fr; } }
|
||||
`;
|
||||
|
||||
function IconCheck(): React.JSX.Element {
|
||||
return (
|
||||
<svg width="28" height="28" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2.2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
||||
<path d="M20 6 9 17l-5-5" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
function IconAlert(): React.JSX.Element {
|
||||
return (
|
||||
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true">
|
||||
<circle cx="12" cy="12" r="10" />
|
||||
<line x1="12" y1="8" x2="12" y2="12" />
|
||||
<line x1="12" y1="16" x2="12.01" y2="16" />
|
||||
</svg>
|
||||
);
|
||||
}
|
||||
|
||||
function BookingShell({ isEmbed, tenantName, children }: { isEmbed: boolean; tenantName: string; children: React.ReactNode }): React.JSX.Element {
|
||||
return (
|
||||
<main data-ui-id="ui.booking.public" className={isEmbed ? "tcbook-root" : "tcbook-root tcbook-root--page"}>
|
||||
<style dangerouslySetInnerHTML={{ __html: TCBOOK_CSS }} />
|
||||
<div className="tcbook-shell">
|
||||
{!isEmbed ? (
|
||||
<div className="tcbook-brand" aria-hidden="true">
|
||||
<span className="tcbook-brand-badge">{(tenantName.trim()[0] ?? "•").toUpperCase()}</span>
|
||||
</div>
|
||||
) : null}
|
||||
<div className="tcbook-card">{children}</div>
|
||||
</div>
|
||||
</main>
|
||||
);
|
||||
}
|
||||
|
||||
export default function PublicBookingRoute(): React.JSX.Element {
|
||||
const vm = useLoaderData<PublicBookingLoaderData>();
|
||||
const actionData = useActionData<PublicBookingActionData>();
|
||||
const navigation = useNavigation();
|
||||
@@ -18,73 +106,86 @@ export default function PublicBookingRoute(): JSX.Element {
|
||||
if (actionData?.ok) {
|
||||
const icsHref = `data:text/calendar;base64,${actionData.icsBase64}`;
|
||||
return (
|
||||
<main data-ui-id="ui.booking.public" className={vm.isEmbed ? "p-4" : "mx-auto max-w-xl p-6"}>
|
||||
<h1 className="text-xl font-semibold">{t("bookings.public.confirmedHeadline")}</h1>
|
||||
<p className="mt-2">
|
||||
{t("bookings.public.confirmedBody", { title: actionData.titleLabel, date: actionData.dateLabel, time: actionData.timeLabel })}
|
||||
</p>
|
||||
<a data-ui-id="ui.booking.public.ics" href={icsHref} download="termin.ics" className="mt-4 inline-block underline">
|
||||
{t("bookings.public.addToCalendar")}
|
||||
</a>
|
||||
</main>
|
||||
<BookingShell isEmbed={vm.isEmbed} tenantName={vm.tenantName}>
|
||||
<div className="tcbook-success">
|
||||
<span className="tcbook-success-icon">
|
||||
<IconCheck />
|
||||
</span>
|
||||
<p className="tcbook-success-message">{t("bookings.public.confirmedHeadline")}</p>
|
||||
<p className="tcbook-success-body">
|
||||
{t("bookings.public.confirmedBody", { title: actionData.titleLabel, date: actionData.dateLabel, time: actionData.timeLabel })}
|
||||
</p>
|
||||
<a data-ui-id="ui.booking.public.ics" href={icsHref} download="termin.ics" className="tcbook-ics">
|
||||
{t("bookings.public.addToCalendar")}
|
||||
</a>
|
||||
</div>
|
||||
</BookingShell>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<main data-ui-id="ui.booking.public" className={vm.isEmbed ? "p-4" : "mx-auto max-w-xl p-6"}>
|
||||
<BookingShell isEmbed={vm.isEmbed} tenantName={vm.tenantName}>
|
||||
<header>
|
||||
<p className="text-sm text-muted-foreground">{vm.tenantName}</p>
|
||||
<h1 className="text-xl font-semibold">{vm.title}</h1>
|
||||
{vm.description ? <p className="mt-1 text-muted-foreground">{vm.description}</p> : null}
|
||||
<p className="mt-1 text-sm">{t("bookings.public.duration", { minutes: vm.durationMinutes })}</p>
|
||||
<p className="tcbook-tenant">{vm.tenantName}</p>
|
||||
<h1>{vm.title}</h1>
|
||||
{vm.description ? <p className="tcbook-description">{vm.description}</p> : null}
|
||||
<p className="tcbook-duration">{t("bookings.public.duration", { minutes: vm.durationMinutes })}</p>
|
||||
</header>
|
||||
|
||||
{actionData && !actionData.ok ? (
|
||||
<p data-ui-id="ui.booking.public.error" role="alert" className="mt-4 text-red-600">
|
||||
{t(actionData.errorKey)}
|
||||
<p data-ui-id="ui.booking.public.error" role="alert" className="tcbook-error">
|
||||
<IconAlert />
|
||||
<span>{t(actionData.errorKey)}</span>
|
||||
</p>
|
||||
) : null}
|
||||
|
||||
{vm.slots.length === 0 ? (
|
||||
<p data-ui-id="ui.booking.public.empty" className="mt-6">
|
||||
<p data-ui-id="ui.booking.public.empty" className="tcbook-empty">
|
||||
{t("bookings.public.noSlots")}
|
||||
</p>
|
||||
) : (
|
||||
<Form method="post" className="mt-6 space-y-4" data-ui-id="ui.booking.public.form">
|
||||
<Form method="post" data-ui-id="ui.booking.public.form">
|
||||
<input type="hidden" name="date" value={vm.date} />
|
||||
<input type="hidden" name="tz" value={vm.timezone} />
|
||||
{/* Honeypot — hidden from real users (M06 abuse guard). */}
|
||||
<input type="text" name="company" tabIndex={-1} autoComplete="off" className="hidden" aria-hidden="true" />
|
||||
<input type="text" name="company" tabIndex={-1} autoComplete="off" aria-hidden="true" style={{ position: "absolute", left: "-9999px", width: 1, height: 1, opacity: 0 }} />
|
||||
|
||||
<fieldset>
|
||||
<legend className="text-sm font-medium">{t("bookings.public.chooseSlot", { date: vm.date })}</legend>
|
||||
<div className="mt-2 flex flex-wrap gap-2">
|
||||
<hr className="tcbook-divider" />
|
||||
<fieldset className="tcbook-slots-fieldset" style={{ border: 0, margin: 0, padding: 0, marginBottom: 18 }}>
|
||||
<legend className="tcbook-legend">{t("bookings.public.chooseSlot", { date: vm.date })}</legend>
|
||||
<div className="tcbook-slots">
|
||||
{vm.slots.map((slot, index) => (
|
||||
<label key={slot.startAtIso} className="cursor-pointer rounded border px-3 py-1">
|
||||
<input type="radio" name="startAt" value={slot.startAtIso} defaultChecked={index === 0} className="mr-1" />
|
||||
{slot.label}
|
||||
<label key={slot.startAtIso} className="tcbook-slot">
|
||||
<input type="radio" name="startAt" value={slot.startAtIso} defaultChecked={index === 0} />
|
||||
<span>{slot.label}</span>
|
||||
</label>
|
||||
))}
|
||||
</div>
|
||||
</fieldset>
|
||||
|
||||
<div className="grid grid-cols-2 gap-3">
|
||||
<input name="vorname" placeholder={t("bookings.public.firstName")} className="rounded border px-3 py-2" required />
|
||||
<input name="nachname" placeholder={t("bookings.public.lastName")} className="rounded border px-3 py-2" required />
|
||||
<div className="tcbook-grid-2 tcbook-row">
|
||||
<input name="vorname" type="text" placeholder={t("bookings.public.firstName")} required />
|
||||
<input name="nachname" type="text" placeholder={t("bookings.public.lastName")} required />
|
||||
</div>
|
||||
<div className="tcbook-row">
|
||||
<input name="email" type="email" placeholder={t("bookings.public.email")} required />
|
||||
</div>
|
||||
<div className="tcbook-row">
|
||||
<input name="telefon" type="tel" placeholder={t("bookings.public.phone")} />
|
||||
</div>
|
||||
<input name="email" type="email" placeholder={t("bookings.public.email")} className="w-full rounded border px-3 py-2" required />
|
||||
<input name="telefon" placeholder={t("bookings.public.phone")} className="w-full rounded border px-3 py-2" />
|
||||
|
||||
<label className="flex items-start gap-2 text-sm">
|
||||
<input type="checkbox" name="gdpr" required className="mt-1" />
|
||||
<span>{t("bookings.public.gdpr")}</span>
|
||||
</label>
|
||||
<div className="tcbook-consent">
|
||||
<label>
|
||||
<input type="checkbox" name="gdpr" required />
|
||||
<span>{t("bookings.public.gdpr")}</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<button type="submit" disabled={submitting} data-ui-id="ui.booking.public.submit" className="rounded bg-primary px-4 py-2 text-primary-foreground disabled:opacity-50">
|
||||
<button type="submit" disabled={submitting} data-ui-id="ui.booking.public.submit" className="tcbook-submit">
|
||||
{submitting ? t("bookings.public.submitting") : t("bookings.public.submit")}
|
||||
</button>
|
||||
</Form>
|
||||
)}
|
||||
</main>
|
||||
</BookingShell>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user