From 089e478afc849673abdc2895112cd597f7434c90 Mon Sep 17 00:00:00 2001 From: Harald Mack Date: Wed, 28 Aug 2024 17:06:26 +0200 Subject: [PATCH 01/22] remove abstractregistrationpage from childDataInput --- .../components/ChildrenRegistration.svelte | 20 ++++++++++++++----- .../DataInput/AbstractDropdownItem.svelte | 2 +- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/src/lib/components/ChildrenRegistration.svelte b/src/lib/components/ChildrenRegistration.svelte index 8e9ff9ad..acaa7af9 100644 --- a/src/lib/components/ChildrenRegistration.svelte +++ b/src/lib/components/ChildrenRegistration.svelte @@ -1,8 +1,8 @@ -
- +
+ + {#if heading} + {heading} + {/if} + +
diff --git a/src/lib/components/DataInput/AbstractDropdownItem.svelte b/src/lib/components/DataInput/AbstractDropdownItem.svelte index 031e9f05..1ec8fb2b 100644 --- a/src/lib/components/DataInput/AbstractDropdownItem.svelte +++ b/src/lib/components/DataInput/AbstractDropdownItem.svelte @@ -2,7 +2,7 @@ import { Select, Tooltip } from 'flowbite-svelte'; // have the data processing here to coerce the input into the format that the component expects - console.log($$props); + console.log('passed props: ', $$props, ', value: ', $$props.value); const items = $$props.items.map((item) => ({ name: item, value: item })); From 5b30b5c94452a97c821f44c9ef6bb247bac373a7 Mon Sep 17 00:00:00 2001 From: Harald Mack Date: Thu, 29 Aug 2024 09:40:33 +0200 Subject: [PATCH 02/22] break down childrenpage and start adding functionality --- .../components/ChildrenRegistration.svelte | 248 +++++++++--------- .../DataInput/AbstractDropdownItem.svelte | 1 - .../DataInput/AbstractRegistrationForm.svelte | 1 - .../Navigation/NavigationButtons.svelte | 2 +- 4 files changed, 132 insertions(+), 120 deletions(-) diff --git a/src/lib/components/ChildrenRegistration.svelte b/src/lib/components/ChildrenRegistration.svelte index acaa7af9..94c62eec 100644 --- a/src/lib/components/ChildrenRegistration.svelte +++ b/src/lib/components/ChildrenRegistration.svelte @@ -1,73 +1,109 @@ - + + + {#if heading} + {heading} + {/if} + +
+
+ + + + + + + + + + + ({ name: item, value: item }) + )} + bind:value={first_language} + /> + + + ({ + name: item, + value: item + }))} + bind:value={problems} + /> - const buttons = [ - { - label: 'Weiter', - href: '/' - } - ]; - + +