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.
49 lines
2.4 KiB
49 lines
2.4 KiB
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<templates id="template" xml:space="preserve">
|
|
<!-- Template inherited for adding buttons : Reserve and un Reserve and adding reserved labels in pos table. -->
|
|
<t t-name="table_reservation_in_pos.Waiter_Table"
|
|
t-inherit="pos_restaurant.FloorScreen"
|
|
t-inherit-mode="extension" owl="1">
|
|
<xpath expr="//button[@t-on-click.stop='() => this.delete(hasSelectedTable)']"
|
|
position="after">
|
|
<t t-if="this.env.services.pos.config.table_reservation">
|
|
<span role="button" class="edit-button text-center d-flex flex-column btn btn-light text-uppercase"
|
|
t-att-disabled="selectedTables.length > 1"
|
|
t-on-click.stop="reserve">
|
|
<i class="fa fa-ticket ticket-reserve" role="img"
|
|
aria-label="Reserve"
|
|
title="Reserve"/>
|
|
<span class="text-button d-block">Reserve</span>
|
|
</span>
|
|
<span role="button" class="edit-button text-center d-flex flex-column btn btn-light text-uppercase"
|
|
t-att-disabled="selectedTables.length > 1"
|
|
t-on-click.stop="vieInfo">
|
|
<i class="fa fa-info" role="img"
|
|
aria-label="View Info"
|
|
title="View Info"/>
|
|
<span class="text-button d-block">View Info</span>
|
|
</span>
|
|
<span role="button" class="edit-button text-center d-flex flex-column btn btn-light text-uppercase"
|
|
t-att-disabled="selectedTables.length > 1"
|
|
t-on-click.stop="un_reserve">
|
|
<i class="fa fa-ticket ticket-un-reserve" role="img"
|
|
aria-label="Un Reserve"
|
|
title="Un Reserve"/>
|
|
<span class="text-button d-block">Un Reserve</span>
|
|
</span>
|
|
</t>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('table')]"
|
|
position="attributes">
|
|
<attribute name="t-attf-title">#{table.reserved ? table.reservation_details : ''}</attribute>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('table')]"
|
|
position="inside">
|
|
<div class="table-reserved mb-5">
|
|
<span t-att-hidden="!table.reserved" class="reserved-label">
|
|
Reserved
|
|
</span>
|
|
</div>
|
|
</xpath>
|
|
</t>
|
|
</templates>
|