mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[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>
This commit is contained in:
@@ -36,8 +36,8 @@
|
||||
<xpath expr="//a" position="before">
|
||||
<br/>
|
||||
</xpath>
|
||||
<xpath expr="//a" position="replace">
|
||||
<a href="#" class="btn btn-primary mb-2">Start now</a>
|
||||
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace">
|
||||
<t t-esc="cta_btn_text">Start now</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
@@ -168,8 +168,8 @@
|
||||
|
||||
<!-- ==== Call To Action ===== -->
|
||||
<template id="s_call_to_action" inherit_id="website.s_call_to_action" name="Cobalt s_call_to_action">
|
||||
<xpath expr="//a" position="replace">
|
||||
<a href="/contactus" class="btn btn-primary btn-lg mb-2">START NOW</a>
|
||||
<xpath expr="//t[@t-esc='cta_btn_text']" position="replace">
|
||||
<t t-esc="cta_btn_text.upper()">START NOW</t>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user