Add support for datetime-local to forms

This commit is contained in:
2023-02-15 19:39:31 +01:00
parent 3bee693fa8
commit 2281b6f14d
2 changed files with 14 additions and 3 deletions

View File

@@ -166,6 +166,13 @@ let handle_errors = (response) => {
type="number"
step="0.1"
class="form_input"/>
{:else if field.type === "datetime-local"}
<input bind:this={field.binding}
id="input_{field.name}"
name="{field.name}"
value="{field.default_value}"
type="datetime-local"
class="form_input"/>
{:else if field.type === "username"}
<input bind:this={field.binding}
id="input_{field.name}"