fix: remove study from register form

This commit is contained in:
EETagent 2023-01-15 23:54:03 +01:00
parent 8c30c12395
commit ba69562bf9

View file

@ -62,7 +62,6 @@
personalIdNumber: '', personalIdNumber: '',
schoolName: '', schoolName: '',
healthInsurance: '', healthInsurance: '',
study: ''
}, },
parents: [ parents: [
{ {
@ -110,7 +109,6 @@
personalIdNumber: yup.string().required(), personalIdNumber: yup.string().required(),
schoolName: yup.string().required(), schoolName: yup.string().required(),
healthInsurance: yup.number().required(), healthInsurance: yup.number().required(),
study: yup.string().required()
}), }),
parents: yup.array().of( parents: yup.array().of(
yup.object().shape({ yup.object().shape({
@ -332,8 +330,7 @@
$typedErrors['candidate']['citizenship'] || $typedErrors['candidate']['citizenship'] ||
$typedErrors['candidate']['personalIdNumber'] || $typedErrors['candidate']['personalIdNumber'] ||
$typedErrors['candidate']['schoolName'] || $typedErrors['candidate']['schoolName'] ||
$typedErrors['candidate']['healthInsurance'] || $typedErrors['candidate']['healthInsurance']
$typedErrors['candidate']['study']
) { ) {
return true; return true;
} }
@ -640,7 +637,7 @@
{/if} {/if}
</span> </span>
<span> <span class="ml-2">
<TextField <TextField
error={$typedErrors['candidate']['healthInsurance']} error={$typedErrors['candidate']['healthInsurance']}
on:change={handleChange} on:change={handleChange}
@ -668,15 +665,6 @@
placeholder="Rodné číslo" placeholder="Rodné číslo"
/> />
{/if} {/if}
<span class="ml-2">
<SelectField
error={$typedErrors['candidate']['study']}
on:change={handleChange}
bind:value={$form.candidate.study}
placeholder="Obor"
options={['KB', 'IT', 'G']}
/>
</span>
</div> </div>
{/if} {/if}
</div> </div>