[IMP] theme_*: adapt s_company_team_detail

task-4156290
Part of: task-4077427

Part-of: odoo/design-themes#919
Related: odoo/odoo#180736
Signed-off-by: Benjamin Vray (bvr) <bvr@odoo.com>
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
mano-odoo
2024-09-03 16:29:52 +02:00
committed by qsm-odoo
parent a808eaf1c3
commit 4bcd32f992
11 changed files with 331 additions and 0 deletions
+1
View File
@@ -33,6 +33,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_detail.xml',
'views/snippets/s_media_list.xml',
'views/snippets/s_comparisons.xml',
'views/snippets/s_product_catalog.xml',
@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_company_team_detail" inherit_id="website.s_company_team_detail">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc3" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team Member #1 -->
<xpath expr="(//img)[1]" position="attributes">
<attribute name="class" add="img-thumbnail" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[1]//div[hasclass('s_social_media')]" position="attributes">
<attribute name="class" remove="no_icon_color" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[1]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[1]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[1]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<!-- Team Member #2 -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="class" add="img-thumbnail" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//div[hasclass('s_social_media')]" position="attributes">
<attribute name="class" remove="no_icon_color" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<!-- Team Member #3 -->
<xpath expr="(//img)[3]" position="attributes">
<attribute name="class" add="img-thumbnail" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[3]//div[hasclass('s_social_media')]" position="attributes">
<attribute name="class" remove="no_icon_color" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[3]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[3]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[3]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<!-- Team Member #4 -->
<xpath expr="(//img)[4]" position="attributes">
<attribute name="class" add="img-thumbnail" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//div[hasclass('s_social_media')]" position="attributes">
<attribute name="class" remove="no_icon_color" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<!-- Team Member #5 -->
<xpath expr="(//div[hasclass('col-lg-4')])[5]//img" position="attributes">
<attribute name="class" add="img-thumbnail" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[5]//div[hasclass('s_social_media')]" position="attributes">
<attribute name="class" remove="no_icon_color" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[5]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[5]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[5]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<!-- Team Member #6 -->
<xpath expr="(//div[hasclass('col-lg-4')])[6]//img" position="attributes">
<attribute name="class" add="img-thumbnail" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//div[hasclass('s_social_media')]" position="attributes">
<attribute name="class" remove="no_icon_color" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="rounded-circle shadow-sm" separator=" "/>
</xpath>
</template>
</odoo>
+94
View File
@@ -841,4 +841,98 @@
</xpath>
</template>
<!-- ======== COMPANY TEAM DETAIL ======== -->
<template id="s_company_team_detail" inherit_id="website.s_company_team_detail">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc2 o_colored_level" remove="o_cc1" separator=" "/>
</xpath>
<!-- Team Member #1 -->
<xpath expr="(//div[hasclass('col-lg-4')])[1]" position="attributes">
<attribute name="class" add="o_cc o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[1]/p[hasclass('text-muted')]" position="replace" mode="inner">
IT Professor
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[1]/p[last()]" position="replace" mode="inner">
James Mitchell is an esteemed IT university professor with over 20 years of experience in teaching and research.
</xpath>
<!-- Team Member #2 -->
<xpath expr="(//div[hasclass('col-lg-4')])[2]" position="attributes">
<attribute name="class" add="o_cc o_cc4" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]/p[hasclass('text-muted')]" position="replace" mode="inner">
Law Professor
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]/p[last()]" position="replace" mode="inner">
Sophia Benett is a dedicated law professor known for her expertise in constitutional law and advocacy.
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
<!-- Team Member #3 -->
<xpath expr="(//div[hasclass('col-lg-4')])[3]" position="attributes">
<attribute name="class" add="o_cc o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[3]/p[hasclass('text-muted')]" position="replace" mode="inner">
Mathematics Professor
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[3]/p[last()]" position="replace" mode="inner">
Olivia Reed is a passionate mathematics teacher with a deep understanding of algebra, calculus, and mathematical modeling.
</xpath>
<!-- Team Member #4 -->
<xpath expr="(//div[hasclass('col-lg-4')])[4]" position="attributes">
<attribute name="class" add="o_cc o_cc4" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]/p[hasclass('text-muted')]" position="replace" mode="inner">
Physics Professor
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]/p[last()]" position="replace" mode="inner">
Emily Carter is a physics lecturer who specializes in quantum mechanics and theoretical physics.
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
<!-- Team Member #5 -->
<xpath expr="(//div[hasclass('col-lg-4')])[5]" position="attributes">
<attribute name="class" add="o_cc o_cc3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[5]/p[hasclass('text-muted')]" position="replace" mode="inner">
Economics Teacher
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[5]/p[last()]" position="replace" mode="inner">
Alexander Rivera is an economics professor focused on macroeconomic theory and international finance.
</xpath>
<!-- Team Member #6 -->
<xpath expr="(//div[hasclass('col-lg-4')])[6]" position="attributes">
<attribute name="class" add="o_cc o_cc4" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]/p[hasclass('text-muted')]" position="replace" mode="inner">
Chemistry Professor
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]/p[last()]" position="replace" mode="inner">
Daniel Foster is a chemistry professor renowned for his research in organic chemistry and sustainable materials.
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//i[hasclass('fa-github')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//i[hasclass('fa-linkedin')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//i[hasclass('fa-instagram')]" position="attributes">
<attribute name="class" add="text-o-color-3" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -18,6 +18,7 @@
'views/snippets/s_striped_top.xml',
'views/snippets/s_cover.xml',
'views/snippets/s_card_offset.xml',
'views/snippets/s_company_team_detail.xml',
'views/snippets/s_text_image.xml',
'views/snippets/s_picture.xml',
'views/snippets/s_pricelist_boxed.xml',
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_company_team_detail" inherit_id="website.s_company_team_detail">
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc1" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -30,6 +30,7 @@
'views/snippets/s_numbers.xml',
'views/snippets/s_three_columns.xml',
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_company_team_detail.xml',
'views/snippets/s_company_team_shapes.xml',
'views/snippets/s_image_gallery.xml',
'views/snippets/s_call_to_action.xml',
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_company_team_detail" inherit_id="website.s_company_team_detail">
<xpath expr="//h3" position="replace" mode="inner">
Meet our talents
</xpath>
<xpath expr="//p[hasclass('lead')]" position="replace" mode="inner">
Talented musicians and performers who are dedicated to bringing you the best in live music.
</xpath>
<!-- Team member #1-->
<xpath expr="(//div[hasclass('col-lg-4')])[1]//p[hasclass('text-muted')]" position="replace" mode="inner">
Lead singer
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[1]//p[last()]" position="replace" mode="inner">
James Mitchell is a dynamic lead singer known for his captivating stage presence and powerful vocals.
</xpath>
<!-- Team member #2-->
<xpath expr="(//div[hasclass('col-lg-4')])[2]//p[hasclass('text-muted')]" position="replace" mode="inner">
Electronic DJ
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//p[last()]" position="replace" mode="inner">
Sophia Benett is a renowned underground techno DJ celebrated for her innovative sound.
</xpath>
<!-- Team member #3-->
<xpath expr="(//div[hasclass('col-lg-4')])[3]//p[hasclass('text-muted')]" position="replace" mode="inner">
Singer &amp; Songwriter
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[3]//p[last()]" position="replace" mode="inner">
Olivia Reed is a talented singer-songwriter famous for her soulful voice and heartfelt lyrics.
</xpath>
<!-- Team member #4-->
<xpath expr="(//div[hasclass('col-lg-4')])[4]//p[hasclass('text-muted')]" position="replace" mode="inner">
Singer
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//p[last()]" position="replace" mode="inner">
Emily Carter is a captivating singer known for her enchanting voice and magnetic stage presence.
</xpath>
<!-- Team member #5-->
<xpath expr="(//div[hasclass('col-lg-4')])[5]//p[hasclass('text-muted')]" position="replace" mode="inner">
Guitarist
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[5]//p[last()]" position="replace" mode="inner">
Alexander Rivera is a skilled guitarist known for his exceptional technique and innovative playing style.
</xpath>
<!-- Team member #6-->
<xpath expr="(//div[hasclass('col-lg-4')])[6]//p[hasclass('text-muted')]" position="replace" mode="inner">
Rapper
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//p[last()]" position="replace" mode="inner">
Daniel Foster is a dynamic rapper known for his sharp lyrics and compelling storytelling.
</xpath>
</template>
</odoo>
+1
View File
@@ -17,6 +17,7 @@
'views/snippets/s_carousel.xml',
'views/snippets/s_color_blocks_2.xml',
'views/snippets/s_comparisons.xml',
'views/snippets/s_company_team_detail.xml',
'views/snippets/s_cover.xml',
'views/snippets/s_card_offset.xml',
'views/snippets/s_faq_collapse.xml',
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_company_team_detail" inherit_id="website.s_company_team_detail">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc2" remove="o_cc1" separator=" "/>
</xpath>
</template>
</odoo>
+1
View File
@@ -18,6 +18,7 @@
'views/snippets/s_sidegrid.xml',
'views/snippets/s_carousel.xml',
'views/snippets/s_company_team.xml',
'views/snippets/s_company_team_detail.xml',
'views/snippets/s_cover.xml',
'views/snippets/s_card_offset.xml',
'views/snippets/s_image_text.xml',
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_company_team_detail" inherit_id="website.s_company_team_detail">
<!-- Team member #1-->
<xpath expr="(//div[hasclass('col-lg-4')])[1]//p[hasclass('text-muted')]" position="replace" mode="inner">
The Founder &amp; Planner
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[1]//p[last()]" position="replace" mode="inner">
James is a visionary wedding coordinator and stylist with a passion for transforming dreams into reality.
</xpath>
<!-- Team member #2-->
<xpath expr="(//div[hasclass('col-lg-4')])[2]//p[hasclass('text-muted')]" position="replace" mode="inner">
The Designer
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[2]//p[last()]" position="replace" mode="inner">
Sophia is a talented designer known for her innovative approach in creating stunning wedding experiences.
</xpath>
<!-- Team member #3-->
<xpath expr="(//div[hasclass('col-lg-4')])[3]//p[hasclass('text-muted')]" position="replace" mode="inner">
The Coordinator
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[3]//p[last()]" position="replace" mode="inner">
Olivia is an expert coordinator who ensures every detail is perfectly executed on the big day.
</xpath>
<!-- Team member #4-->
<xpath expr="(//div[hasclass('col-lg-4')])[4]//p[hasclass('text-muted')]" position="replace" mode="inner">
The Florist
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[4]//p[last()]" position="replace" mode="inner">
Emily is a creative florist who brings vibrant floral designs to life, enhancing every event.
</xpath>
<!-- Team member #5-->
<xpath expr="(//div[hasclass('col-lg-4')])[5]//p[hasclass('text-muted')]" position="replace" mode="inner">
The Photographer
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[5]//p[last()]" position="replace" mode="inner">
Alexander captures the essence of every moment, creating timeless memories through his lens.
</xpath>
<!-- Team member #6-->
<xpath expr="(//div[hasclass('col-lg-4')])[6]//p[hasclass('text-muted')]" position="replace" mode="inner">
The Caterer
</xpath>
<xpath expr="(//div[hasclass('col-lg-4')])[6]//p[last()]" position="replace" mode="inner">
Daniel is a culinary artist who crafts exquisite menus tailored to each couple's taste.
</xpath>
</template>
</odoo>