[IMP] theme_vehicle: adapt s_banner

Since the redesign of the original banner snippet, the customizations
made in theme_vehicle have had to be adapted.

task-3097005

Part-of: odoo/design-themes#687
This commit is contained in:
Brieuc-brd
2023-08-29 09:12:59 +02:00
committed by qsm-odoo
parent bd66ff093a
commit 9d5143a1e2
4 changed files with 10 additions and 13 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

-13
View File
@@ -1,19 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- ======== BANNER ======== -->
<template id="s_banner" inherit_id="website.s_banner">
<xpath expr="//section" position="attributes">
<attribute name="data-oe-shape-data">{"shape":"web_editor/Origins/18","flip":["x"]}</attribute>
</xpath>
<xpath expr="//div[hasclass('container')]" position="before">
<div class="o_we_shape o_web_editor_Origins_18" style="background-image: url('/web_editor/shape/web_editor/Origins/18.svg?c1=o-color-4&amp;flip=x'); background-position: 50% 50%;"/>
</xpath>
<xpath expr="//div[hasclass('jumbotron')]" position="attributes">
<attribute name="class" remove="o_cc o_cc1" separator=" "/>
</xpath>
</template>
<!-- ======== COVER ======== -->
<template id="s_cover" inherit_id="website.s_cover" name="Vehicle s_cover">
<xpath expr="section" position="attributes">
+10
View File
@@ -45,6 +45,16 @@ Check in theme_monglia's primary_variables.scss, theme.scss and theme_common's m
<field name="name">website.s_banner_default_image</field>
<field name="url">/theme_vehicle/static/src/img/snippets/s_banner.jpg</field>
</record>
<record id="s_banner_default_image_2" model="theme.ir.attachment">
<field name="key">website.s_banner_default_image_2</field>
<field name="name">website.s_banner_default_image_2</field>
<field name="url">/theme_vehicle/static/src/img/snippets/s_banner_2.jpg</field>
</record>
<record id="s_banner_default_image_3" model="theme.ir.attachment">
<field name="key">website.s_banner_default_image_3</field>
<field name="name">website.s_banner_default_image_3</field>
<field name="url">/theme_vehicle/static/src/img/snippets/s_banner_3.jpg</field>
</record>
<record id="s_popup_default_image" model="theme.ir.attachment">
<field name="key">website.s_popup_default_image</field>
<field name="name">website.s_popup_default_image</field>