From fafc2a0ad5a799c7653771d1a78c92b766c1fdea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torsten=20L=C3=BCcke?= Date: Tue, 14 Dec 2021 12:32:22 +0100 Subject: [PATCH] refactor: Eintrag-Feldset ist in eigenen Modul besser aufgehoben MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Eine Erweiterung auf weitere Möglichkeiten lassen sich so besser umsetzen. --- ui/src/routes/WorkingHours.svelte | 140 +++++++++----------- ui/src/routes/working-hours/NewByDay.svelte | 17 +++ 2 files changed, 80 insertions(+), 77 deletions(-) create mode 100644 ui/src/routes/working-hours/NewByDay.svelte diff --git a/ui/src/routes/WorkingHours.svelte b/ui/src/routes/WorkingHours.svelte index 1820117..27c8b97 100644 --- a/ui/src/routes/WorkingHours.svelte +++ b/ui/src/routes/WorkingHours.svelte @@ -1,11 +1,13 @@ - {title} + {TITLE} -{#if activeRecord === null} -
-
-

{title}

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

Loading...

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

{title}

-
-
+
+
+

{TITLE}

+
+ {#if activeRecord === null} +
+ {#if params.isLoading === true} +

Loading...

+ {:else} -
-
-
- - -
-
- - -
-
-
- -
-
-
-{/if} + + + + + + + + + + + + + + + {#each params.records as record} + + + + + + {/each} + +
DatumArbeitsstundenAktionen
{record.workingDay}{record.workingTime} + +
+ {/if} +
+ {:else} +
+ +
+ +
+ + +
+ +
+ {/if} +
diff --git a/ui/src/routes/working-hours/NewByDay.svelte b/ui/src/routes/working-hours/NewByDay.svelte new file mode 100644 index 0000000..79e721e --- /dev/null +++ b/ui/src/routes/working-hours/NewByDay.svelte @@ -0,0 +1,17 @@ + + + +
+
+ + +
+
+ + +
+
\ No newline at end of file