|
|
|
@ -1,23 +1,24 @@ |
|
|
|
<?xml version="1.0" encoding="UTF-8"?> |
|
|
|
<templates id="template" xml:space="preserve"> |
|
|
|
<!-- Custom Popup Template--> |
|
|
|
<t t-name="MagnifyProductPopup"> |
|
|
|
<Dialog title.translate="Product Image" size="'md'"> |
|
|
|
<Dialog title="'Product Image'" size="'lg'"> |
|
|
|
<main class="body"> |
|
|
|
<div class="section-product-info-title"> |
|
|
|
<span t-esc="props.product.name" |
|
|
|
class="global-info-title fs-2 fw-bolder text-truncate"/> |
|
|
|
<span class="fs-3"><t t-if="props.product.product.default_code" t-esc="props.product.product.default_code"/> |
|
|
|
<t t-if="props.product.product.default_code and props.product.product.barcode"> - </t> |
|
|
|
<t t-if="props.product.product.barcode" |
|
|
|
t-esc="props.product.product.barcode"/></span> |
|
|
|
<span t-esc="props.product.name" class="global-info-title fs-2 fw-bolder text-truncate"/> |
|
|
|
</div> |
|
|
|
<div class="product-large-image"> |
|
|
|
<img class="rounded mx-auto d-block" t-att-src="props.product.imageUrl" t-att-alt="props.product.name" style="width:450px"/> |
|
|
|
<div class="product-large-image d-flex justify-content-center align-items-center" style="height: 500px; overflow: hidden;"> |
|
|
|
<img |
|
|
|
ref="imageRef" |
|
|
|
t-att-alt="props.product.name" |
|
|
|
t-att-src="'/web/image/product.product/' + props.product.id + '/image_1024'" |
|
|
|
class="rounded" |
|
|
|
style="max-width: 100%; max-height: 100%; cursor: zoom-in; transition: transform 0.3s ease; transform-origin: center;" |
|
|
|
t-on-wheel.stop="onZoom" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</main> |
|
|
|
<t t-set-slot="footer"> |
|
|
|
<button class="btn btn-primary btn-lg lh-lg" t-on-click="props.close">Close</button> |
|
|
|
<button class="btn btn-primary" t-on-click="props.close">Close</button> |
|
|
|
</t> |
|
|
|
</Dialog> |
|
|
|
</t> |
|
|
|
|