From 66022e42df837de57e26f934d57911b03031a6d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Wed, 15 Dec 2021 18:21:29 +0100 Subject: [PATCH] =?UTF-8?q?Refactor:=20Aufteilung=20der=20Darstellung=20de?= =?UTF-8?q?r=20Eintr=C3=A4ge?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ui/src/routes/WorkingHours.svelte | 126 ++------------------- ui/src/routes/WorkingHours/Formular.svelte | 49 ++++++++ ui/src/routes/WorkingHours/List.svelte | 78 +++++++++++++ 3 files changed, 136 insertions(+), 117 deletions(-) create mode 100644 ui/src/routes/WorkingHours/Formular.svelte create mode 100644 ui/src/routes/WorkingHours/List.svelte diff --git a/ui/src/routes/WorkingHours.svelte b/ui/src/routes/WorkingHours.svelte index 5510005..198507f 100644 --- a/ui/src/routes/WorkingHours.svelte +++ b/ui/src/routes/WorkingHours.svelte @@ -1,140 +1,32 @@ - {title} + {TITLE} {#if activeRecord === null}
-

{title}

+

{TITLE}

- {#if params.isLoading === true} -

Loading...

- {:else} - -
-
- -
-
- - - - - - - - - - - - - - - {#each params.records as record} - - - - - - {/each} - -
DatumArbeitsstundenAktionen
{record.workingDay}{record.workingTime} - -
- {/if} +
{:else}
-

{title}

+

{TITLE}

- -
-
-
- - -
-
- - -
-
-
- - -
-
+
{/if} diff --git a/ui/src/routes/WorkingHours/Formular.svelte b/ui/src/routes/WorkingHours/Formular.svelte new file mode 100644 index 0000000..370bf0a --- /dev/null +++ b/ui/src/routes/WorkingHours/Formular.svelte @@ -0,0 +1,49 @@ + + +
+
+
+ + +
+
+ + +
+
+
+ + +
+
\ No newline at end of file diff --git a/ui/src/routes/WorkingHours/List.svelte b/ui/src/routes/WorkingHours/List.svelte new file mode 100644 index 0000000..0e53e85 --- /dev/null +++ b/ui/src/routes/WorkingHours/List.svelte @@ -0,0 +1,78 @@ + + + +
+
+ +
+
+{#if isLoading === true} +

Loading...

+{:else} + + + + + + + + + + + + + + + {#each records as record} + + + + + + {/each} + +
DatumArbeitsstundenAktionen
{record.workingDay}{record.workingTime} + +
+{/if} \ No newline at end of file