Debian Codegraph @

addons/hr_attendance/static/src/views/badge_scanner/badge_scanner.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <templates xml:space="preserve">
3 <t t-name="hr.BadgeScannerTemplate">
4 <div class="o_hr_barcode_bg o_home_menu_background">
5 <div class="o_hr_barcode_main container d-flex flex-column h-100 h-sm-auto bg-view shadow">
6 <div class="d-flex align-items-center justify-content-between my-3">
7 <a href="#" class="btn btn-light" t-on-click.prevent="() => this.onClickBack()">
8 <i class="oi oi-chevron-left fa-lg"></i>
9 </a>
10 <span class="fs-2 me-auto ms-2">Scan Badge</span>
11 </div>
12 <div class="flex-grow-1 d-flex flex-column justify-content-center align-items-center">
13 <BarcodeScanner onBarcodeScanned="(barcode) => this.onBarcodeScanned(barcode)" />
14 <div class="my-5 text-center">
15 <h5 class="mt8 text-muted">Scan or Tap your badge</h5>
16 <t t-if="employee">
17 <h4 class="text-primary mt-3">For <t t-out="employee[0].name"/></h4>
18 </t>
19 </div>
20 </div>
21 </div>
22 </div>
23 </t>
24 </templates>