From 5be3c4cd21f18e1a39c70e4fab238641399f2160 Mon Sep 17 00:00:00 2001 From: EETagent Date: Thu, 26 Jan 2023 23:07:03 +0100 Subject: [PATCH] feat: require birthSurname --- .../routes/(candidate)/(authenticated)/register/+page.svelte | 4 +++- frontend/src/translations/cs/index.ts | 2 +- frontend/src/translations/i18n-types.ts | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte index 54e9fc4..d88e8f7 100644 --- a/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte +++ b/frontend/src/routes/(candidate)/(authenticated)/register/+page.svelte @@ -111,6 +111,7 @@ .string() .required() .matches(/^([0-3]?[0-9])\.(0?[1-9]|1[0-2])\.[0-9]{4}$/), + birthSurname: yup.string().required(), sex: yup.string(), address: yup.string(), street: yup.string().required(), @@ -382,6 +383,7 @@ details.parents.map( (x) => (x.telephone = x.telephone != '' ? formatTelephone(x.telephone) : '') ); + form.set({ gdpr: true, linkOk: true, @@ -703,7 +705,7 @@ bind:selectedSchool={$form.candidate.firstSchool} /> - + LocalizedString /** - * Rodné příjmení (pokud odlišné) + * Rodné příjmení */ birthSurname: () => LocalizedString /**