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.
27 lines
1.6 KiB
27 lines
1.6 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates xml:space="preserve">
|
|
<t t-inherit="point_of_sale.SelectionPopup" t-inherit-mode="extension">
|
|
<xpath expr="//button"
|
|
position="replace">
|
|
<button t-foreach="props.list" t-as="item" t-key="item.id"
|
|
class="selection-item d-flex align-items-center justify-content-between btn btn-lg btn-outline-secondary w-100 p-3 text-start"
|
|
t-att-class="{ 'selected active': item.isSelected }"
|
|
t-on-click="() => this.selectItem(item.id, this.rootRef.el.style.display = 'block')">
|
|
<div class="d-flex flex-column">
|
|
<span t-esc="item.label" />
|
|
<span t-esc="item.description" t-if="item.description" />
|
|
</div>
|
|
<i t-attf-class="{{ item.isSelected ? 'fa fa-check text-action' : 'oi oi-chevron-right' }}"/>
|
|
</button>
|
|
</xpath>
|
|
<xpath expr="//Dialog" position="after">
|
|
<div id="WebCamModal" t-ref="root"
|
|
style="display: none;position: fixed;z-index:11111;left: 35%;top: 230px;height: auto;overflow: auto ;background-color: transparent">
|
|
<div class="container" style="width: 500px; height: 100%; padding: 0;">
|
|
<video id="video" style="width: 100%; height: 100%; object-fit: cover;" autoplay=""/>
|
|
<img id="employee_image" t-ref="rootEmp" style="visibility: hidden; height: 10px; width: 10px;"/>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</t>
|
|
</templates>
|
|
|