[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:
Sébastien Mottet (oms)
2021-05-26 14:36:32 +00:00
parent 34d61b2815
commit 20cca57c52
15 changed files with 24 additions and 22 deletions
+3 -1
View File
@@ -48,9 +48,11 @@
<xpath expr="//p" position="replace">
<p class="text-o-color-3">&#160;</p>
</xpath>
<xpath expr="//p[2]" position="replace">
<p class="text-o-color-3">
<a href="#" class="btn btn-lg btn-primary mb-2">START NOW</a>&#160;&#160;&#160;&#160;<a href="#" class="btn btn-lg btn-secondary mb-2">SCHEDULE A DEMO</a>
<a href="#" class="btn btn-lg btn-primary mb-2">START NOW</a>&#160;&#160;&#160;&#160;
<a t-att-href="cta_btn_href" class="btn btn-lg btn-secondary mb-2"><t t-esc="cta_btn_text.upper()">SCHEDULE A DEMO</t></a>
</p>
</xpath>