Files
design-themes/theme_notes/views/snippets/s_cards_grid.xml
T
Benoit Socias 38a02a269a [FIX] theme_*: fix used separators in class and style updates
*: anelusia, artists, avantgarde, aviato, bistro, bookstore, buzzy,
   clean, enark, graphene, kea, kiddo, monglia, nano, notes,
   odoo_experts, paptic, real_estate, treehouse, vehicle, yes, zap

This commit fixes the wrong separators used when updating class and
style attributes.

task-4206845

Part-of: odoo/design-themes#933
Related: odoo/odoo#181194
Signed-off-by: Alice Gaudon (agau) <agau@odoo.com>
2024-09-26 08:40:55 +00:00

60 lines
2.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_cards_grid" inherit_id="website.s_cards_grid">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_cc5" remove="o_cc2" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h3" position="replace" mode="inner">
Experience the Best of Our Festival
</xpath>
<!-- Card 1 -->
<xpath expr="(//div[hasclass('s_card')])[1]" position="attributes">
<attribute name="class" add="border" separator=" "/>
<attribute name="style" add="border-width: 0px !important;" separator=";"/>
</xpath>
<xpath expr="(//h5)[1]" position="replace" mode="inner">
Engaging Social Activities
</xpath>
<xpath expr="(//p)[1]" position="replace" mode="inner">
Connect with fellow festival-goers through a variety of social activities, from interactive games to community art projects, creating memories that last a lifetime.
</xpath>
<!-- Card 2 -->
<xpath expr="(//div[hasclass('s_card')])[2]" position="attributes">
<attribute name="class" add="border" separator=" "/>
<attribute name="style" add="border-width: 0px !important;" separator=";"/>
</xpath>
<xpath expr="(//h5)[2]" position="replace" mode="inner">
Incredible Lineup of Artists
</xpath>
<xpath expr="(//p)[2]" position="replace" mode="inner">
Enjoy performances from a diverse range of talented artists, bringing you the best in music, dance, and visual arts from around the world.
</xpath>
<!-- Card 3 -->
<xpath expr="(//div[hasclass('s_card')])[3]" position="attributes">
<attribute name="class" add="border" separator=" "/>
<attribute name="style" add="border-width: 0px !important;" separator=";"/>
</xpath>
<xpath expr="(//h5)[3]" position="replace" mode="inner">
Exclusive Festival Merchandise
</xpath>
<xpath expr="(//p)[3]" position="replace" mode="inner">
Grab your exclusive festival merch, from stylish apparel to unique souvenirs, so you can remember your festival experience in style.
</xpath>
<!-- Card 4 -->
<xpath expr="(//div[hasclass('s_card')])[4]" position="attributes">
<attribute name="class" add="border" separator=" "/>
<attribute name="style" add="border-width: 0px !important;" separator=";"/>
</xpath>
<xpath expr="(//h5)[4]" position="replace" mode="inner">
High-Quality Music Experience
</xpath>
<xpath expr="(//p)[4]" position="replace" mode="inner">
Immerse yourself in an exceptional audio journey with high-quality sound systems and curated playlists, ensuring an unforgettable musical experience.
</xpath>
</template>
</odoo>