Die Eintragungen wurden wo möglich mit den Defaultwerten gesetzt. Ging aber nur bei der Angabe der Zeit.

This commit is contained in:
2021-04-12 12:29:00 +02:00
parent 8296a2a281
commit ae7491f002
+4 -4
View File
@@ -127,7 +127,7 @@
<!--suppress HtmlUnknownTarget --> <!--suppress HtmlUnknownTarget -->
<form action="/working-hours"> <form action="/working-hours">
<fieldset> <fieldset>
<button on:click={() => {activeRecord = {}; newRecord = true}}>Neuer Eintrag <button on:click={() => {activeRecord = {workingTime: '00:00:00'}; newRecord = true}}>Neuer Eintrag
<IconifyIcon icon={documentIcon}/> <IconifyIcon icon={documentIcon}/>
</button> </button>
</fieldset> </fieldset>
@@ -168,13 +168,13 @@
<fieldset name="record-data"> <fieldset name="record-data">
<div> <div>
<label for="workingDay">Arbeitstag</label> <label for="workingDay">Arbeitstag</label>
<input bind:value={activeRecord.workingDay} placeholder="Arbeitstag" type="date" <input bind:value={activeRecord.workingDay} type="date"
id="workingDay"> id="workingDay" required pattern="\d{4}-\d{2}-\d{2}">
</div> </div>
<div> <div>
<label for="workingTime">Arbeitszeit</label> <label for="workingTime">Arbeitszeit</label>
<input bind:value={activeRecord.workingTime} placeholder="Arbeitszeit" type="time" <input bind:value={activeRecord.workingTime} placeholder="Arbeitszeit" type="time"
id="workingTime"> id="workingTime" required pattern="[0-5]\d:[0-5]\d:[0-5]\d">
</div> </div>
</fieldset> </fieldset>
<fieldset name="buttons"> <fieldset name="buttons">