diff --git a/project.inlang/messages/de.json b/project.inlang/messages/de.json index 618d5ab..72ad3a0 100644 --- a/project.inlang/messages/de.json +++ b/project.inlang/messages/de.json @@ -841,7 +841,7 @@ "description": "Wir senden Ihnen eine Bestätigungs-E-Mail mit den Termindetails." }, "phone": { - "description": "Format: +491234567890. Wir kontaktieren Sie, falls es Fragen/Anderungen zu Ihrem Termin gibt.", + "description": "Format: +491234567890. {name} kontaktiert Sie ggf. telefonisch, falls es Fragen/Änderungen zu Ihrem Termin gibt.", "optional": "(optional)" }, "action": "Daten hinzufügen" diff --git a/project.inlang/messages/en.json b/project.inlang/messages/en.json index 7d116f5..08741a2 100644 --- a/project.inlang/messages/en.json +++ b/project.inlang/messages/en.json @@ -850,7 +850,7 @@ "description": "We will use this to send you the appointment details." }, "phone": { - "description": "Format: +1234567890. We may contact you, if there are questions or changes regarding your appointment.", + "description": "Format: +1234567890. {name} may contact you by phone, if there are questions or changes regarding your appointment.", "optional": "(optional)" }, "action": "Add personal data" diff --git a/src/routes/(pages)/(clients)/book-appointment/[[id]]/(components)/add-personal-data-form/add-personal-data-form.svelte b/src/routes/(pages)/(clients)/book-appointment/[[id]]/(components)/add-personal-data-form/add-personal-data-form.svelte index 50ab004..95120e9 100644 --- a/src/routes/(pages)/(clients)/book-appointment/[[id]]/(components)/add-personal-data-form/add-personal-data-form.svelte +++ b/src/routes/(pages)/(clients)/book-appointment/[[id]]/(components)/add-personal-data-form/add-personal-data-form.svelte @@ -52,60 +52,60 @@ const { form: formData, enhance, validateForm } = form; -
- - {m["public.steps.data.title"]()} - - - - {m["public.steps.data.alert.title"]()} - {#if tenant} +{#if tenant} +
+ + {m["public.steps.data.title"]()} + + + + {m["public.steps.data.alert.title"]()} {m["public.steps.data.alert.description"]({ name: tenant.longName })} - {/if} - - - - - {#snippet children({ props })} - {m["form.name"]()} - - {/snippet} - - - - - - {#snippet children({ props })} - {m["form.email"]()} - - {/snippet} - - - - {m["public.steps.data.email.description"]()} - - - - - {#snippet children({ props })} - {m["form.phone"]()} - - {/snippet} - - - - {m["public.steps.data.phone.description"]()} - {#if tenant?.requirePhone === false} - {m["public.steps.data.phone.optional"]()} - {/if} - - -
- - {m["public.steps.data.action"]()} - -
-
-
+
+ + + + {#snippet children({ props })} + {m["form.name"]()} + + {/snippet} + + + + + + {#snippet children({ props })} + {m["form.email"]()} + + {/snippet} + + + + {m["public.steps.data.email.description"]()} + + + + + {#snippet children({ props })} + {m["form.phone"]()} + + {/snippet} + + + + {m["public.steps.data.phone.description"]({ name: tenant.longName })} + {#if tenant?.requirePhone === false} + {m["public.steps.data.phone.optional"]()} + {/if} + + +
+ + {m["public.steps.data.action"]()} + +
+
+
+{/if}