Implement delta input for gold fields

This commit is contained in:
Carlos Fernandez 2025-12-08 22:23:09 -05:00
parent 2b1535333a
commit 48427bd421
3 changed files with 56 additions and 2 deletions

View file

@ -18,7 +18,7 @@
{{#if currency.enabled}}
<div class="input">
<span>{{localize currency.label}}</span>
{{formInput currency.field value=currency.value enriched=currency.value toggled=true}}
<input type="text" name="{{currency.field.fieldPath}}" data-allow-delta value="{{currency.value}}" data-dtype="Number" min="0" step="1" />
</div>
{{/if}}
{{/each}}

View file

@ -21,7 +21,7 @@
{{#if currency.enabled}}
<div class="input">
<span>{{localize currency.label}}</span>
{{formInput currency.field value=currency.value enriched=currency.value toggled=true}}
<input type="text" name="{{currency.field.fieldPath}}" data-allow-delta value="{{currency.value}}" data-dtype="Number" min="0" step="1" />
</div>
{{/if}}
{{/each}}