html-sites #3

Merged
TorstenHettstedt merged 10 commits from html-sites into master 2021-04-08 20:16:00 +02:00
3 changed files with 86 additions and 66 deletions
Showing only changes of commit 89ad394773 - Show all commits
+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';
+9 -4
View File
@@ -6,9 +6,12 @@
<title>{params.title}</title> <title>{params.title}</title>
</svelte:head> </svelte:head>
<h1>{params.title}</h1> <section id="list-records">
<header>
<table> <h1>{params.title}</h1>
</header>
<article>
<table>
<thead> <thead>
<tr> <tr>
<th>Zeitraum</th> <th>Zeitraum</th>
@@ -27,4 +30,6 @@
</tr> </tr>
{/each} {/each}
</tbody> </tbody>
</table> </table>
</article>
</section>
+19 -7
View File
@@ -13,10 +13,13 @@
<title>{title}</title> <title>{title}</title>
</svelte:head> </svelte:head>
<h1>{title}</h1>
{#if activeRecord === null} {#if activeRecord === null}
<table> <section id="list-records">
<header>
<h1>{title}</h1>
</header>
<article>
<table>
<thead> <thead>
<tr> <tr>
<th>Datum</th> <th>Datum</th>
@@ -36,10 +39,17 @@
</tr> </tr>
{/each} {/each}
</tbody> </tbody>
</table> </table>
</article>
</section>
{:else} {:else}
<!--suppress HtmlUnknownTarget --> <section id="edit-record">
<form action="/working-hours" name="editRecord"> <header>
<h1>{title}</h1>
</header>
<article>
<!--suppress HtmlUnknownTarget -->
<form action="/working-hours" name="editRecord">
<fieldset name="record-data"> <fieldset name="record-data">
<div> <div>
<label for="workingDay">Arbeitstag</label> <label for="workingDay">Arbeitstag</label>
@@ -56,5 +66,7 @@
<button>Übernehmen <IconifyIcon icon={checkIcon} color="green" /></button> <button>Übernehmen <IconifyIcon icon={checkIcon} color="green" /></button>
<button>Abbrechen <IconifyIcon icon={xIcon} /></button> <button>Abbrechen <IconifyIcon icon={xIcon} /></button>
</fieldset> </fieldset>
</form> </form>
</article>
</section>
{/if} {/if}