diff --git a/frontend/src/api/students.ts b/frontend/src/api/students.ts index 083fae8..8e9d734 100644 --- a/frontend/src/api/students.ts +++ b/frontend/src/api/students.ts @@ -11,6 +11,7 @@ export interface Student { first_name: string last_name: string index: number + pesel: string mode: boolean group?: any } diff --git a/frontend/src/views/coordinator/AddStudent.tsx b/frontend/src/views/coordinator/AddStudent.tsx index 62365cc..b6374da 100644 --- a/frontend/src/views/coordinator/AddStudent.tsx +++ b/frontend/src/views/coordinator/AddStudent.tsx @@ -87,6 +87,23 @@ const AddStudent = () => { Indeks musi mieć 6 cyfr )} +
+ + + {errors.pesel?.type === 'pattern' && ( + Pesel musi mieć 11 cyfr + )} +