Debian Codegraph @

addons/hr_attendance/static/src/components/check_in_out/check_in_out.xml

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <templates xml:space="preserve">
3
4 <t t-name="hr_attendance.CheckInOut">
5 <div class="flex-grow-1">
6 <button t-on-click="() => this.onClickSignInOut()" t-attf-class="o_hr_attendance_sign_in_out_icon btn btn-{{ props.checkedIn ? 'warning' : 'success' }} align-self-center px-5 py-3 mt-4 mb-2">
7 <span class="align-middle fs-2 me-3 text-white" t-if="!props.checkedIn">Check IN</span>
8 <i t-attf-class="fa fa-4x fa-sign-{{ props.checkedIn ? 'out' : 'in' }} align-middle"/>
9 <span class="align-middle fs-2 ms-3" t-if="props.checkedIn">Check OUT</span>
10 </button>
11 </div>
12 </t>
13
14 </templates>