28 lines
1.4 KiB
XML
28 lines
1.4 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates id="template" xml:space="preserve">
|
|
<!-- Inherit ProductsWidgetControlPanel to Modify it -->
|
|
<t t-inherit="point_of_sale.ProductsWidgetControlPanel"
|
|
t-inherit-mode="extension" owl="1">
|
|
<xpath expr="//div[hasclass('rightpane-header')]" position="replace">
|
|
<div class="rightpane-header">
|
|
<div class="search-bar-container sb-product">
|
|
<span t-if="env.isMobile" class="oe_status oe_icon icon"
|
|
t-on-click="_toggleMobileSearchbar">
|
|
<i t-attf-class="fa {{props.mobileSearchBarIsShown ? 'fa-arrow-left' : 'fa-search'}}"/>
|
|
</span>
|
|
<t t-if="!env.isMobile || props.mobileSearchBarIsShown">
|
|
<div class="pos-search-bar">
|
|
<i class="fa fa-search"/>
|
|
<input t-ref="search-word-input-product"
|
|
placeholder="Search Products..." type="text"
|
|
autofocus="autofocus"
|
|
t-on-keyup="updateSearch"/>
|
|
<i class="fa fa-times search-clear-partner"
|
|
t-on-click="_clearSearch"/>
|
|
</div>
|
|
</t>
|
|
</div>
|
|
</div>
|
|
</xpath>
|
|
</t>
|
|
</templates> |