[REF] website_sale: make better xpath to split /shop layout
Part of https://github.com/odoo/odoo/pull/31147 task-1925327
This commit is contained in:
@@ -212,8 +212,8 @@
|
||||
</t>
|
||||
</div>
|
||||
<div class="row mt-3">
|
||||
<div class="d-none" id="products_grid_before"></div>
|
||||
<div class="col-lg-12" id="products_grid">
|
||||
<div t-if="enable_left_column" id="products_grid_before" class="col-lg-3"/>
|
||||
<div id="products_grid" class="col">
|
||||
<t t-if="category">
|
||||
<t t-set='editor_msg'>Drag building blocks here to customize the header for "<t t-esc='category.name'/>" category.</t>
|
||||
<div class="mb16" id="category_header" t-att-data-editor-message="editor_msg" t-field="category.website_description"/>
|
||||
@@ -328,6 +328,9 @@
|
||||
</template>
|
||||
|
||||
<template id="products_categories" inherit_id="website_sale.products" active="False" customize_show="True" name="eCommerce Categories">
|
||||
<xpath expr="//div[@id='products_grid_before']" position="before">
|
||||
<t t-set="enable_left_column" t-value="True"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='products_grid_before']" position="inside">
|
||||
<ul class="nav nav-pills flex-column my-2">
|
||||
<li class="nav-item">
|
||||
@@ -338,12 +341,6 @@
|
||||
</t>
|
||||
</ul>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='products_grid_before']" position="attributes">
|
||||
<attribute name="class">col-lg-3</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='products_grid']" position="attributes">
|
||||
<attribute name="class">col-lg-9</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="option_collapse_categories_recursive" name="Collapse Category Recursive">
|
||||
@@ -372,6 +369,9 @@
|
||||
</template>
|
||||
|
||||
<template id="products_attributes" inherit_id="website_sale.products" active="False" customize_show="True" name="Product Attribute's Filters">
|
||||
<xpath expr="//div[@id='products_grid_before']" position="before">
|
||||
<t t-set="enable_left_column" t-value="True"/>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='products_grid_before']" position="inside">
|
||||
<form class="js_attributes my-2" method="get">
|
||||
<input type="hidden" name="search" t-att-value="search" />
|
||||
@@ -413,12 +413,6 @@
|
||||
</ul>
|
||||
</form>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='products_grid_before']" position="attributes">
|
||||
<attribute name="class">col-lg-3 d-none d-md-block</attribute>
|
||||
</xpath>
|
||||
<xpath expr="//div[@id='products_grid']" position="attributes">
|
||||
<attribute name="class">col-lg-9</attribute>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
<template id="products_list_view" inherit_id="website_sale.products" active="False" customize_show="True" name="List View (by default)">
|
||||
|
||||
Reference in New Issue
Block a user