| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<templates id="template" xml:space="preserve"> |
| 3 |
<t t-name="pos_restaurant.NumpadDropdown"> |
| 4 |
<button class="btn btn-secondary btn-lg lh-lg" t-on-click="() => this.toggleTableSelector()"> |
| 5 |
<i class="fa fa-fw fa-hashtag" aria-hidden="true"/> |
| 6 |
</button> |
| 7 |
<div t-if="this.pos.tableSelectorState and !this.isSmall" class="table-selector bg-light rounded d-flex flex-column z-3 shadow overflow-hidden"> |
| 8 |
<div class="d-flex justify-content-center p-3"> |
| 9 |
<span t-if="this.state.buffer" t-esc="this.state.buffer" class="input-value fw-bolder fs-3" t-att-class="{'text-danger opacity-75': !this.state.isValidBuffer}"/> |
| 10 |
<span t-else="" class="text-muted fs-3">Enter a table number</span> |
| 11 |
</div> |
| 12 |
<Numpad buttons="this.numpadButtons" class="'flex-grow-1 bg-200'"/> |
| 13 |
<button class="jump-button w-100 btn btn-primary rounded-0 border-0" t-on-click="() => this.searchOrder()"> |
| 14 |
Jump |
| 15 |
</button> |
| 16 |
</div> |
| 17 |
<div t-if="this.pos.tableSelectorState and this.isSmall" class="table-selector-small h-50 modal-dialog modal-dialog-centered z-3"> |
| 18 |
<div class="modal-content h-100" t-att-class="props.contentClass" t-att-style="contentStyle"> |
| 19 |
<main class="d-flex flex-column justify-content-between bg-light h-100"> |
| 20 |
<div class="input-symbol"> |
| 21 |
<div class="popup-input value active form-control form-control-lg py-3 text-center"> |
| 22 |
<span t-if="this.state.buffer" t-esc="this.state.buffer" class="input-value fw-bolder fs-3" t-att-class="{'text-danger opacity-75': !this.state.isValidBuffer}"/> |
| 23 |
<span t-else="" class="text-muted fs-3">Enter a table number</span> |
| 24 |
</div> |
| 25 |
</div> |
| 26 |
<Numpad buttons="this.numpadButtons" class="'flex-grow-1 m-0 p-0 border-top rounded-3'"/> |
| 27 |
<div class="d-flex flex-grow-1 justify-content-center"> |
| 28 |
<button class="jump-button flex-grow-1 btn btn-primary rounded-0 border-0 py-3" t-on-click="() => this.searchOrder()"> |
| 29 |
Jump |
| 30 |
</button> |
| 31 |
</div> |
| 32 |
</main> |
| 33 |
</div> |
| 34 |
</div> |
| 35 |
</t> |
| 36 |
</templates> |