Allow decimal input in credit field

This commit is contained in:
Pixeldrain-Server committed 2021-11-16 15:18:28 +01:00
1 parent 7845753b27
commit 85975bc7ea
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -162,6 +162,14 @@ let handle_errors = (response) => {
value="{field.default_value}"
type="number"
class="form_input"/>
{:else if field.type === "decimal"}
<input bind:this={field.binding}
id="input_{field.name}"
name="{field.name}"
value="{field.default_value}"
type="number"
step="0.1"
class="form_input"/>
{:else if field.type === "username"}
<input bind:this={field.binding}
id="input_{field.name}"