mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-06 19:40:49 +00:00
feat: require birthSurname
This commit is contained in:
parent
1439edaf79
commit
5be3c4cd21
3 changed files with 6 additions and 4 deletions
|
|
@ -111,6 +111,7 @@
|
||||||
.string()
|
.string()
|
||||||
.required()
|
.required()
|
||||||
.matches(/^([0-3]?[0-9])\.(0?[1-9]|1[0-2])\.[0-9]{4}$/),
|
.matches(/^([0-3]?[0-9])\.(0?[1-9]|1[0-2])\.[0-9]{4}$/),
|
||||||
|
birthSurname: yup.string().required(),
|
||||||
sex: yup.string(),
|
sex: yup.string(),
|
||||||
address: yup.string(),
|
address: yup.string(),
|
||||||
street: yup.string().required(),
|
street: yup.string().required(),
|
||||||
|
|
@ -382,6 +383,7 @@
|
||||||
details.parents.map(
|
details.parents.map(
|
||||||
(x) => (x.telephone = x.telephone != '' ? formatTelephone(x.telephone) : '')
|
(x) => (x.telephone = x.telephone != '' ? formatTelephone(x.telephone) : '')
|
||||||
);
|
);
|
||||||
|
|
||||||
form.set({
|
form.set({
|
||||||
gdpr: true,
|
gdpr: true,
|
||||||
linkOk: true,
|
linkOk: true,
|
||||||
|
|
@ -703,7 +705,7 @@
|
||||||
bind:selectedSchool={$form.candidate.firstSchool}
|
bind:selectedSchool={$form.candidate.firstSchool}
|
||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
<span class="mt-10 field">
|
<span class="field mt-10">
|
||||||
<SchoolSelect
|
<SchoolSelect
|
||||||
error={$typedErrors['candidate']['secondSchool']['name'] ||
|
error={$typedErrors['candidate']['secondSchool']['name'] ||
|
||||||
$typedErrors['candidate']['secondSchool']['field']}
|
$typedErrors['candidate']['secondSchool']['field']}
|
||||||
|
|
|
||||||
|
|
@ -134,7 +134,7 @@ const cs: BaseTranslation = {
|
||||||
input: {
|
input: {
|
||||||
optional: 'nepovinné',
|
optional: 'nepovinné',
|
||||||
nameSurname: 'Jméno a příjmení',
|
nameSurname: 'Jméno a příjmení',
|
||||||
birthSurname: 'Rodné příjmení (pokud odlišné)',
|
birthSurname: 'Rodné příjmení',
|
||||||
email: 'E-mail',
|
email: 'E-mail',
|
||||||
telephone: 'Telefon',
|
telephone: 'Telefon',
|
||||||
address: 'Ulice a č. p.',
|
address: 'Ulice a č. p.',
|
||||||
|
|
|
||||||
|
|
@ -318,7 +318,7 @@ type RootTranslation = {
|
||||||
*/
|
*/
|
||||||
nameSurname: string
|
nameSurname: string
|
||||||
/**
|
/**
|
||||||
* Rodné příjmení (pokud odlišné)
|
* Rodné příjmení
|
||||||
*/
|
*/
|
||||||
birthSurname: string
|
birthSurname: string
|
||||||
/**
|
/**
|
||||||
|
|
@ -721,7 +721,7 @@ export type TranslationFunctions = {
|
||||||
*/
|
*/
|
||||||
nameSurname: () => LocalizedString
|
nameSurname: () => LocalizedString
|
||||||
/**
|
/**
|
||||||
* Rodné příjmení (pokud odlišné)
|
* Rodné příjmení
|
||||||
*/
|
*/
|
||||||
birthSurname: () => LocalizedString
|
birthSurname: () => LocalizedString
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue