Activate UIUX V2 navigation for manager and partner pilots
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
{#
|
||||
UI/UX V2 Phase 1D — Manager pilot navigation
|
||||
|
||||
Presentation-only replacement for the existing manager tab strip.
|
||||
Existing URLs, route protection, dashboard content, forms and page actions
|
||||
are unchanged.
|
||||
#}
|
||||
{% set _manager_path = request.url.path %}
|
||||
{% set navigation_aria_label_v2 = 'Manager workspace navigation' %}
|
||||
{% set navigation_items_v2 = [
|
||||
{
|
||||
'label': 'Dashboard',
|
||||
'url': '/manager/dashboard',
|
||||
'visible': true,
|
||||
'active': _manager_path == '/manager/dashboard'
|
||||
},
|
||||
{
|
||||
'label': 'Team Work Board',
|
||||
'url': '/manager/work',
|
||||
'visible': true,
|
||||
'active': _manager_path.startswith('/manager/work')
|
||||
},
|
||||
{
|
||||
'label': 'Detailed Allocation',
|
||||
'url': '/employees/work',
|
||||
'visible': true,
|
||||
'active': _manager_path.startswith('/employees/work')
|
||||
},
|
||||
{
|
||||
'label': 'Engagement Progress',
|
||||
'url': '/employees/progress',
|
||||
'visible': true,
|
||||
'active': _manager_path.startswith('/employees/progress')
|
||||
},
|
||||
{
|
||||
'label': 'Team Attendance',
|
||||
'url': '/employees/attendance',
|
||||
'visible': true,
|
||||
'active': _manager_path.startswith('/employees/attendance')
|
||||
},
|
||||
{
|
||||
'label': 'Team Leave',
|
||||
'url': '/employees/leave',
|
||||
'visible': true,
|
||||
'active': _manager_path.startswith('/employees/leave')
|
||||
},
|
||||
{
|
||||
'label': 'Alerts',
|
||||
'url': '/alerts',
|
||||
'visible': true,
|
||||
'active': _manager_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="manager">
|
||||
{% include "ui/templates/components/navigation_v2.html" %}
|
||||
{% include "ui/templates/components/mobile_navigation_v2.html" %}
|
||||
</div>
|
||||
Reference in New Issue
Block a user