diff --git a/app/modules/firm_admin_dashboard/ui.py b/app/modules/firm_admin_dashboard/ui.py index ac48308..fd6c831 100644 --- a/app/modules/firm_admin_dashboard/ui.py +++ b/app/modules/firm_admin_dashboard/ui.py @@ -1,4 +1,4 @@ -from __future__ import annotations +from __future__ import annotations from fastapi import APIRouter, Request @@ -13,15 +13,15 @@ from app.modules.firm_admin_dashboard.service import build_dashboard_payload, ca router = APIRouter(prefix="/firm-admin", tags=["firm-admin-dashboard-ui"]) VALID_TABS = { - "overview": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/overview.html", - "branches": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/branches.html", - "users": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/users.html", - "firm-settings": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/firm_settings.html", - "services": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/services.html", - "financial-years": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/financial_years.html", - "reports": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/reports.html", - "wizards": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/wizards.html", - "audit-logs": "firm_admin_dashboard/templates/firm_admin_dashboard/partials/audit_logs.html", + "overview": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/overview.html", + "branches": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/branches.html", + "users": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/users.html", + "firm-settings": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/firm_settings.html", + "services": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/services.html", + "financial-years": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/financial_years.html", + "reports": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/reports.html", + "wizards": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/wizards.html", + "audit-logs": "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/audit_logs.html", } @@ -72,3 +72,4 @@ def dashboard_tab(request: Request, tab_name: str): return templates.TemplateResponse(VALID_TABS[active_tab], _ctx(request, db, current_user, active_tab=active_tab)) finally: db.close() +