Änderungen und Eintragungen wurden eingebaut

This commit is contained in:
2025-06-12 16:45:56 +02:00
parent b89a3c744f
commit 9a65c7f78b
13 changed files with 330 additions and 329 deletions
@@ -0,0 +1,74 @@
<script>
import IconifyIcon from '@iconify/svelte'
import checkIcon from "@iconify-icons/oi/check";
import xIcon from "@iconify-icons/oi/x";
import {goto} from "$app/navigation";
const TITLE = "Erstellung neuer Einträge für eine Woche"
</script>
<svelte:head>
<title>{TITLE}</title>
</svelte:head>
<style>
tbody.weekend td input, tbody.weekend td {
color: red;
}
</style>
<section id="edit-record">
<header>
<h1>{TITLE}</h1>
</header>
<article>
<form action="/working-hours?/create-by-week" name="newRecord" method="POST">
<fieldset name="how-week-is-use">
<div>
<label for="monday">Woche vom</label>
<input name="week" type="date" id="week" required value="">
</div>
</fieldset>
<fieldset name="record-data-by-week">
<div>
<table>
<tbody>
{#each ['Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag'] as day}
<tr>
<td>
{day}
</td>
<td>
<input name="{day}" value="08:00:00" type="time" step="1"
required pattern="[0-5]\d:[0-5]\d:[0-5]\d">
</td>
</tr>
{/each}
</tbody>
<tbody class="weekend">
{#each ['Samstag', 'Sontag'] as day}
<tr>
<td>
{day}
</td>
<td>
<input name="{day}" value="00:00:00" type="time" step="1"
required pattern="[0-5]\d:[0-5]\d:[0-5]\d">
</td>
</tr>
{/each}
</tbody>
</table>
</div>
</fieldset>
<fieldset name="buttons">
<button type="submit">Übernehmen und Weiter
<IconifyIcon icon={checkIcon} color="green"/>
</button>
<button type="button" class="sub-button" onclick={() => goto('/working-hours')}>Abbrechen
<IconifyIcon icon={xIcon}/>
</button>
</fieldset>
</form>
</article>
</section>