{{/* Admin surface — full admin panel with category/section navigation. Categories and sections mirror the SPA's ADMIN_SECTIONS structure. Server-rendered sections: roles, routing, providers, models, teams, users, settings. Hybrid sections: container div + JS loader fills content. */}} {{define "surface-admin"}}
{{/* ── Category bar (top) ───────────────── */}}
{{$cat := .Data.Category}}
← Chat
{{/* ── Section sidebar ──────────────── */}} {{/* ── Content area ─────────────────── */}}
{{if eq .Section "roles"}}{{template "admin-roles" .}} {{else if eq .Section "routing"}}{{template "admin-routing" .}} {{else if eq .Section "providers"}}{{template "admin-providers" .}} {{else if eq .Section "models"}}{{template "admin-models" .}} {{else if eq .Section "teams"}}{{template "admin-teams" .}} {{else if eq .Section "users"}}{{template "admin-users" .}} {{else if eq .Section "settings"}}{{template "admin-settings" .}} {{else}} {{/* Hybrid: container for JS-loaded sections */}}
Loading {{.Section}}…
{{end}}
{{end}} {{define "css-admin"}} {{end}} {{define "scripts-admin"}} {{end}}