diff --git a/src/components/users/profile-form.tsx b/src/components/users/profile-form.tsx index 7558af6..d7d473e 100644 --- a/src/components/users/profile-form.tsx +++ b/src/components/users/profile-form.tsx @@ -275,7 +275,7 @@ export function ProfileForm(props: { {error() &&

{error()}

}
- +
); diff --git a/src/i18n/locales/en.ts b/src/i18n/locales/en.ts index 4d257aa..2bc9076 100644 --- a/src/i18n/locales/en.ts +++ b/src/i18n/locales/en.ts @@ -1687,6 +1687,9 @@ export const en: Dict = { "admin.username": "Username", "admin.id": "Id", "admin.role": "Role", + "admin.personalDetails": "Personal details", + "admin.contactDetails": "Contact details", + "admin.accountAccess": "Account and access", "admin.directory": "Directory", "admin.helpTitle": "Role hierarchy", "admin.helpBody": diff --git a/src/i18n/locales/tr.ts b/src/i18n/locales/tr.ts index 39c29ac..1bfb26d 100644 --- a/src/i18n/locales/tr.ts +++ b/src/i18n/locales/tr.ts @@ -1683,6 +1683,9 @@ export const tr: Dict = { "admin.username": "Kullanıcı adı", "admin.id": "Id", "admin.role": "Rol", + "admin.personalDetails": "Kişisel bilgiler", + "admin.contactDetails": "İletişim bilgileri", + "admin.accountAccess": "Hesap ve yetki", "admin.directory": "Kayıt listesi", "admin.helpTitle": "Rol hiyerarşisi", "admin.helpBody": diff --git a/src/i18n/messages.ts b/src/i18n/messages.ts index c20bda1..04634b1 100644 --- a/src/i18n/messages.ts +++ b/src/i18n/messages.ts @@ -1580,6 +1580,9 @@ export type MessageKey = | "admin.username" | "admin.id" | "admin.role" + | "admin.personalDetails" + | "admin.contactDetails" + | "admin.accountAccess" | "admin.directory" | "admin.helpTitle" | "admin.helpBody" diff --git a/src/pages/admin-user-detail-page.tsx b/src/pages/admin-user-detail-page.tsx index b8e6a19..8b4ee11 100644 --- a/src/pages/admin-user-detail-page.tsx +++ b/src/pages/admin-user-detail-page.tsx @@ -7,8 +7,10 @@ import type { MessageKey } from "@/i18n/messages"; import { PageHeader } from "@/components/layout/page-header"; import { Breadcrumbs } from "@/components/layout/breadcrumbs"; import { RouteGuard } from "@/components/layout/route-guard"; +import { RoleBadge } from "@/components/layout/role-badge"; import { ParentStudentsPanel } from "@/components/users/parent-students-panel"; import { AdminUserEditPanel } from "@/components/users/admin-user-edit-panel"; +import { UserAvatar } from "@/components/users/user-avatar"; import { Alert } from "@/components/ui/alert"; import { Button } from "@/components/ui/button"; import { ConfirmDialog } from "@/components/ui/confirm-dialog"; @@ -67,73 +69,109 @@ function AdminUserDetailContent() { {error()} -
+
- - - - - - - - - - } - /> -
+
+ +
+ + + + + + + + + + } + /> +
+ +
+
+
+ -
- - - - - - - - - - - - - - - -
-

{t("admin.role")}

-
- - +
+
+

{t("admin.personalDetails")}

+
+ + + + + + + + +
+
+ +
+

{t("admin.contactDetails")}

+
+ + +
+ +
+
+
+ + +
+
+
+ +
+

{t("admin.accountAccess")}

+
+ + +
+

{t("admin.role")}

+
+ + +