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_spotlight snippet #903

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_artists/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'views/snippets/s_comparisons.xml',
'views/snippets/s_freegrid.xml',
'views/snippets/s_company_team.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_product_list.xml',
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_company_team_shapes.xml',
Expand Down
27 changes: 27 additions & 0 deletions theme_artists/views/snippets/s_company_team_spotlight.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_spotlight" inherit_id="website.s_company_team_spotlight" name="Artists s_company_team_spotlight">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc1" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_aviato/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
'views/snippets/s_carousel.xml',
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
22 changes: 22 additions & 0 deletions theme_aviato/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight" name="Aviato s_company_team_spotlight">
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="border" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="border" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="border" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="border" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_bistro/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_motto.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_striped_top.xml',
'views/snippets/s_quadrant.xml',
'views/new_page_template.xml',
Expand Down
11 changes: 11 additions & 0 deletions theme_bistro/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight" name="Bistro s_company_team_spotlight">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5 o_colored_level" remove="o_cc1" 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 @@ -45,6 +45,7 @@
'views/snippets/s_pricelist_boxed.xml',
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
23 changes: 23 additions & 0 deletions theme_bookstore/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight">
<!-- Team #01 -->
<xpath expr="//p" position="replace" mode="inner">
Store Manager
</xpath>
<!-- Team #02 -->
<xpath expr="(//p)[2]" position="replace" mode="inner">
Bookseller
</xpath>
<!-- Team #03 -->
<xpath expr="(//p)[3]" position="replace" mode="inner">
Assistant Manager
</xpath>
<!-- Team #04 -->
<xpath expr="(//p)[4]" position="replace" mode="inner">
Inventory Specialist
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_kiddo/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_image_title.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_key_images.xml',
'views/new_page_template.xml',
],
Expand Down
23 changes: 23 additions & 0 deletions theme_kiddo/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight">
<!-- Team #01 -->
<xpath expr="//p" position="replace" mode="inner">
Teacher
</xpath>
<!-- Team #02 -->
<xpath expr="(//p)[2]" position="replace" mode="inner">
Child Development Specialist
</xpath>
<!-- Team #03 -->
<xpath expr="(//p)[3]" position="replace" mode="inner">
Caretaker
</xpath>
<!-- Team #04 -->
<xpath expr="(//p)[4]" position="replace" mode="inner">
Nurse
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_notes/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_quadrant.xml',
'views/new_page_template.xml',
],
Expand Down
11 changes: 11 additions & 0 deletions theme_notes/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

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

</odoo>
1 change: 1 addition & 0 deletions theme_orchid/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
'views/snippets/s_numbers_showcase.xml',
'views/snippets/s_key_benefits.xml',
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_key_images.xml',
'views/new_page_template.xml',
Expand Down
23 changes: 23 additions & 0 deletions theme_orchid/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight">
<!-- Team #01 -->
<xpath expr="//p" position="replace" mode="inner">
Floral Designer
</xpath>
<!-- Team #02 -->
<xpath expr="(//p)[2]" position="replace" mode="inner">
Floral Arranger
</xpath>
<!-- Team #03 -->
<xpath expr="(//p)[3]" position="replace" mode="inner">
Flower Specialist
</xpath>
<!-- Team #04 -->
<xpath expr="(//p)[4]" position="replace" mode="inner">
Floral Artist
</xpath>
</template>

</odoo>
21 changes: 21 additions & 0 deletions theme_vehicle/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -663,4 +663,25 @@
</xpath>
</template>


<!-- ======== COMPANY TEAM SPOTLIGHT ======== -->
<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight">
<!-- Team #01 -->
<xpath expr="//p" position="replace" mode="inner">
General Manager
</xpath>
<!-- Team #02 -->
<xpath expr="(//p)[2]" position="replace" mode="inner">
Sales Manager
</xpath>
<!-- Team #03 -->
<xpath expr="(//p)[3]" position="replace" mode="inner">
Service Manager
</xpath>
<!-- Team #04 -->
<xpath expr="(//p)[4]" position="replace" mode="inner">
Parts Manager
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_yes/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_company_team_spotlight.xml',
'views/snippets/s_kickoff.xml',
'views/new_page_template.xml',
],
Expand Down
23 changes: 23 additions & 0 deletions theme_yes/views/snippets/s_company_team_spotlight.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>

<template id="s_company_team_spotlight" inherit_id="website.s_company_team_spotlight">
<!-- Team #01 -->
<xpath expr="//p" position="replace" mode="inner">
Wedding Planner
</xpath>
<!-- Team #02 -->
<xpath expr="(//p)[2]" position="replace" mode="inner">
Venue Coordinator
</xpath>
<!-- Team #03 -->
<xpath expr="(//p)[3]" position="replace" mode="inner">
Floral Designer
</xpath>
<!-- Team #04 -->
<xpath expr="(//p)[4]" position="replace" mode="inner">
Catering Manager
</xpath>
</template>

</odoo>