Enhance EmployeeForm by adding native date picker support for hire and termination dates, improving localization and user experience.
This commit is contained in:
@@ -99,9 +99,13 @@ class EmployeeForm
|
|||||||
->native(false),
|
->native(false),
|
||||||
DatePicker::make('hire_date')
|
DatePicker::make('hire_date')
|
||||||
->label(__('hr.fields.hire_date'))
|
->label(__('hr.fields.hire_date'))
|
||||||
->required(),
|
->required()
|
||||||
|
->native(false),
|
||||||
|
|
||||||
DatePicker::make('termination_date')
|
DatePicker::make('termination_date')
|
||||||
->label(__('hr.fields.termination_date')),
|
->label(__('hr.fields.termination_date'))
|
||||||
|
->native(false),
|
||||||
|
|
||||||
Textarea::make('notes')
|
Textarea::make('notes')
|
||||||
->label(__('hr.fields.notes'))
|
->label(__('hr.fields.notes'))
|
||||||
->rows(4)
|
->rows(4)
|
||||||
|
|||||||
Reference in New Issue
Block a user