| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <templates id="template" xml:space="preserve"> |
| 3 | <t t-name="pos_hr.LoginScreen" t-inherit="point_of_sale.LoginScreen" t-inherit-mode="extension"> |
| 4 | <xpath expr="//div[hasclass('screen-login')]" position="attributes"> |
| 5 | <attribute name="t-if">!this.pos.config.module_pos_hr || !this.pos.login</attribute> |
| 6 | </xpath> |
| 7 | <xpath expr="//div[hasclass('screen-login')]" position="after"> |
| 8 | <div t-if="this.pos.config.module_pos_hr and this.pos.login" class="screen-login flex-grow-1 d-flex align-items-center justify-content-center"> |
| 9 | <div class="d-flex bg-white p-3 gap-2 rounded"> |
| 10 | <input |
| 11 | t-ref="autofocus" |
| 12 | type="text" |
| 13 | t-on-input="maskedInput" |
| 14 | class="form-control form-control-lg rounded flex-grow-1" |
| 15 | placeholder="Enter your PIN" /> |
| 16 | <button class="select-cashier btn btn-secondary px-4" t-on-click="() => this.selectCashier(false, true)"> |
| 17 | <i class="fa fa-users" aria-hidden="true"></i> |
| 18 | </button> |
| 19 | <button class="btn btn-secondary mobile-scanner px-4" t-if="this.pos.config.module_pos_hr"> |
| 20 | <i class="fa fa-barcode" aria-hidden="true"></i> |
| 21 | </button> |
| 22 | </div> |
| 23 | </div> |
| 24 | </xpath> |
| 25 | <xpath expr="//button[hasclass('open-register-btn')]/span" position="replace"> |
| 26 | <span t-if="this.pos.session.state !== 'opened'" class="d-flex flex-grow-1 align-items-center">Open Register</span> |
| 27 | <span t-else="" class="d-flex flex-grow-1 align-items-center">Unlock Register</span> |
| 28 | </xpath> |
| 29 | </t> |
| 30 | </templates> |