mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-31 11:54:24 +01:00
Added inputmode="decimal“ to POS Cart app (#6673)
So the iOS will show numpad for this fields.
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
{
|
||||
<div class="input-group mb-2">
|
||||
<span class="input-group-text">@Model.CurrencySymbol</span>
|
||||
<input class="form-control" type="number" min="@(item.Price ?? 0)" step="@Model.Step" name="amount" placeholder="@StringLocalizer["Amount"]" value="@item.Price" required v-on:click.stop>
|
||||
<input class="form-control" type="number" inputmode="decimal" min="@(item.Price ?? 0)" step="@Model.Step" name="amount" placeholder="@StringLocalizer["Amount"]" value="@item.Price" required v-on:click.stop>
|
||||
</div>
|
||||
}
|
||||
<button type="button" class="btn btn-primary w-100" :disabled="!inStock(@index)">
|
||||
@@ -174,7 +174,7 @@
|
||||
<button type="button" v-on:click="updateQuantity(item.id, -1)" class="btn btn-minus">
|
||||
<span><vc:icon symbol="minus" /></span>
|
||||
</button>
|
||||
<input class="form-control hide-number-spin w-50px text-center" type="number" placeholder="@StringLocalizer["Qty"]" min="1" step="1" :max="item.inventory" v-model.number="item.count">
|
||||
<input class="form-control hide-number-spin w-50px text-center" type="number" inputmode="decimal" placeholder="@StringLocalizer["Qty"]" min="1" step="1" :max="item.inventory" v-model.number="item.count">
|
||||
<button type="button" v-on:click="updateQuantity(item.id, +1)" class="btn btn-plus">
|
||||
<span><vc:icon symbol="plus" /></span>
|
||||
</button>
|
||||
@@ -192,7 +192,7 @@
|
||||
<th class="align-middle" text-translate="true">Discount</th>
|
||||
<th class="align-middle" colspan="3">
|
||||
<div class="input-group input-group-sm w-100px pull-right">
|
||||
<input class="form-control hide-number-spin" type="number" min="0" step="1" max="100" id="Discount" v-model.number="discountPercent">
|
||||
<input class="form-control hide-number-spin" type="number" inputmode="decimal" min="0" step="1" max="100" id="Discount" v-model.number="discountPercent">
|
||||
<span class="input-group-text">%</span>
|
||||
</div>
|
||||
</th>
|
||||
@@ -207,6 +207,7 @@
|
||||
class="form-control hide-number-spin shadow-none text-reset d-block bg-transparent border-0 p-0 me-1 fw-semibold"
|
||||
style="height:1.5em;min-height:auto;width:4ch"
|
||||
type="number"
|
||||
inputmode="decimal"
|
||||
min="0"
|
||||
step="@Model.Step" />
|
||||
<span>@(Model.CurrencyInfo.CurrencySymbol ?? Model.CurrencyCode)</span>
|
||||
|
||||
Reference in New Issue
Block a user