Add labels for various fields across HR resources to improve localization and user experience.
This commit is contained in:
@@ -14,12 +14,14 @@ class SickLeaveForm
|
||||
return $schema
|
||||
->components([
|
||||
HrForm::employeeSelect(),
|
||||
HrForm::leaveDatePicker('start_date', __(hr.fields.start_date)),
|
||||
HrForm::leaveDatePicker('end_date', __(hr.fields.end_date)),
|
||||
HrForm::leaveDatePicker('start_date', __('hr.fields.start_date')),
|
||||
HrForm::leaveDatePicker('end_date', __('hr.fields.end_date')),
|
||||
HrForm::leaveDaysDisplay(),
|
||||
TextInput::make('medical_institution')
|
||||
->label(__('hr.fields.institution'))
|
||||
->maxLength(255),
|
||||
Textarea::make('reason')
|
||||
->label(__('hr.fields.reason'))
|
||||
->rows(3)
|
||||
->columnSpanFull(),
|
||||
HrForm::fileUpload('document_path')
|
||||
|
||||
@@ -15,25 +15,34 @@ class SickLeaveInfolist
|
||||
TextEntry::make('employee.id')
|
||||
->label(__('hr.fields.employee')),
|
||||
TextEntry::make('start_date')
|
||||
->label(__('hr.fields.start_date'))
|
||||
->date(),
|
||||
TextEntry::make('end_date')
|
||||
->label(__('hr.fields.end_date'))
|
||||
->date(),
|
||||
TextEntry::make('days')
|
||||
->label(__('hr.fields.days'))
|
||||
->numeric(),
|
||||
TextEntry::make('medical_institution')
|
||||
->label(__('hr.fields.institution'))
|
||||
->placeholder('-'),
|
||||
TextEntry::make('reason')
|
||||
->label(__('hr.fields.reason'))
|
||||
->placeholder('-')
|
||||
->columnSpanFull(),
|
||||
TextEntry::make('document_path')
|
||||
->label(__('hr.fields.medical_document'))
|
||||
->placeholder('-'),
|
||||
TextEntry::make('created_at')
|
||||
->label(__('hr.fields.created_at'))
|
||||
->dateTime()
|
||||
->placeholder('-'),
|
||||
TextEntry::make('updated_at')
|
||||
->label(__('hr.fields.updated_at'))
|
||||
->dateTime()
|
||||
->placeholder('-'),
|
||||
TextEntry::make('deleted_at')
|
||||
->label(__('hr.fields.deleted_at'))
|
||||
->dateTime()
|
||||
->visible(fn (SickLeave $record): bool => $record->trashed()),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user