Files
design-themes/theme_anelusia/views/snippets/s_company_team.xml
T
Benoit Socias 50f4986d42 [FIX] theme_*: upgrade image datasets
*: theme_anelusia, theme_artists, theme_avantgarde, theme_beauty,
   theme_buzzy, theme_clean, theme_kea, theme_kiddo, theme_monglia,
   theme_odoo_experts, theme_orchid, theme_real_estate,
   theme_test_custo, theme_vehicle, theme_zap

When `html_builder` was introduced, some data attributes related to
images have changed. Unfortunately, the attributes on static data were
not adapted accordingly. Because of this, both namings might appear in
this version.

This commit migrates images and background images attributes to use
the new attributes.

Dataset changes:
- copy `originalId` to `attachmentId`
- rename `originalMimetype` to `formatMimetype`

task-4367641

closes odoo/design-themes#1112

Related: odoo/odoo#218348
Related: odoo/enterprise#89768
Signed-off-by: Robin Lejeune (role) <role@odoo.com>
2025-07-14 11:58:22 +00:00

113 lines
6.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_company_team" inherit_id="website.s_company_team">
<!-- Section -->
<xpath expr="section" position="attributes">
<attribute name="class" add="pt64 pb64" remove="pt48 pb48" separator=" "/>
</xpath>
<!-- Team #01 -->
<xpath expr="//div[hasclass('col-lg-6')]//img" position="attributes">
<attribute name="class" remove="rounded-circle" separator=" "/>
</xpath>
<!-- Team #01 - Title -->
<xpath expr="//div[hasclass('col-lg-6')]//h4" position="replace" mode="inner">
<font style="background-image: linear-gradient(135deg, var(--o-color-1) 0%, var(--o-color-5) 100%);" class="text-gradient">Tony Fred</font>
</xpath>
<!-- Team #01 - Work Description -->
<xpath expr="//div[hasclass('col-lg-6')]//p" position="replace" mode="inner">
Editor-in-chief
</xpath>
<!-- Team #01 - Paragraph -->
<xpath expr="//div[hasclass('col-lg-6')]//p[2]" position="replace" mode="inner">
Founder and chief visionary, Tony is the driving force behind the company. He loves to keep his hands full by participating in the development of the magazine and does not hesitate to carry out field surveys.
</xpath>
<!-- Team #01 - Img -->
<xpath expr="//img" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_1/web_editor/geometric/geo_square_1.svg</attribute>
<attribute name="data-shape">web_editor/geometric/geo_square_1</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_1.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Team #02 -->
<xpath expr="//div[hasclass('col-lg-6')][2]//img" position="attributes">
<attribute name="class" remove="rounded-circle" separator=" "/>
</xpath>
<!-- Team #02 - Title -->
<xpath expr="//div[hasclass('col-lg-6')][2]//h4" position="replace" mode="inner">
<font style="background-image: linear-gradient(135deg, var(--o-color-1) 0%, var(--o-color-5) 100%);" class="text-gradient">Mich Stark</font>
<br/>
</xpath>
<!-- Team #02 - Work Description -->
<xpath expr="//div[hasclass('col-lg-6')][2]//p" position="replace" mode="inner">
Sports Reporter
</xpath>
<!-- Team #02 - Paragraph -->
<xpath expr="//div[hasclass('col-lg-6')][2]//p[2]" position="replace" mode="inner">
Mich loves taking on challenges. With his multi-year experience as a journalist, he wanted to join a team that puts people at the center of the stories.
</xpath>
<!-- Team #02 - Img -->
<xpath expr="(//img)[2]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_2/web_editor/geometric/geo_square_2.svg</attribute>
<attribute name="data-shape">web_editor/geometric/geo_square_2</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_2.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Team #03 -->
<xpath expr="//div[hasclass('col-lg-6')][3]//img" position="attributes">
<attribute name="class" remove="rounded-circle" separator=" "/>
</xpath>
<!-- Team #03 - Title -->
<xpath expr="//div[hasclass('col-lg-6')][3]//h4" position="replace" mode="inner">
<font style="background-image: linear-gradient(135deg, var(--o-color-2) 0%, var(--o-color-5) 100%);" class="text-gradient">Aline Turner</font>
</xpath>
<!-- Team #03 - Work Description -->
<xpath expr="//div[hasclass('col-lg-6')][3]//p" position="replace" mode="inner">
Photograph
</xpath>
<!-- Team #03 - Paragraph -->
<xpath expr="//div[hasclass('col-lg-6')][3]//p[2]" position="replace" mode="inner">
Aline is one of the iconic people in life who can say they love what they do. She likes to capture the moment from another point of view, another perspective.
</xpath>
<!-- Team #03 - Img -->
<xpath expr="(//img)[3]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_3/web_editor/geometric/geo_square_3.svg</attribute>
<attribute name="data-shape">web_editor/geometric/geo_square_3</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_3.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
<!-- Team #04 -->
<xpath expr="//div[hasclass('col-lg-6')][4]//img" position="attributes">
<attribute name="class" remove="rounded-circle" separator=" "/>
</xpath>
<!-- Team #04 - Title -->
<xpath expr="//div[hasclass('col-lg-6')][4]//h4" position="replace" mode="inner">
<font style="background-image: linear-gradient(135deg, var(--o-color-2) 0%, var(--o-color-5) 100%);" class="text-gradient">Iris Joe</font>
</xpath>
<!-- Team #04 - Work Description -->
<xpath expr="//div[hasclass('col-lg-6')][3]//p" position="replace" mode="inner">
Political Reporter
</xpath>
<!-- Team #04 - Paragraph -->
<xpath expr="//div[hasclass('col-lg-6')][4]//p[2]" position="replace" mode="inner">
Iris, with her international experience, helps us easily understand global politics. She is determined to drive success and delivers her professional acumen to bring the magazine to the next level.
</xpath>
<!-- Team #04 - Img -->
<xpath expr="(//img)[4]" position="attributes">
<attribute name="src">/web_editor/image_shape/website.s_company_team_image_4/web_editor/geometric/geo_square_1.svg</attribute>
<attribute name="data-shape">web_editor/geometric/geo_square_1</attribute>
<attribute name="data-format-mimetype">image/webp</attribute>
<attribute name="data-file-name">uiface_4.svg</attribute>
<attribute name="data-shape-colors">;;;;</attribute>
</xpath>
</template>
</odoo>