Files
design-themes/theme_bistro/views/snippets/s_cover.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

31 lines
1.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="s_cover" inherit_id="website.s_cover">
<!-- Section -->
<xpath expr="section" position="attributes">
<attribute name="class" add="o_full_screen_height" separator=" "/>
</xpath>
<!-- Title -->
<xpath expr="//h1" position="replace">
<h1 style="text-align: center;">
<font style="font-size: 62px;"><b>Daily Fresh Food</b></font>
</h1>
</xpath>
<!-- Paragraph -->
<xpath expr="//p" position="replace">
<h6 class="text-center">Only local and fresh products to keep you healthy.</h6>
<p><br/></p>
</xpath>
<!-- Button -->
<xpath expr="//a[hasclass('btn')]" position="replace">
<a t-att-href="cta_btn_href" class="btn btn-lg btn-primary rounded-circle mb-2"><t t-esc="cta_btn_text">Menu</t></a>
</xpath>
<!-- Scroll Down button -->
<xpath expr="//div[hasclass('container')]" position="after">
<a class="o_scroll_button rounded-circle align-items-center justify-content-center mx-auto bg-o-color-5 mb-2" href="#" title="Scroll down to next section">
<i class="fa fa-angle-down fa-2x"/>
</a>
</xpath>
</template>
</odoo>