mirror of
https://github.com/danbulant/Portfolio
synced 2026-07-06 19:40:49 +00:00
fix: candidate register
This commit is contained in:
parent
e2c3eed4fb
commit
faad621f20
1 changed files with 10 additions and 9 deletions
|
|
@ -23,9 +23,9 @@
|
||||||
import type { CandidateData } from '$lib/stores/candidate';
|
import type { CandidateData } from '$lib/stores/candidate';
|
||||||
import AccountLinkCheckBox from '$lib/components/checkbox/AccountLinkCheckBox.svelte';
|
import AccountLinkCheckBox from '$lib/components/checkbox/AccountLinkCheckBox.svelte';
|
||||||
import GradesTable from '$lib/components/grades/GradesTable.svelte';
|
import GradesTable from '$lib/components/grades/GradesTable.svelte';
|
||||||
import SchoolSelect from '$lib/components/select/SchoolSelect.svelte';
|
import SchoolSelect from '$lib/components/select/SchoolSelect/SchoolSelect.svelte';
|
||||||
import PersonalIdConfirmCheckBox from '$lib/components/checkbox/PersonalIdConfirmCheckBox.svelte';
|
import PersonalIdConfirmCheckBox from '$lib/components/checkbox/PersonalIdConfirmCheckBox.svelte';
|
||||||
import { deriveBirthdateFromPersonalId, isPersonalIdNumberWithBirthdateValid } from '$lib/utils/personalIdFormat';
|
import { isPersonalIdNumberWithBirthdateValid } from '$lib/utils/personalIdFormat';
|
||||||
|
|
||||||
let pageIndex = 0;
|
let pageIndex = 0;
|
||||||
let pagesFilled = [false, false, false, false, false, false, false, false];
|
let pagesFilled = [false, false, false, false, false, false, false, false];
|
||||||
|
|
@ -72,9 +72,9 @@
|
||||||
schoolName: '',
|
schoolName: '',
|
||||||
healthInsurance: '',
|
healthInsurance: '',
|
||||||
grades: [],
|
grades: [],
|
||||||
firstSchool: {name: '', field: ''},
|
firstSchool: { name: '', field: '' },
|
||||||
secondSchool: {name: '', field: ''},
|
secondSchool: { name: '', field: '' },
|
||||||
testLanguage: '',
|
testLanguage: ''
|
||||||
},
|
},
|
||||||
parents: [
|
parents: [
|
||||||
{
|
{
|
||||||
|
|
@ -350,9 +350,11 @@
|
||||||
break;
|
break;
|
||||||
case 7:
|
case 7:
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if ($typedErrors["candidate"]["firstSchool"].name || $typedErrors["candidate"]["firstSchool"].field ||
|
if (
|
||||||
// @ts-ignore
|
$typedErrors['candidate']['firstSchool']['name'] ||
|
||||||
$typedErrors["candidate"]["secondSchool"].name || $typedErrors["candidate"]["secondSchool"].field
|
$typedErrors['candidate']['firstSchool']['field'] ||
|
||||||
|
$typedErrors['candidate']['secondSchool']['name'] ||
|
||||||
|
$typedErrors['candidate']['secondSchool']['field']
|
||||||
) {
|
) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
@ -472,7 +474,6 @@
|
||||||
<h1 class="title mt-8">{pageTexts[1]}</h1>
|
<h1 class="title mt-8">{pageTexts[1]}</h1>
|
||||||
<p class="description mt-8 block text-center">
|
<p class="description mt-8 block text-center">
|
||||||
{$LL.candidate.register.third.description()}
|
{$LL.candidate.register.third.description()}
|
||||||
{$LL.candidate.register.third.description()}
|
|
||||||
</p>
|
</p>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue