diff --git a/src/lib/components/AbstractContent.svelte b/src/lib/components/AbstractContent.svelte index 3477445f..9c7f7d48 100644 --- a/src/lib/components/AbstractContent.svelte +++ b/src/lib/components/AbstractContent.svelte @@ -10,42 +10,49 @@ // variables for communication upon hitting the page // FIXME: these are placeholders and must later be changed using contexts or other better mechanisms for inter component comunication - export let lastpage = '/'; - export let nextpage = '/'; - export let infopage = '/'; + export let lastpage = null; + export let nextpage = null; + export let infopage = null; -
+
{#if showBottomNavbar} - - - - - + {#if lastpage} + + {/if} + + {#if infopage} + + {/if} + {#if nextpage} + + {/if} {/if} diff --git a/src/lib/components/ChildrenRegistration.svelte b/src/lib/components/ChildrenRegistration.svelte new file mode 100644 index 00000000..8e9ff9ad --- /dev/null +++ b/src/lib/components/ChildrenRegistration.svelte @@ -0,0 +1,117 @@ + + +
+ +
diff --git a/src/lib/components/Childrenpage.svelte b/src/lib/components/Childrenpage.svelte new file mode 100644 index 00000000..d3891579 --- /dev/null +++ b/src/lib/components/Childrenpage.svelte @@ -0,0 +1,112 @@ + + + + + + Übersicht + +
+

+ Wählen sie ein Kind zur Beobachtung aus oder legen melden sie ein neues Kind an. +

+ +
+
diff --git a/src/lib/components/DataDisplay/CardDisplay.svelte b/src/lib/components/DataDisplay/CardDisplay.svelte index bedc9d1b..ab26be86 100644 --- a/src/lib/components/DataDisplay/CardDisplay.svelte +++ b/src/lib/components/DataDisplay/CardDisplay.svelte @@ -1,20 +1,50 @@ - -
- {header} -
-

- {summary} -

- + + {#if data.header} +
+ {data.header} +
+ {/if} + {#if data.summary} +

+ {data.summary} +

+ {/if} + {#if data.button} + + {/if}
diff --git a/src/lib/components/DataDisplay/GalleryDisplay.svelte b/src/lib/components/DataDisplay/GalleryDisplay.svelte new file mode 100644 index 00000000..28a55035 --- /dev/null +++ b/src/lib/components/DataDisplay/GalleryDisplay.svelte @@ -0,0 +1,51 @@ + + + + +{#if header !== null} + + {header} + +{/if} + +{#if withSearch} +
+ + + +{/if} + + + {#each filteredItems as item, index} + + {/each} + diff --git a/src/lib/components/DataInput/AbstractDataInput.svelte b/src/lib/components/DataInput/AbstractDataInput.svelte index eb5bdd16..725e8bd0 100644 --- a/src/lib/components/DataInput/AbstractDataInput.svelte +++ b/src/lib/components/DataInput/AbstractDataInput.svelte @@ -1,25 +1,43 @@ -
-

{heading}

-

- {description} - Lorem ipsum dolor sit, amet consectetur adipisicing elit. Animi, iste nisi amet tempora laborum natus - dolorum quis consectetur non ab nemo sint deleniti officiis enim a explicabo possimus. Voluptatem - repellat autem dicta unde ducimus. Commodi fugiat, error magnam necessitatibus fugit blanditiis cum - itaque nostrum quaerat, pariatur aperiam ipsum sed quo! -

- {#each data as data_element} - - {/each} +
+ {#if heading} + + {heading} + + {/if} + + {#if description} +

+ {description} +

+ {/if} + +
+ {#each props as prop} + {#if prop.componentProps.label} + + {/if} + + {/each} + + + {#if buttons} + + {/if}
diff --git a/src/lib/components/DataInput/AbstractDropdownItem.svelte b/src/lib/components/DataInput/AbstractDropdownItem.svelte index dc910e5a..031e9f05 100644 --- a/src/lib/components/DataInput/AbstractDropdownItem.svelte +++ b/src/lib/components/DataInput/AbstractDropdownItem.svelte @@ -1,21 +1,20 @@
-
- - {data.about} -