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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
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 @@ -24,6 +24,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_call_to_action.xml',
'views/snippets/s_comparisons.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">;#A43ACB;;;#FAFAFA</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">#4717F6;;;;</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">;#FAFAFA;;;#A43ACB</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">#FAFAFA;#4717F6;;;</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">;#A43ACB;;;</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">#4717F6;;;;#FAFAFA</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 @@ -40,6 +40,7 @@
'views/snippets/s_company_team.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_accordion_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 @@ -474,4 +474,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 @@ -30,6 +30,7 @@
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_company_team_shapes.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>
31 changes: 31 additions & 0 deletions theme_bewise/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,37 @@
</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>
<!-- Team #01 -->
<xpath expr="//p" position="replace" mode="inner">
Professor
</xpath>
<!-- Team #02 -->
<xpath expr="(//p)[2]" position="replace" mode="inner">
Associate Professor
</xpath>
<!-- Team #03 -->
<xpath expr="(//p)[3]" position="replace" mode="inner">
Assistant Professor
</xpath>
<!-- Team #04 -->
<xpath expr="(//p)[4]" position="replace" mode="inner">
Lecturer/Senior Lecturer
</xpath>
<!-- Team #05 -->
<xpath expr="(//p)[5]" position="replace" mode="inner">
Adjunct Professor
</xpath>
<!-- Team #06 -->
<xpath expr="(//p)[6]" position="replace" mode="inner">
Teaching Assistant (TA)
</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 @@ -40,6 +40,7 @@
'views/snippets/s_key_images.xml',
'views/snippets/s_striped_top.xml',
'views/snippets/s_quadrant.xml',
'views/snippets/s_company_team_grid.xml',
'views/new_page_template.xml',

],
Expand Down
47 changes: 47 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,47 @@
<?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>
<xpath expr="//p" position="replace" mode="inner">
Head Chef
</xpath>
<!-- Team #02 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//p)[2]" position="replace" mode="inner">
Sous Chef
</xpath>
<!-- Team #03 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//p)[3]" position="replace" mode="inner">
Station Chef
</xpath>
<!-- Team #04 -->
<xpath expr="(//p)[4]" position="replace" mode="inner">
Restaurant Host
</xpath>
<!-- Team #05 -->
<xpath expr="(//div[hasclass('card')])[5]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="(//p)[5]" position="replace" mode="inner">
Server
</xpath>
<!-- Team #06 -->
<xpath expr="(//p)[6]" position="replace" mode="inner">
Server
</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 @@ -44,6 +44,7 @@
'views/snippets/s_carousel.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/new_page_template.xml',
],
Expand Down
Loading