Files
design-themes/theme_bookstore/views/snippets/s_call_to_action.xml
T
Sébastien Mottet (oms) 20cca57c52 [IMP] website: change CTA based on website main objective
If user selects 'schedule appointments' as main objective in the configurator
and if the website_calendar module is installed then the Call To Action of
snippets s_banner, s_cover and s_call_to_action is changed to 'Schedule an
appointment' and redirect user to '/calendar' on click.

task-2518565

closes odoo/design-themes#5

Related: odoo/odoo#71162
Related: odoo/enterprise#18690
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
2021-06-29 12:57:11 +00:00

24 lines
1000 B
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_call_to_action" inherit_id="website.s_call_to_action">
<!-- Section -->
<xpath expr="//section" position="attributes">
<attribute name="class" add="o_half_screen_height o_cc1 pt64 pb48" remove="o_cc3 pt48 pb24" separator=" "/>
</xpath>
<!-- Paragraph 1 -->
<xpath expr="//div[hasclass('col-lg-9')]" position="replace">
<div class="pb16 col-lg-12 text-center">
<h3>Browse through our <b>complete library</b>.</h3>
</div>
</xpath>
<!-- Paragraph 2 -->
<xpath expr="//div[hasclass('col-lg-3')]" position="replace">
<div class="col-lg-12 pt8">
<p style="text-align: center;">
<a t-att-href="cta_btn_href" class="btn btn-secondary btn-lg mb-2"><t t-esc="cta_btn_text">Browse collection</t></a>
</p>
</div>
</xpath>
</template>
</odoo>