Add a shared login button to all 11 custom navigation templates, linking to /web/login with /my as the post-login destination. Style it in ivory and gold with visible keyboard focus and allow navigation to wrap. Validated template insertion points, SCSS compilation, and desktop/mobile browser previews. Confirmed the button opens the login form with the member portal redirect.
134 lines
6.3 KiB
XML
134 lines
6.3 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="tncsc-member-login">
|
|
<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_product_summer_picnic_custom_header_only"
|
|
inherit_id="tncsc_deployment.view_page_product_summer_picnic"
|
|
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_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>
|
|
|
|
</odoo>
|