mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
d206c11972
This commit extracts the pre-defined section shapes from blocks into templates that are dedicated to being used by the configurator. For blocks that are not used in configurator pages, the configurator templates have not been created. task-3381714 Part-of: odoo/design-themes#692
43 lines
1.7 KiB
XML
43 lines
1.7 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_quotes_carousel" inherit_id="website.s_quotes_carousel">
|
|
<!-- Carousel -->
|
|
<xpath expr="//div[hasclass('s_quotes_carousel')]" position="attributes">
|
|
<attribute name="class" add="s_carousel_rounded o_cc4" remove="s_carousel_default o_cc2" separator=" "/>
|
|
</xpath>
|
|
<!-- Icons -->
|
|
<xpath expr="//i" position="attributes">
|
|
<attribute name="class" add="bg-o-color-5" remove="bg-o-color-2" separator=" "/>
|
|
</xpath>
|
|
<xpath expr="(//i)[2]" position="attributes">
|
|
<attribute name="class" add="bg-o-color-5" remove="bg-o-color-2" separator=" "/>
|
|
</xpath>
|
|
<xpath expr="(//i)[3]" position="attributes">
|
|
<attribute name="class" add="bg-o-color-5" remove="bg-o-color-2" separator=" "/>
|
|
</xpath>
|
|
<!-- Carousel items - Remove background images -->
|
|
<xpath expr="//div[hasclass('carousel-item')]" position="attributes">
|
|
<attribute name="style"/>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('carousel-item')][2]" position="attributes">
|
|
<attribute name="style"/>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('carousel-item')][3]" position="attributes">
|
|
<attribute name="style"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
<template id="configurator_s_quotes_carousel" inherit_id="website.configurator_s_quotes_carousel">
|
|
<!-- Shape option -->
|
|
<xpath expr="//div[hasclass('s_quotes_carousel')]" position="attributes">
|
|
<attribute name="data-oe-shape-data">{"shape":"web_editor/Wavy/09","flip":[]}</attribute>
|
|
</xpath>
|
|
<!-- Shape -->
|
|
<xpath expr="//ol[hasclass('carousel-indicators')]" position="before">
|
|
<div class="o_we_shape o_web_editor_Wavy_09"/>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|