Die gewünschte HTML-Struktur wurde übernommen.
This commit is contained in:
@@ -1,8 +1,11 @@
|
|||||||
|
<header>
|
||||||
|
Arbeitszeiten
|
||||||
|
</header>
|
||||||
<Nav {active} />
|
<Nav {active} />
|
||||||
|
|
||||||
<main>
|
<main>
|
||||||
<svelte:component this={Route} {params} />
|
<svelte:component this={Route} {params} />
|
||||||
</main>
|
</main>
|
||||||
|
<footer><p>© Torsten Lücke 2021</p></footer>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import Navaid from 'navaid';
|
import Navaid from 'navaid';
|
||||||
|
|||||||
@@ -6,8 +6,11 @@
|
|||||||
<title>{params.title}</title>
|
<title>{params.title}</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
|
<section id="list-records">
|
||||||
|
<header>
|
||||||
<h1>{params.title}</h1>
|
<h1>{params.title}</h1>
|
||||||
|
</header>
|
||||||
|
<article>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -28,3 +31,5 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
@@ -13,9 +13,12 @@
|
|||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<h1>{title}</h1>
|
|
||||||
|
|
||||||
{#if activeRecord === null}
|
{#if activeRecord === null}
|
||||||
|
<section id="list-records">
|
||||||
|
<header>
|
||||||
|
<h1>{title}</h1>
|
||||||
|
</header>
|
||||||
|
<article>
|
||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -37,7 +40,14 @@
|
|||||||
{/each}
|
{/each}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
{:else}
|
{:else}
|
||||||
|
<section id="edit-record">
|
||||||
|
<header>
|
||||||
|
<h1>{title}</h1>
|
||||||
|
</header>
|
||||||
|
<article>
|
||||||
<!--suppress HtmlUnknownTarget -->
|
<!--suppress HtmlUnknownTarget -->
|
||||||
<form action="/working-hours" name="editRecord">
|
<form action="/working-hours" name="editRecord">
|
||||||
<fieldset name="record-data">
|
<fieldset name="record-data">
|
||||||
@@ -57,4 +67,6 @@
|
|||||||
<button>Abbrechen <IconifyIcon icon={xIcon} /></button>
|
<button>Abbrechen <IconifyIcon icon={xIcon} /></button>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
|
</article>
|
||||||
|
</section>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user