commit
This commit is contained in:
25
src/app/dashboard/employee-directory/create/page.tsx
Normal file
25
src/app/dashboard/employee-directory/create/page.tsx
Normal file
@@ -0,0 +1,25 @@
|
||||
import PageContainer from '@/components/layout/page-container';
|
||||
import EmployeeForm from '@/features/employees/components/employee-form';
|
||||
import { requireHRDDashboardAccess } from '@/lib/auth/page-guards';
|
||||
|
||||
export const metadata = {
|
||||
title: 'Dashboard: Create Employee'
|
||||
};
|
||||
|
||||
export default async function Page() {
|
||||
const access = await requireHRDDashboardAccess();
|
||||
|
||||
return (
|
||||
<PageContainer
|
||||
pageTitle='สร้างรายชื่อพนักงาน'
|
||||
pageDescription='เพิ่มข้อมูลพนักงานเข้าสู่ Employee Directory'
|
||||
>
|
||||
<EmployeeForm
|
||||
initialData={null}
|
||||
pageTitle='สร้างรายชื่อพนักงาน'
|
||||
organizationName={access.organization.name}
|
||||
returnPath='/dashboard/employee-directory'
|
||||
/>
|
||||
</PageContainer>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user