Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMP] theme_*: adapt themes with new s_company_team_grid snippet #901

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions theme_anelusia/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_company_team_shapes.xml',
'views/snippets/s_sidegrid.xml',
'views/snippets/s_company_team_grid.xml',
'views/snippets/s_references.xml',
'views/snippets/s_references_social.xml',
'views/snippets/s_references_grid.xml',
Expand Down
77 changes: 77 additions & 0 deletions theme_anelusia/views/snippets/s_company_team_grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_grid" inherit_id="website.s_company_team_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team #01 -->
<xpath expr="(//div[hasclass('card')])[1]" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_1/web_editor/composition/composition_square_4.svg?c2=o-color-2&amp;c5=o-color-3</attribute>
<attribute name="data-shape">web_editor/composition/composition_square_4</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;o-color-2;;;o-color-3</attribute>
</xpath>
<!-- Team #02 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_2/web_editor/solid/solid_square_2.svg?c1=o-color-1</attribute>
<attribute name="data-shape">web_editor/solid/solid_square_2</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_2.svg</attribute>
<attribute name="data-shape-colors">o-color-1;;;;</attribute>
</xpath>
<!-- Team #03 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[3]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_3/web_editor/composition/composition_square_2.svg?c2=o-color-3&amp;c5=o-color-2</attribute>
<attribute name="data-shape">web_editor/composition/composition_square_2</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_3.svg</attribute>
<attribute name="data-shape-colors">;o-color-3;;;o-color-2</attribute>
</xpath>
<!-- Team #04 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[4]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_4/web_editor/composition/composition_square_1.svg?c1=o-color-3&amp;c2=o-color-1</attribute>
<attribute name="data-shape">web_editor/composition/composition_square_1</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_4.svg</attribute>
<attribute name="data-shape-colors">o-color-3;o-color-1;;;</attribute>
</xpath>
<!-- Team #05 -->
<xpath expr="(//div[hasclass('card')])[5]" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[5]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_5/web_editor/solid/solid_square_1.svg?c2=o-color-2</attribute>
<attribute name="data-shape">web_editor/solid/solid_square_1</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_5.svg</attribute>
<attribute name="data-shape-colors">;o-color-2;;;</attribute>
</xpath>
<!-- Team #06 -->
<xpath expr="(//div[hasclass('card')])[6]" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[6]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_6/web_editor/composition/composition_square_3.svg?c1=o-color-1&amp;c5=o-color-3</attribute>
<attribute name="data-shape">web_editor/composition/composition_square_3</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_6.svg</attribute>
<attribute name="data-shape-colors">o-color-1;;;;o-color-3</attribute>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_artists/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
'views/snippets/s_company_team_basic.xml',
'views/snippets/s_product_list.xml',
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_company_team_grid.xml',
'views/snippets/s_company_team_shapes.xml',
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_mockup_image.xml',
Expand Down
35 changes: 35 additions & 0 deletions theme_artists/views/snippets/s_company_team_grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_grid" inherit_id="website.s_company_team_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team #01 -->
<xpath expr="(//div[hasclass('card')])[1]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #02 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #03 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #04 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #05 -->
<xpath expr="(//div[hasclass('card')])[5]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #06 -->
<xpath expr="(//div[hasclass('card')])[6]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
74 changes: 74 additions & 0 deletions theme_avantgarde/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -836,4 +836,78 @@
</xpath>
</template>

<!-- ======== COMPANY TEAM GRID ======== -->
<template id="s_company_team_grid" inherit_id="website.s_company_team_grid">
<!-- Team #01 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_1/web_editor/geometric_round/geo_round_gem.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_gem</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Team #02 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_2/web_editor/geometric_round/geo_round_gem.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_gem</attribute>
<attribute name="data-shape-rotate">90</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Team #03 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[3]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_3/web_editor/geometric_round/geo_round_gem.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_gem</attribute>
<attribute name="data-shape-flip">x</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Team #04 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[4]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_4/web_editor/geometric_round/geo_round_gem.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_gem</attribute>
<attribute name="data-shape-flip">y</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Team #05 -->
<xpath expr="(//div[hasclass('card')])[5]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[5]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_5/web_editor/geometric_round/geo_round_gem.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_gem</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Team #06 -->
<xpath expr="(//div[hasclass('card')])[6]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//img)[6]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_6/web_editor/geometric_round/geo_round_gem.svg</attribute>
<attribute name="data-shape">web_editor/geometric_round/geo_round_gem</attribute>
<attribute name="data-shape-flip">xy</attribute>
<attribute name="data-original-mimetype">image/jpeg</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_beauty/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_company_team_shapes.xml',
'views/snippets/s_company_team_detail.xml',
'views/snippets/s_company_team_grid.xml',
'views/snippets/s_media_list.xml',
'views/snippets/s_comparisons.xml',
'views/snippets/s_product_catalog.xml',
Expand Down
35 changes: 35 additions & 0 deletions theme_beauty/views/snippets/s_company_team_grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_grid" inherit_id="website.s_company_team_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team #01 -->
<xpath expr="(//div[hasclass('card')])[1]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #02 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #03 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #04 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #05 -->
<xpath expr="(//div[hasclass('card')])[5]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #06 -->
<xpath expr="(//div[hasclass('card')])[6]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
7 changes: 7 additions & 0 deletions theme_bewise/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,13 @@
</xpath>
</template>

<template id="s_company_team_grid" inherit_id="website.s_company_team_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
</template>

<!-- ======== FREE GRID ======== -->
<template id="s_freegrid" inherit_id="website.s_freegrid">
<!-- Title -->
Expand Down
1 change: 1 addition & 0 deletions theme_bistro/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'views/snippets/s_images_constellation.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_company_team_grid.xml',
'views/new_page_template.xml',

],
Expand Down
27 changes: 27 additions & 0 deletions theme_bistro/views/snippets/s_company_team_grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_grid" inherit_id="website.s_company_team_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team #01 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #02 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #03 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #05 -->
<xpath expr="(//div[hasclass('card')])[5]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_bookstore/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
'views/snippets/s_carousel_intro.xml',
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_company_team_grid.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_intro_pill.xml',
'views/snippets/s_big_number.xml',
Expand Down
35 changes: 35 additions & 0 deletions theme_bookstore/views/snippets/s_company_team_grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_grid" inherit_id="website.s_company_team_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team #01 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #02 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #03 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #04 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #05 -->
<xpath expr="(//div[hasclass('card')])[5]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #06 -->
<xpath expr="(//div[hasclass('card')])[6]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_clean/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
'views/snippets/s_three_columns.xml',
'views/snippets/s_call_to_action.xml',
'views/snippets/s_company_team.xml',
'views/snippets/s_company_team_grid.xml',
'views/snippets/s_title.xml',
'views/snippets/s_features.xml',
'views/snippets/s_numbers.xml',
Expand Down
35 changes: 35 additions & 0 deletions theme_clean/views/snippets/s_company_team_grid.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_grid" inherit_id="website.s_company_team_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team #01 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #02 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #03 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #04 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #05 -->
<xpath expr="(//div[hasclass('card')])[5]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
<!-- Team #06 -->
<xpath expr="(//div[hasclass('card')])[6]" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc2" separator=" "/>
</xpath>
</template>

</odoo>
Loading