You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

435 lines
33 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo xmlns:display="http://www.w3.org/1999/xhtml">
<template id="cookies_bar_template" inherit_id="website.cookies_bar"
name="Cookies Bar Template">
<xpath expr="//div[@id='website_cookies_bar']" position="replace">
<t t-set="cookies_enabled"
t-value="request.env.user.cookies_enabled"/>
<t t-set="user_selected"
t-value="request.env['ir.config_parameter'].sudo().get_param('cookie_consent_manager.cookie_template_id')"/>
<t t-set="user_selected_one" t-value="1"/>
<t t-out="user_selected"/>
<t t-set="cookie_template_id"
t-value="request.env['cookie.information'].sudo().browse(int(user_selected))"/>
<div id="website_cookies_bar"
t-if="website.cookies_bar and not cookies_enabled"
class="s_popup o_snippet_invisible o_no_save"
data-name="Cookies Bar" data-vcss="001" data-invisible="1">
<div class="modal s_popup_bottom s_popup_no_backdrop o_cookies_discrete"
data-show-after="500"
data-display="afterDelay"
data-consents-duration="999"
data-bs-focus="false"
data-bs-backdrop="false"
data-bs-keyboard="false"
tabindex="-1"
role="dialog"
style="display:block">
<div class="modal-dialog d-flex s_popup_size_full">
<!--Check the user wants to change the popup position-->
<t t-if="cookie_template_id.is_change_pop_up_position">
<!-- Check the popup position is move to bottom-->
<t t-if="cookie_template_id.is_change_pop_up_position_bottom">
<!-- Check the popup position is move to bottom left-->
<t t-if="cookie_template_id.pop_up_position_bottom == 'bottom_left'">
<div class="modal-content oe_structure"
t-att-style="'width: 900px; margin-left: 0px;'">
<!-- Keep this section equivalent to the rendering of the `website.cookies_bar.discrete` client template -->
<section
class="o_colored_level o_cc o_cc1"
t-att-style="'background-color: %s; height: 100px;'% cookie_template_id._get_color(cookie_template_id.cookie_color)">
<div class="container">
<div class="row">
<center>
<p>
<span class="pe-1">
<t t-esc="cookie_template_id.pop_up_text"/>
</span>
<a href="/cookie-policy"
class="o_cookies_bar_text_policy btn btn-link btn-sm px-0">
<t t-esc="cookie_template_id.cookie_policy_btn"/>
</a>
</p>
</center>
</div>
<div class="row">
<div class="btn-group"
role="group">
<a href="#"
id="cookies-consent-essential"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm px-2">
Only essentials
</a>
<a href="#"
id="cookies-consent-all"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.accept_btn_txt"/>
</a>
<a href="#"
id="cookies-close"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.reject_btn_txt"/>
</a>
</div>
</div>
</div>
</section>
</div>
</t>
<!-- Check the popup position is move to bottom right-->
<t t-if="cookie_template_id.pop_up_position_bottom == 'bottom_right'">
<div class="modal-content oe_structure"
t-att-style="'width: 900px; margin-left: 1000px;'">
<!-- Keep this section equivalent to the rendering of the `website.cookies_bar.discrete` client template -->
<section
class="o_colored_level o_cc o_cc1"
t-att-style="'background-color: %s; height: 100px;'% cookie_template_id._get_color(cookie_template_id.cookie_color)">
<div class="container">
<div class="row">
<center>
<p>
<span class="pe-1">
<t t-esc="cookie_template_id.pop_up_text"/>
</span>
<a href="/cookie-policy"
class="o_cookies_bar_text_policy btn btn-link btn-sm px-0">
<t t-esc="cookie_template_id.cookie_policy_btn"/>
</a>
</p>
</center>
</div>
<div class="row">
<div class="btn-group"
role="group">
<a href="#"
id="cookies-consent-essential"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm px-2">
Only essentials
</a>
<a href="#"
id="cookies-consent-all"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.accept_btn_txt"/>
</a>
<a href="#"
id="cookies-close"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.reject_btn_txt"/>
</a>
</div>
</div>
</div>
</section>
</div>
</t>
<!-- Check the popup position is move to bottom center-->
<t t-if="cookie_template_id.pop_up_position_bottom == 'bottom_center'">
<div class="modal-content oe_structure"
t-att-style="'width: 900px; margin-left: 500px;'">
<!-- Keep this section equivalent to the rendering of the `website.cookies_bar.discrete` client template -->
<section
class="o_colored_level o_cc o_cc1"
t-att-style="'background-color: %s; height: 100px;'% cookie_template_id._get_color(cookie_template_id.cookie_color)">
<div class="container">
<div class="row">
<center>
<p>
<span class="pe-1">
<t t-esc="cookie_template_id.pop_up_text"/>
</span>
<a href="/cookie-policy"
class="o_cookies_bar_text_policy btn btn-link btn-sm px-0">
<t t-esc="cookie_template_id.cookie_policy_btn"/>
</a>
</p>
</center>
</div>
<div class="row">
<div class="btn-group"
role="group">
<a href="#"
id="cookies-consent-essential"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm px-2">
Only essentials
</a>
<a href="#"
id="cookies-consent-all"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.accept_btn_txt"/>
</a>
<a href="#"
id="cookies-close"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.reject_btn_txt"/>
</a>
</div>
</div>
</div>
</section>
</div>
</t>
<!-- Check the popup position is move to full bottom-->
<t t-if="cookie_template_id.pop_up_position_bottom == 'full_bottom_container'">
<div class="modal-content oe_structure"
t-att-style="'width: 100%; height:100px; margin-right: 0px;'">
<!-- Keep this section equivalent to the rendering of the `website.cookies_bar.discrete` client template -->
<section
class="o_colored_level o_cc o_cc1"
t-att-style="'background-color: %s; height: 100px;'% cookie_template_id._get_color(cookie_template_id.cookie_color)">
<div class="container">
<div class="row">
<center>
<p>
<span class="pe-1">
<t t-esc="cookie_template_id.pop_up_text"/>
</span>
<a href="/cookie-policy"
class="o_cookies_bar_text_policy btn btn-link btn-sm px-0">
<t t-esc="cookie_template_id.cookie_policy_btn"/>
</a>
</p>
</center>
</div>
<div class="row">
<div class="btn-group"
role="group">
<a href="#"
id="cookies-consent-essential"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm px-2">
Only essentials
</a>
<a href="#"
id="cookies-consent-all"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.accept_btn_txt"/>
</a>
<a href="#"
id="cookies-close"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.reject_btn_txt"/>
</a>
</div>
</div>
</div>
</section>
</div>
</t>
</t>
<!--Check the popup position is move to top-->
<t t-if="cookie_template_id.pop_up_position_top">
<!-- Check the popup position is move to top left-->
<t t-if="cookie_template_id.pop_up_position_top == 'top_left'">
<div class="modal-content oe_structure"
t-att-style="'width: 900px; height:1000px; margin-right: 0px;'">
<!-- Keep this section equivalent to the rendering of the `website.cookies_bar.discrete` client template -->
<section
class="o_colored_level o_cc o_cc1"
t-att-style="'background-color: %s; height: 100px;'% cookie_template_id._get_color(cookie_template_id.cookie_color)">
<div class="container">
<div class="row">
<center>
<p>
<span class="pe-1">
<t t-esc="cookie_template_id.pop_up_text"/>
</span>
<a href="/cookie-policy"
class="o_cookies_bar_text_policy btn btn-link btn-sm px-0">
<t t-esc="cookie_template_id.cookie_policy_btn"/>
</a>
</p>
</center>
</div>
<div class="row">
<div class="btn-group"
role="group">
<a href="#"
id="cookies-consent-essential"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm px-2">
Only essentials
</a>
<a href="#"
id="cookies-consent-all"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.accept_btn_txt"/>
</a>
<a href="#"
id="cookies-close"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.reject_btn_txt"/>
</a>
</div>
</div>
</div>
</section>
</div>
</t>
<!--Check the popup position is move to top right-->
<t t-if="cookie_template_id.pop_up_position_top == 'top_right'">
<div class="modal-content oe_structure"
t-att-style="'width: 900px; height:1000px; margin-left: 1000px;'">
<!-- Keep this section equivalent to the rendering of the `website.cookies_bar.discrete` client template -->
<section
class="o_colored_level o_cc o_cc1"
t-att-style="'background-color: %s; height: 100px;'% cookie_template_id._get_color(cookie_template_id.cookie_color)">
<div class="container">
<div class="row">
<center>
<p>
<span class="pe-1">
<t t-esc="cookie_template_id.pop_up_text"/>
</span>
<a href="/cookie-policy"
class="o_cookies_bar_text_policy btn btn-link btn-sm px-0">
<t t-esc="cookie_template_id.cookie_policy_btn"/>
</a>
</p>
</center>
</div>
<div class="row">
<div class="btn-group"
role="group">
<a href="#"
id="cookies-consent-essential"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm px-2">
Only essentials
</a>
<a href="#"
id="cookies-consent-all"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.accept_btn_txt"/>
</a>
<a href="#"
id="cookies-close"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.reject_btn_txt"/>
</a>
</div>
</div>
</div>
</section>
</div>
</t>
<!-- Check the popup position is move to top center-->
<t t-if="cookie_template_id.pop_up_position_top == 'top_center'">
<div class="modal-content oe_structure"
t-att-style="'width: 900px; height:1000px; margin-left: 500px;'">
<!-- Keep this section equivalent to the rendering of the `website.cookies_bar.discrete` client template -->
<section
class="o_colored_level o_cc o_cc1"
t-att-style="'background-color: %s; height: 100px;'% cookie_template_id._get_color(cookie_template_id.cookie_color)">
<div class="container">
<div class="row">
<center>
<p>
<span class="pe-1">
<t t-esc="cookie_template_id.pop_up_text"/>
</span>
<a href="/cookie-policy"
class="o_cookies_bar_text_policy btn btn-link btn-sm px-0">
<t t-esc="cookie_template_id.cookie_policy_btn"/>
</a>
</p>
</center>
</div>
<div class="row">
<div class="btn-group"
role="group">
<a href="#"
id="cookies-consent-essential"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm px-2">
Only essentials
</a>
<a href="#"
id="cookies-consent-all"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.accept_btn_txt"/>
</a>
<a href="#"
id="cookies-close"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.reject_btn_txt"/>
</a>
</div>
</div>
</div>
</section>
</div>
</t>
<!-- Check the popup position is move to full top-->
<t t-if="cookie_template_id.pop_up_position_top == 'full_top_container'">
<div class="modal-content oe_structure"
t-att-style="'width: 100%; height:1000px; margin-right: 0px;'">
<!-- Keep this section equivalent to the rendering of the `website.cookies_bar.discrete` client template -->
<section
class="o_colored_level o_cc o_cc1"
t-att-style="'background-color: %s; height: 100px;'% cookie_template_id._get_color(cookie_template_id.cookie_color)">
<div class="container">
<div class="row">
<center>
<p>
<span class="pe-1">
<t t-esc="cookie_template_id.pop_up_text"/>
</span>
<a href="/cookie-policy"
class="o_cookies_bar_text_policy btn btn-link btn-sm px-0">
<t t-esc="cookie_template_id.cookie_policy_btn"/>
</a>
</p>
</center>
</div>
<div class="row">
<div class="btn-group"
role="group">
<a href="#"
id="cookies-consent-essential"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm px-2">
Only essentials
</a>
<a href="#"
id="cookies-consent-all"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.accept_btn_txt"/>
</a>
<a href="#"
id="cookies-close"
role="button"
class="js_close_popup btn btn-outline-primary rounded-circle btn-sm">
<t t-esc="cookie_template_id.reject_btn_txt"/>
</a>
</div>
</div>
</div>
</section>
</div>
</t>
</t>
</t>
</div>
</div>
</div>
</xpath>
</template>
</odoo>