TNCSC_Odoo/addons/tncsc_deployment/views/website_header_overrides.xml
Alaguraj0361 0f462ad21a
Some checks failed
CI / Brand-leak check (push) Has been cancelled
CI / flake8 / pylint-odoo / manifest completeness (push) Has been cancelled
CI / Install all modules with --test-enable (push) Has been cancelled
add TNCSC deployment module, community add-ons, role guides, and website navigation overrides
2026-09-28 19:43:48 +05:30

289 lines
17 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="website_member_login_button" name="TNCSC Member Login Button">
<a href="/web/login?redirect=/my" class="btn btn-warning btn-sm rounded-pill px-3 fw-bold text-dark tncsc-member-login" style="background: linear-gradient(135deg, #e5a93c 0%, #d19b33 100%) !important; color: #120735 !important; font-weight: 700 !important; border: 1px solid #d19b33 !important; text-decoration: none !important; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 2px 8px rgba(229, 169, 60, 0.3);">
<i class="fa fa-user" aria-hidden="true"/> Member Login
</a>
</template>
<!-- These pages provide their own TNCSC header and navigation.
Keep overrides outside the noupdate page seeds so upgrades apply
the fix without replacing administrator-edited page content. -->
<template id="view_page_home_custom_header_only"
inherit_id="tncsc_deployment.view_page_home"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_about_custom_header_only"
inherit_id="tncsc_deployment.view_page_about"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_tamil_nadu_custom_header_only"
inherit_id="tncsc_deployment.view_page_tamil_nadu"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_board_custom_header_only"
inherit_id="tncsc_deployment.view_page_board"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_membership_custom_header_only"
inherit_id="tncsc_deployment.view_page_membership"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_membership_benefits_custom_header_only"
inherit_id="tncsc_deployment.view_page_membership_benefits"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_membership_registration_custom_header_only"
inherit_id="tncsc_deployment.view_page_membership_registration"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_events_custom_header_only"
inherit_id="tncsc_deployment.view_page_events"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_membership_join_custom_header_only"
inherit_id="tncsc_deployment.view_page_membership_join"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
</template>
<template id="view_page_tamil_school_custom_header_only"
inherit_id="tncsc_deployment.view_page_tamil_school"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<template id="view_page_contact_custom_header_only"
inherit_id="tncsc_deployment.view_page_contact"
name="Use TNCSC navigation without the default website header">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[hasclass('tncsc-hero-nav')]//a[@href='/contact']" position="after">
<t t-call="tncsc_deployment.website_member_login_button"/>
</xpath>
</template>
<!-- School Registration Navigation & Branding -->
<template id="tncsc_school_reg_header_nav" name="TNCSC School Registration Navigation">
<div class="tncsc-top-header" style="background-color: #120735; padding: 14px 20px; text-align: center;">
<h1 style="font-size: 1.55rem; font-weight: 700; color: #ffffff; margin: 0; line-height: 1.2;">தமிழ்நாடு கலாச்சார சங்கம்</h1>
<p style="font-size: 1.1rem; font-weight: 400; color: #B8B2E6; margin: 2px 0 0 0;">Tamil Nadu Cultural Society of Canada</p>
</div>
<nav class="navbar navbar-expand-lg navbar-dark" style="background-color: #1c0d48; border-bottom: 2px solid #e5a93c; padding: 8px 24px;">
<div class="container-fluid">
<a class="navbar-brand d-flex align-items-center gap-2" href="/">
<img src="/tncsc_deployment/static/src/img/brand/logo.png" alt="TNCSC Logo" style="height: 38px; width: auto;"/>
<span class="fw-bold text-white small d-none d-sm-inline">TNCSC</span>
</a>
<div class="d-flex align-items-center gap-2 ms-auto">
<a href="/tamil-school" class="btn btn-outline-light btn-sm rounded-pill px-3">
<i class="fa fa-graduation-cap me-1"></i> Tamil School
</a>
<a href="/membership/registration" class="btn btn-outline-warning btn-sm rounded-pill px-3">
<i class="fa fa-id-card me-1"></i> Membership
</a>
<t t-call="tncsc_deployment.website_member_login_button"/>
</div>
</div>
</nav>
</template>
<template id="view_school_reg_step_parent_header" inherit_id="community_school.registration_step_parent" name="TNCSC School Reg Header Parent">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[@id='wrap']" position="before">
<t t-call="tncsc_deployment.tncsc_school_reg_header_nav"/>
</xpath>
</template>
<template id="view_school_reg_step_student_header" inherit_id="community_school.registration_step_student" name="TNCSC School Reg Header Student">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[@id='wrap']" position="before">
<t t-call="tncsc_deployment.tncsc_school_reg_header_nav"/>
</xpath>
</template>
<template id="view_school_reg_step_class_header" inherit_id="community_school.registration_step_class" name="TNCSC School Reg Header Class">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[@id='wrap']" position="before">
<t t-call="tncsc_deployment.tncsc_school_reg_header_nav"/>
</xpath>
</template>
<template id="view_school_reg_done_header" inherit_id="community_school.registration_done" name="TNCSC School Reg Header Done">
<xpath expr="//t[@t-call='website.layout']" position="inside">
<t t-set="no_header" t-value="True"/>
</xpath>
<xpath expr="//div[@id='wrap']" position="before">
<t t-call="tncsc_deployment.tncsc_school_reg_header_nav"/>
</xpath>
</template>
<!-- Odoo's stock footer (shown on built-in pages such as event
registration, login and school registration) ships demo content:
dead "#" links, info@yourcompany.example.com, a 555 phone number and
X/LinkedIn icons TNCSC has no profiles for. A higher priority than
website.footer_custom (16) makes this replace it even where the
website editor has made a website-specific copy of that view. -->
<template id="tncsc_footer" inherit_id="website.layout" name="TNCSC Footer" priority="90">
<xpath expr="//footer[@id='bottom']" position="attributes">
<attribute name="style">background-color: #120735 !important; color: #ffffff;</attribute>
<attribute name="class" remove="bg-light" separator=" "/>
</xpath>
<xpath expr="//div[@id='footer']" position="replace">
<div id="footer" class="oe_structure oe_structure_solo text-break" t-if="not no_footer" style="background-color: #120735; color: #ffffff;">
<section class="pt48 pb32" style="background-color: #120735; color: #cbd5e1;">
<div class="container">
<div class="row">
<div class="col-lg-3 pt16 pb16">
<h5 style="color: #e5a93c; font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; letter-spacing: 0.5px;">Useful Links</h5>
<ul class="list-unstyled">
<li class="mb-2"><a href="/" style="color: #cbd5e1; text-decoration: none; transition: color 0.2s ease;">Home</a></li>
<li class="mb-2"><a href="/about" style="color: #cbd5e1; text-decoration: none; transition: color 0.2s ease;">About Us</a></li>
<li class="mb-2"><a href="/event" style="color: #cbd5e1; text-decoration: none; transition: color 0.2s ease;">Events</a></li>
<li class="mb-2"><a href="/membership/registration" style="color: #cbd5e1; text-decoration: none; transition: color 0.2s ease;">Membership</a></li>
<li class="mb-2"><a href="/tamil-school" style="color: #cbd5e1; text-decoration: none; transition: color 0.2s ease;">Tamil Class</a></li>
<li class="mb-2"><a href="/contact" style="color: #cbd5e1; text-decoration: none; transition: color 0.2s ease;">Contact</a></li>
</ul>
</div>
<div class="col-lg-5 pt16 pb16">
<h5 style="color: #e5a93c; font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; letter-spacing: 0.5px;">About TNCSC</h5>
<p style="color: #cbd5e1; font-size: 0.95rem; line-height: 1.7;">A not-for-profit Ontario corporation serving Tamils of Indian origin in Canada
since 1997, preserving and promoting our language, heritage and culture.</p>
</div>
<div class="col-lg-3 offset-lg-1 pt16 pb16">
<h5 style="color: #e5a93c; font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; letter-spacing: 0.5px;">Connect with us</h5>
<ul class="list-unstyled mb-4">
<li class="mb-2"><i class="fa fa-comment fa-fw me-2" style="color: #e5a93c;"/><a href="/contact" style="color: #cbd5e1; text-decoration: none;">Contact us</a></li>
<li t-if="res_company.email" class="mb-2">
<i class="fa fa-envelope fa-fw me-2" style="color: #e5a93c;"/><a t-attf-href="mailto:#{res_company.email}" t-out="res_company.email" style="color: #cbd5e1; text-decoration: none;"/>
</li>
<li t-if="res_company.phone" class="mb-2">
<i class="fa fa-phone fa-fw me-2" style="color: #e5a93c;"/><a t-attf-href="tel:#{res_company.phone}" t-out="res_company.phone" style="color: #cbd5e1; text-decoration: none;"/>
</li>
</ul>
<div class="s_social_media text-start d-flex gap-3">
<a t-if="website.social_facebook" href="/website/social/facebook" target="_blank" rel="noopener" aria-label="Facebook" style="color: #e5a93c; font-size: 1.3rem;">
<i class="fa fa-facebook"/>
</a>
<a t-if="website.social_youtube" href="/website/social/youtube" target="_blank" rel="noopener" aria-label="YouTube" style="color: #e5a93c; font-size: 1.3rem;">
<i class="fa fa-youtube-play"/>
</a>
<a t-if="website.social_instagram" href="/website/social/instagram" target="_blank" rel="noopener" aria-label="Instagram" style="color: #e5a93c; font-size: 1.3rem;">
<i class="fa fa-instagram"/>
</a>
</div>
</div>
</div>
</div>
</section>
</div>
</xpath>
<xpath expr="//div[hasclass('o_footer_copyright')]" position="replace">
<div class="o_footer_copyright" style="background-color: #0c0424 !important; border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 18px 0; color: #94a3b8;">
<div class="container">
<div class="row align-items-center row-gap-2">
<div class="col-md-8 text-center text-md-start small">
<span>Copyright &amp;copy; 2026 Tamil Nadu Cultural Society of Canada. All rights reserved.</span>
</div>
<div class="col-md-4 text-center text-md-end small">
<span style="color: #e5a93c; font-weight: 600;">Preserving Tamil Culture Since 1997</span>
</div>
</div>
</div>
</div>
</xpath>
</template>
<!-- Odoo's stock header (on built-in pages such as login, event and
school registration) links its button to the stock /contactus page
and shows a demo phone number. TNCSC publishes no phone number, so
show the company email instead. -->
<template id="tncsc_header_call_to_action" inherit_id="website.header_call_to_action" name="TNCSC Header Call to Action">
<xpath expr="//a[hasclass('btn_cta')]" position="attributes">
<attribute name="href">/contact</attribute>
</xpath>
</template>
<template id="tncsc_header_text_element" inherit_id="website.header_text_element" name="TNCSC Header Text element">
<xpath expr="//li" position="replace">
<li t-if="res_company.email" t-attf-class="#{_item_class}">
<div t-attf-class="s_text_block #{_div_class}" data-name="Text">
<a t-attf-href="mailto:#{res_company.email}" class="nav-link o_nav-link_secondary p-2">
<i class="fa fa-1x fa-fw fa-envelope me-1"/>
<small t-out="res_company.email"/>
</a>
</div>
</li>
</xpath>
</template>
</odoo>