Files
design-themes/theme_zap/views/snippets/s_masonry_block.xml
T
Soukéina Bojabza 4c321782ac [FIX] theme_zap: remove contentenditable property from Masonry image
In [1], in order to allow back the edition of the images of the columns
in grid mode containing only an image, the `contenteditable` property
is removed from these columns.

This commit removes the `contenteditable` property that was set on an
image column of the Masonry snippet in the Zap theme.

[1]: https://github.com/odoo/odoo/pull/103767

opw-3028116

closes odoo/design-themes#617

X-original-commit: 6e285922a1
Related: odoo/odoo#104899
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2022-11-03 23:35:12 +01:00

39 lines
1.6 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_masonry_block_default_template" inherit_id="website.s_masonry_block_default_template">
<!-- Block #01 -->
<xpath expr="//div[hasclass('col-lg-3')]" position="attributes">
<attribute name="class" add="o_cc1" remove="o_cc2" separator=" "/>
</xpath>
<xpath expr="//h3" position="replace"/>
<xpath expr="//p" position="replace" mode="inner">
<em class="lead">Maintain a position of constant change<br/> and evolution, while always aiming<br/> for your success.</em>
</xpath>
<!-- Block #02 -->
<xpath expr="//h3" position="before">
<i class="fa fa-2x fa-star text-o-color-2 rounded-circle shadow mx-auto my-3"/>
</xpath>
<xpath expr="//h3" position="replace" mode="inner">
Super <b>Easy</b>
</xpath>
<xpath expr="(//p)[2]" position="replace" mode="inner"/>
<!-- Block #03 -->
<xpath expr="(//h3)[2]" position="before">
<i class="fa fa-2x fa-rocket text-o-color-1 rounded-circle shadow mx-auto my-3"/>
</xpath>
<xpath expr="(//h3)[2]" position="replace" mode="inner">
Super <b>Fast</b>
</xpath>
<xpath expr="(//p)[3]" position="replace" mode="inner"/>
<!-- Block #04 -->
<xpath expr="//*[hasclass('col-lg-3')][4]" position="attributes">
<attribute name="class" add="o_grid_item_image" remove="o_cc o_cc2" separator=" "/>
</xpath>
<xpath expr="//*[hasclass('col-lg-3')][4]" position="replace" mode="inner">
<img src="/web/image/website.s_masonry_block_default_image_2" class="img img-fluid mx-auto" alt=""/>
</xpath>
</template>
</odoo>