mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
35ba43166a
This commit fixes three minors issues about the `s_call_to_action` snippet. 1) The `background-image` is missing the classes to set it to cover, leading to a weird positioning of the image ; 2) The `background-image` was not the right one ; 3) The `s_call_to_action` snippet was missing from the theme screenshot. task-4217986 follow-up of task-4178092 Part-of: odoo/design-themes#969 Related: odoo/odoo#182029 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
29 lines
1.1 KiB
XML
29 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<template id="s_call_to_action" inherit_id="website.s_call_to_action">
|
|
<xpath expr="//section" position="attributes">
|
|
<attribute name="style" add="background-image: url('/web/image/website.s_parallax_default_image');" separator=";"/>
|
|
<attribute name="class" add="oe_img_bg o_bg_img_center" separator=" "/>
|
|
</xpath>
|
|
<xpath expr="//div[hasclass('container')]" position="before">
|
|
<div class="o_we_bg_filter bg-black-25"/>
|
|
</xpath>
|
|
<!-- Title -->
|
|
<xpath expr="//h3" position="replace">
|
|
<h2>Discover how we can help you<br/>making this day unforgettable.</h2>
|
|
</xpath>
|
|
<!-- Paragraph -->
|
|
<xpath expr="//p" position="replace">
|
|
<p><br/></p>
|
|
</xpath>
|
|
<!-- CTA -->
|
|
<xpath expr="//p" position="after">
|
|
<a t-att-href="cta_btn_href" class="btn btn-primary btn-lg"><t t-esc="cta_btn_text">Contact us</t></a>
|
|
</xpath>
|
|
<!-- Remove right-side button -->
|
|
<xpath expr="//div[hasclass('col-lg-3')]" position="replace"/>
|
|
</template>
|
|
|
|
</odoo>
|