validateForm(e, new_state)} use:enhance>
validateForm(e, edit_state)} use:enhance>
{#each data.records as entry} {#if editing?.id != entry.id } {:else}
{ event.preventDefault(); setEditing(null); }} >
{/if} {/each} {#if data.records === undefined || data.records.length === 0} {/if}
Stundenliste
Datum Wochentag Beginn Ende Dauer Anmerkung Actions
{entry.date} {weekday_of(parseDate(entry.date))} {entry.start} {entry.end} {calculateDuration(entry.start, entry.end).toFixed(2)} {entry.comment ?? ""}
{ event.preventDefault(); setEditing(entry); }} >
No records