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.
46 lines
2.1 KiB
46 lines
2.1 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates id="template" xml:space="preserve">
|
|
|
|
<t t-name="ProductsPopUp" owl="1">
|
|
<div role="dialog" class="modal-dialog">
|
|
<div class="popup popup-selection">
|
|
<header class="title"><t t-esc="props.title || 'Product'" /></header>
|
|
<div class="selection scrollable-y touch-scrollable">
|
|
<div id="notify"></div>
|
|
</div>
|
|
<t t-foreach="props.products" t-as="product">
|
|
<div>
|
|
<h2><t t-esc="product['attribute'][1]"/></h2>
|
|
</div>
|
|
<t t-set="attribute" t-value="product['attribute'][1]"/>
|
|
<div class="row" style="display: block ruby;">
|
|
<t t-foreach="props.variant_details" t-as="variant">
|
|
<t t-foreach="product['value']" t-as="val">
|
|
<t t-if="variant['id'] == val">
|
|
<article class='product' t-on-click="select_variant()">
|
|
<div class='product-img'>
|
|
<img t-att-src="imageUrl()"/>
|
|
<span class='extra-price'> +$ <t t-esc="product['extra_price']"/></span>
|
|
<h2 class='action' data-price='' data-type=''
|
|
t-att-data-category='attribute'></h2>
|
|
<span class='variants'><t t-esc="variant['name']"/></span>
|
|
</div>
|
|
</article>
|
|
</t>
|
|
</t>
|
|
|
|
</t>
|
|
</div>
|
|
</t>
|
|
<footer class="footer">
|
|
<div class="button confirm" t-on-click="click_confirm()">
|
|
Confirm
|
|
</div>
|
|
<div class="button cancel" t-on-click="trigger('close-popup')">
|
|
Cancel
|
|
</div>
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
</t>
|
|
</templates>
|
|
|