Skip to content

Commit

Permalink
[IMP] theme_*: adapt themes with new s_company_team_card snippet
Browse files Browse the repository at this point in the history
*: avantgarde, aviato, beauty, bewise, bistro,bookstore, buzzy, clean,
cobalt, kea, kiddo, monglia, nano, notes, Orchid, paptic, real_estate,
vehicle, yes, zap

This commit adapts the design of `s_company_team_card` for multiple
themes, based on the new Odoo 18 snippet redesign.

task-4149441
Part-of: task-4077427
  • Loading branch information
xlu-odoo committed Oct 9, 2024
1 parent ec65542 commit e6c118e
Show file tree
Hide file tree
Showing 35 changed files with 448 additions and 0 deletions.
20 changes: 20 additions & 0 deletions theme_avantgarde/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -836,4 +836,24 @@
</xpath>
</template>

<!-- ======== COMPANY TEAM GRID ======== -->
<template id="s_company_team_card" inherit_id="website.s_company_team_card" name="Avantgarde s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" 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 @@ -40,6 +40,7 @@
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_showcase.xml',
'views/snippets/s_quadrant.xml',
'views/snippets/s_company_team_card.xml',
'views/snippets/s_unveil.xml',
'views/snippets/s_accordion_image.xml',
'views/snippets/s_key_benefits.xml',
Expand Down
23 changes: 23 additions & 0 deletions theme_aviato/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Aviato s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>

</odoo>
20 changes: 20 additions & 0 deletions theme_bewise/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1138,4 +1138,24 @@
</xpath>
</template>

<!-- ======== COMPANY TEAM CARD ======== -->
<template id="s_company_team_card" inherit_id="website.s_company_team_card" name="Be Wise s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" 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 @@ -44,6 +44,7 @@
'views/snippets/s_motto.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_striped_top.xml',
'views/snippets/s_company_team_card.xml',
'views/snippets/s_quadrant.xml',
'views/snippets/s_intro_pill.xml',
'views/snippets/s_big_number.xml',
Expand Down
23 changes: 23 additions & 0 deletions theme_bistro/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Bistro's s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" 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 @@ -60,6 +60,7 @@
'views/snippets/s_text_cover.xml',
'views/snippets/s_accordion.xml',
'views/snippets/s_accordion_image.xml',
'views/snippets/s_company_team_card.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
23 changes: 23 additions & 0 deletions theme_bookstore/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Bookstore's s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_buzzy/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
'views/snippets/s_image_hexagonal.xml',
'views/snippets/s_image_punchy.xml',
'views/snippets/s_striped_center_top.xml',
'views/snippets/s_company_team_card.xml',
'views/snippets/s_image_title.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_big_number.xml',
Expand Down
11 changes: 11 additions & 0 deletions theme_buzzy/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Buzzy's s_company_team_card">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc5" 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 @@ -44,6 +44,7 @@
'views/snippets/s_shape_image.xml',
'views/snippets/s_images_constellation.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_company_team_card.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
27 changes: 27 additions & 0 deletions theme_clean/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Clean's s_company_team_card">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc5" separator=" "/>
</xpath>
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>

</odoo>
24 changes: 24 additions & 0 deletions theme_cobalt/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -706,4 +706,28 @@
</xpath>
</template>

<!-- ======== COMPANY TEAM CARD ======== -->
<template id="s_company_team_card" inherit_id="website.s_company_team_card" name="Cobalt's s_company_team_card">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc5" separator=" "/>
</xpath>
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_enark/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
'views/snippets/s_images_constellation.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_company_team_card.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
23 changes: 23 additions & 0 deletions theme_enark/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Enark's s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_kea/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,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_card.xml',
'views/snippets/s_image_title.xml',
'views/snippets/s_image_punchy.xml',
'views/snippets/s_key_images.xml',
Expand Down
27 changes: 27 additions & 0 deletions theme_kea/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Kea's s_company_team_card">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc5" separator=" "/>
</xpath>
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</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 @@ -44,6 +44,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_card.xml',
'views/snippets/s_image_title.xml',
'views/snippets/s_key_images.xml',
'views/snippets/s_intro_pill.xml',
Expand Down
23 changes: 23 additions & 0 deletions theme_kiddo/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Kiddo's s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_loftspace/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
'views/snippets/s_wavy_grid.xml',
'views/snippets/s_text_cover.xml',
'views/snippets/s_empowerment.xml',
'views/snippets/s_company_team_card.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
23 changes: 23 additions & 0 deletions theme_loftspace/views/snippets/s_company_team_card.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_card" inherit_id="website.s_company_team_card" name="Kiddo's s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>

</odoo>
20 changes: 20 additions & 0 deletions theme_monglia/views/customizations.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1029,4 +1029,24 @@
<xpath expr="//p" position="replace"/>
</template>

<!-- ======== COMPANY TEAM CARD ======== -->
<template id="s_company_team_card" inherit_id="website.s_company_team_card" name="Monglia's s_company_team_card">
<!-- Team Member 1 -->
<xpath expr="//div[hasclass('card')]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 2 -->
<xpath expr="(//div[hasclass('card')])[2]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 3 -->
<xpath expr="(//div[hasclass('card')])[3]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
<!-- Team Member 4 -->
<xpath expr="(//div[hasclass('card')])[4]" position="attributes">
<attribute name="class" add="o_cc4" remove="o_cc3" separator=" "/>
</xpath>
</template>

</odoo>
1 change: 1 addition & 0 deletions theme_nano/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
'views/snippets/s_numbers.xml',
'views/snippets/s_image_text_overlap.xml',
'views/snippets/s_company_team_basic.xml',
'views/snippets/s_company_team_card.xml',
'views/new_page_template.xml',
],
'images': [
Expand Down
Loading

0 comments on commit e6c118e

Please sign in to comment.