You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
2.1 KiB
43 lines
2.1 KiB
<?xml version="1.0" encoding="utf-8"?>
|
|
<templates xml:space="preserve">
|
|
<t name="pos_access_right.forceactionpad" owl="1"
|
|
t-inherit="point_of_sale.ActionpadWidget" t-inherit-mode="extension">
|
|
<!-- ActionpadWidget template is replaced with forceactionpad in order to enable and disable access on the ActionpadWidget-->
|
|
<xpath expr="//div[hasclass('actionpad')]" position="replace">
|
|
<div class="actionpad">
|
|
<button class="button set-customer" id="customer_disable"
|
|
t-att-class="{'decentered': isLongName, 'disabled-mode': disable_customer}"
|
|
t-att-disabled="disable_customer"
|
|
t-on-click="trigger('click-customer')">
|
|
<t t-if="!env.isMobile">
|
|
<i class="fa fa-user" role="img" aria-label="Customer"
|
|
title="Customer"/>
|
|
</t>
|
|
<t t-if="client">
|
|
<t t-esc="client.name"/>
|
|
</t>
|
|
<t t-else="">
|
|
Customer
|
|
</t>
|
|
</button>
|
|
<button class="button pay" id="payment_disable"
|
|
t-att-class="{'disabled-mode': disable_payment}"
|
|
t-att-disabled="disable_payment"
|
|
t-on-click="trigger(props.actionToTrigger or 'click-pay')">
|
|
<div class="pay-circle"
|
|
t-att-class="{ 'highlight': props.isActionButtonHighlighted }">
|
|
<i class="fa fa-chevron-right" role="img"
|
|
aria-label="Pay"
|
|
title="Pay"/>
|
|
</div>
|
|
<t t-esc="props.actionName"/>
|
|
</button>
|
|
<button t-if="env.isMobile" class="button back-button"
|
|
t-on-click="trigger('switchpane')">
|
|
<i class="fa fa-angle-double-left"/>
|
|
Back
|
|
</button>
|
|
</div>
|
|
</xpath>
|
|
</t>
|
|
</templates>
|
|
|