|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
|
{% extends "ui/templates/base/layout.html" %}
|
|
|
|
|
{% extends "ui/templates/base/layout.html" %}
|
|
|
|
|
{% block content %}
|
|
|
|
|
{% include "ui/templates/components/firm_admin_navigation_v2.html" %}
|
|
|
|
|
<section class="space-y-6">
|
|
|
|
|
<div class="rounded-3xl border border-slate-200 bg-white p-6 shadow-soft">
|
|
|
|
|
<div class="flex flex-col gap-4 lg:flex-row lg:items-center lg:justify-between">
|
|
|
|
@@ -27,7 +28,7 @@
|
|
|
|
|
('wizards','Wizards'),
|
|
|
|
|
('audit-logs','Audit Logs')
|
|
|
|
|
] %}
|
|
|
|
|
<div class="rounded-3xl border border-slate-200 bg-white p-2 shadow-soft">
|
|
|
|
|
<div class="hidden rounded-3xl border border-slate-200 bg-white p-2 shadow-soft sm:block">
|
|
|
|
|
<div class="flex gap-2 overflow-x-auto" id="firm-admin-tabs">
|
|
|
|
|
{% for code, label in tabs %}
|
|
|
|
|
<button type="button" data-tab="{{ code }}" class="firm-admin-tab whitespace-nowrap rounded-2xl px-4 py-2 text-sm font-semibold transition {% if active_tab == code %}bg-brand-600 text-white{% else %}text-slate-600 hover:bg-slate-100{% endif %}">{{ label }}</button>
|
|
|
|
@@ -35,6 +36,22 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<details id="firm-admin-mobile-menu" class="group overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-soft sm:hidden">
|
|
|
|
|
<summary class="flex cursor-pointer list-none items-center justify-between gap-3 px-4 py-3 text-sm font-semibold text-slate-800">
|
|
|
|
|
<span class="inline-flex items-center gap-2">
|
|
|
|
|
<svg class="h-5 w-5 group-open:hidden" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path stroke-linecap="round" d="M4 6h16M4 12h16M4 18h16" /></svg>
|
|
|
|
|
<svg class="hidden h-5 w-5 group-open:block" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true"><path stroke-linecap="round" d="M6 6l12 12M18 6 6 18" /></svg>
|
|
|
|
|
<span>Dashboard Menu</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span class="text-xs font-medium text-slate-500">Firm administration sections</span>
|
|
|
|
|
</summary>
|
|
|
|
|
<div class="space-y-1 border-t border-slate-100 bg-slate-50/80 p-3">
|
|
|
|
|
{% for code, label in tabs %}
|
|
|
|
|
<button type="button" data-tab="{{ code }}" class="firm-admin-tab block w-full rounded-xl px-3 py-2.5 text-left text-sm font-semibold transition {% if active_tab == code %}bg-brand-600 text-white{% else %}bg-white text-slate-700 hover:bg-slate-100{% endif %}">{{ label }}</button>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<div id="firm-admin-panel" class="min-h-[24rem]">
|
|
|
|
|
{% include "modules/firm_admin_dashboard/templates/firm_admin_dashboard/partials/" ~ active_tab ~ ".html" ignore missing %}
|
|
|
|
|
</div>
|
|
|
|
@@ -68,7 +85,11 @@
|
|
|
|
|
panel.innerHTML = '<div class="rounded-3xl border border-red-200 bg-red-50 p-6 text-sm font-semibold text-red-800 shadow-soft">Unable to load tab. Please refresh the page.</div>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
buttons.forEach(btn => btn.addEventListener('click', () => loadTab(btn.dataset.tab)));
|
|
|
|
|
buttons.forEach(btn => btn.addEventListener('click', () => {
|
|
|
|
|
loadTab(btn.dataset.tab);
|
|
|
|
|
const mobileMenu = document.getElementById('firm-admin-mobile-menu');
|
|
|
|
|
if (mobileMenu) mobileMenu.open = false;
|
|
|
|
|
}));
|
|
|
|
|
})();
|
|
|
|
|
</script>
|
|
|
|
|
{% endblock %}
|
|
|
|
|