diff --git a/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte b/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte index 031fbf9..c215a72 100644 --- a/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte +++ b/frontend/src/lib/components/dashboard/DashboardInfoCard.svelte @@ -7,10 +7,12 @@ import StatusNotificationBig from './StatusNotificationBig.svelte'; import InfoButton from './InfoButton.svelte'; import { candidateData } from '$lib/stores/candidate'; + import tippy from 'tippy.js'; export let title: string; export let status: Status; + export let showDetails = true; let loading = false; const submitPortfolio = async () => { @@ -56,12 +58,12 @@
- + showDetails = !showDetails}>
-
+
@@ -71,6 +73,50 @@
+ {#if showDetails} + +
Vámi vyplněné osobní údaje", + allowHTML: true, + placement: 'top', + showOnCreate: false, + delay: 0 + }} + class="flex flex-col justify-around mt-10"> + Adresa: {$candidateData.candidate.address} + Datum narození: {$candidateData.candidate.birthdate} + Místo narození: {$candidateData.candidate.birthplace} + Rodné číslo: {$candidateData.candidate.personalIdNumber} + Telefon: {$candidateData.candidate.telephone} +
+
Vámi vyplněné osobní údaje", + allowHTML: true, + placement: 'top', + showOnCreate: false, + delay: 0 + }} + class="ml-10 flex flex-col justify-around mt-10"> + {#each $candidateData.parents as parent} +
+ {parent.name + " " + parent.surname} + Email: {parent.email} + Telefon: {parent.telephone} +
+ {/each} +
+ {/if}
diff --git a/frontend/src/lib/components/dashboard/InfoButton.svelte b/frontend/src/lib/components/dashboard/InfoButton.svelte index 11c3e1f..215fb8e 100644 --- a/frontend/src/lib/components/dashboard/InfoButton.svelte +++ b/frontend/src/lib/components/dashboard/InfoButton.svelte @@ -16,7 +16,8 @@
- showInfo()} on:keydown={(_) => showInfo()} use:tippy={{ + showInfo()} on:keydown={(_) => showInfo()} + use:tippy={{ content: "Zobrazit osobní údaje", placement: 'top', showOnCreate: false, diff --git a/frontend/src/routes/(candidate)/(authenticated)/dashboard/+page.svelte b/frontend/src/routes/(candidate)/(authenticated)/dashboard/+page.svelte index 79a235d..27fb553 100644 --- a/frontend/src/routes/(candidate)/(authenticated)/dashboard/+page.svelte +++ b/frontend/src/routes/(candidate)/(authenticated)/dashboard/+page.svelte @@ -14,6 +14,9 @@ export let data: PageData; + // TODO: transition + let showDetails = true; + // @ts-ignore $: candidateData.set(data.candidate); // @ts-ignore @@ -33,13 +36,13 @@
-
- +
+ {$candidateData.candidate.email} Uchazeč na SSPŠ
-
+