| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<templates id="template" xml:space="preserve"> |
| 3 |
<t t-name="point_of_sale.Numpad"> |
| 4 |
<div t-attf-class="d-grid numpad numpad-{{buttons.length / 4}}-cols {{props.class}} overflow-hidden"> |
| 5 |
<t t-foreach="buttons.map((b) => typeof b === 'object' ? b : { value: b })" t-as="button" t-key="button.value"> |
| 6 |
<span t-if="Object.keys(button).length === 0"/> |
| 7 |
<button |
| 8 |
t-else="" |
| 9 |
t-attf-class="numpad-button position-relative btn btn-secondary btn-lg fs-3 lh-lg rounded-0 border-0 py-2 {{ button.class or '' }}" |
| 10 |
t-att-value="button.text or button.value" |
| 11 |
t-on-click="() => this.onClick(button.value)" |
| 12 |
t-att-disabled="button.disabled" |
| 13 |
t-esc="button.text or button.value" /> |
| 14 |
</t> |
| 15 |
</div> |
| 16 |
</t> |
| 17 |
</templates> |