Die gewünschte HTML-Struktur wurde übernommen.

This commit is contained in:
2021-04-08 19:09:44 +02:00
parent 881e7362f8
commit 89ad394773
3 changed files with 86 additions and 66 deletions
+4 -1
View File
@@ -1,8 +1,11 @@
<header>
Arbeitszeiten
</header>
<Nav {active} />
<main>
<svelte:component this={Route} {params} />
</main>
<footer><p>© Torsten Lücke 2021</p></footer>
<script>
import Navaid from 'navaid';
+9 -4
View File
@@ -6,9 +6,12 @@
<title>{params.title}</title>
</svelte:head>
<h1>{params.title}</h1>
<table>
<section id="list-records">
<header>
<h1>{params.title}</h1>
</header>
<article>
<table>
<thead>
<tr>
<th>Zeitraum</th>
@@ -27,4 +30,6 @@
</tr>
{/each}
</tbody>
</table>
</table>
</article>
</section>
+19 -7
View File
@@ -13,10 +13,13 @@
<title>{title}</title>
</svelte:head>
<h1>{title}</h1>
{#if activeRecord === null}
<table>
<section id="list-records">
<header>
<h1>{title}</h1>
</header>
<article>
<table>
<thead>
<tr>
<th>Datum</th>
@@ -36,10 +39,17 @@
</tr>
{/each}
</tbody>
</table>
</table>
</article>
</section>
{:else}
<!--suppress HtmlUnknownTarget -->
<form action="/working-hours" name="editRecord">
<section id="edit-record">
<header>
<h1>{title}</h1>
</header>
<article>
<!--suppress HtmlUnknownTarget -->
<form action="/working-hours" name="editRecord">
<fieldset name="record-data">
<div>
<label for="workingDay">Arbeitstag</label>
@@ -56,5 +66,7 @@
<button>Übernehmen <IconifyIcon icon={checkIcon} color="green" /></button>
<button>Abbrechen <IconifyIcon icon={xIcon} /></button>
</fieldset>
</form>
</form>
</article>
</section>
{/if}