94 lines
4.5 KiB
HTML
94 lines
4.5 KiB
HTML
{#
|
|
UI/UX V2 Phase 1E — Firm Admin workspace navigation.
|
|
Presentation only: existing URLs and route-level permissions remain authoritative.
|
|
#}
|
|
{% set _firm_admin_path = request.url.path %}
|
|
{% set navigation_aria_label_v2 = 'Firm administration navigation' %}
|
|
{% set navigation_items_v2 = [
|
|
{
|
|
'label': 'Dashboard',
|
|
'url': '/firm-admin/dashboard',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/firm-admin/dashboard')
|
|
},
|
|
{
|
|
'label': 'Clients',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/clients'),
|
|
'children': [
|
|
{'label': 'Client List', 'url': '/clients', 'active': _firm_admin_path == '/clients'},
|
|
{'label': 'Add Client', 'url': '/clients/new', 'active': _firm_admin_path.startswith('/clients/new')},
|
|
{'label': 'Import Clients', 'url': '/clients/import', 'active': _firm_admin_path.startswith('/clients/import')},
|
|
{'label': 'Export Clients', 'url': '/clients/export', 'active': _firm_admin_path.startswith('/clients/export')}
|
|
]
|
|
},
|
|
{
|
|
'label': 'Services',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/services'),
|
|
'children': [
|
|
{'label': 'Firm Services', 'url': '/services', 'active': _firm_admin_path == '/services'},
|
|
{'label': 'Service Catalogue', 'url': '/services/catalogue', 'active': _firm_admin_path.startswith('/services/catalogue')},
|
|
{'label': 'Task Templates', 'url': '/services/templates', 'active': _firm_admin_path.startswith('/services/templates')},
|
|
{'label': 'Bulk Imports', 'url': '/services/bulk-imports', 'active': _firm_admin_path.startswith('/services/bulk-imports')}
|
|
]
|
|
},
|
|
{
|
|
'label': 'Engagements',
|
|
'url': '/services/engagements',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/services/engagements')
|
|
},
|
|
{
|
|
'label': 'Team',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/employees') or _firm_admin_path.startswith('/consultants') or _firm_admin_path.startswith('/firm-admin/users'),
|
|
'children': [
|
|
{'label': 'Employees', 'url': '/employees', 'active': _firm_admin_path == '/employees'},
|
|
{'label': 'Add Employee', 'url': '/employees/new', 'active': _firm_admin_path.startswith('/employees/new')},
|
|
{'label': 'Work Allocation', 'url': '/employees/work', 'active': _firm_admin_path.startswith('/employees/work')},
|
|
{'label': 'Attendance', 'url': '/employees/attendance', 'active': _firm_admin_path.startswith('/employees/attendance')},
|
|
{'label': 'Leave', 'url': '/employees/leave', 'active': _firm_admin_path.startswith('/employees/leave')},
|
|
{'label': 'Consultants', 'url': '/consultants', 'active': _firm_admin_path.startswith('/consultants')},
|
|
{'label': 'Add Partner / Manager / Staff', 'url': '/firm-admin/dashboard?tab=users', 'active': _firm_admin_path.startswith('/firm-admin/users')}
|
|
]
|
|
},
|
|
{
|
|
'label': 'Documents',
|
|
'url': '/documents',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/documents')
|
|
},
|
|
{
|
|
'label': 'Billing',
|
|
'url': '/billing',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/billing')
|
|
},
|
|
{
|
|
'label': 'Firm Setup',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/system-settings') or _firm_admin_path.startswith('/firm-admin/users'),
|
|
'children': [
|
|
{'label': 'Settings Dashboard', 'url': '/system-settings', 'active': _firm_admin_path == '/system-settings'},
|
|
{'label': 'Branches', 'url': '/system-settings/branches', 'active': _firm_admin_path.startswith('/system-settings/branches')},
|
|
{'label': 'Users', 'url': '/system-settings/users', 'active': _firm_admin_path.startswith('/system-settings/users')},
|
|
{'label': 'Financial Years', 'url': '/system-settings/financial-years', 'active': _firm_admin_path.startswith('/system-settings/financial-years')},
|
|
{'label': 'Branding', 'url': '/system-settings/branding', 'active': _firm_admin_path.startswith('/system-settings/branding')},
|
|
{'label': 'Audit Logs', 'url': '/system-settings/audit-logs', 'active': _firm_admin_path.startswith('/system-settings/audit-logs')}
|
|
]
|
|
},
|
|
{
|
|
'label': 'Alerts',
|
|
'url': '/alerts',
|
|
'visible': true,
|
|
'active': _firm_admin_path.startswith('/alerts'),
|
|
'badge': unread_alert_count if unread_alert_count is defined and unread_alert_count > 0 else none
|
|
}
|
|
] %}
|
|
|
|
<div class="mb-6 overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-soft" data-uiux-v2-pilot="firm-admin">
|
|
{% include "ui/templates/components/navigation_v2.html" %}
|
|
{% include "ui/templates/components/mobile_navigation_v2.html" %}
|
|
</div>
|