33 lines
734 B
Svelte
33 lines
734 B
Svelte
<script>
|
|
import List from "./WorkingHours/List.svelte";
|
|
import Formular from "./WorkingHours/Formular.svelte";
|
|
export const params = {};
|
|
|
|
let TITLE = "Bearbeitung Einträge"
|
|
let activeRecord = null;
|
|
</script>
|
|
|
|
<svelte:head>
|
|
<title>{TITLE}</title>
|
|
</svelte:head>
|
|
|
|
{#if activeRecord === null}
|
|
<section id="list-records">
|
|
<header>
|
|
<h1>{TITLE}</h1>
|
|
</header>
|
|
<article>
|
|
<List bind:activeRecord={activeRecord}/>
|
|
</article>
|
|
</section>
|
|
{:else}
|
|
<section id="edit-record">
|
|
<header>
|
|
<h1>{TITLE}</h1>
|
|
</header>
|
|
<article>
|
|
<Formular bind:activeRecord={activeRecord}/>
|
|
</article>
|
|
</section>
|
|
{/if}
|