28 lines
1.5 KiB
XML
28 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
|
|
<!-- Add "My Schedule" tile inside the existing portal card grid -->
|
|
<template id="portal_my_home_schedule" name="Portal My Home: Schedule"
|
|
inherit_id="fusion_authorizer_portal.portal_my_home_authorizer" priority="45">
|
|
<!-- Navigate up from a known card to the ROW div, then append inside (not inside any t-if) -->
|
|
<xpath expr="//a[@href='/my/funding-claims']/ancestor::div[hasclass('row') and hasclass('g-3') and hasclass('mb-4')]" position="inside">
|
|
<div class="col-md-6">
|
|
<a href="/my/schedule" class="card h-100 border-0 shadow-sm text-decoration-none" style="border-radius: 12px; min-height: 100px;">
|
|
<div class="card-body d-flex align-items-center p-4">
|
|
<div class="me-3">
|
|
<div class="rounded-circle d-flex align-items-center justify-content-center" t-att-style="'width: 50px; height: 50px; background: ' + (fc_gradient or 'linear-gradient(135deg, #5ba848 0%, #3a8fb7 60%, #2e7aad 100%)')">
|
|
<i class="fa fa-calendar-check-o fa-lg text-white" title="Schedule"/>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<h5 class="mb-1 text-dark">My Schedule</h5>
|
|
<small class="text-muted">View and book appointments</small>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
</xpath>
|
|
</template>
|
|
|
|
</odoo>
|