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} /> <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 -1
View File
@@ -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>
+14 -2
View File
@@ -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}