Add support for datetime-local to forms

This commit is contained in:
Pixeldrain-Server committed 2023-02-15 19:39:31 +01:00
1 parent 3bee693fa8
commit 2281b6f14d
2 files changed
+14 -3

No files matched your search

+7
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}"