Add labels for various fields across HR resources to improve localization and user experience.
This commit is contained in:
1 parent
8147f23750
commit
e3ec83686c
52 files changed
+363
-26
No files matched your search
@@ -34,12 +34,14 @@ public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
->components([
|
||||
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')
|
||||
@@ -55,15 +57,19 @@ public function table(Table $table): Table
|
||||
->recordTitleAttribute('start_date')
|
||||
->columns([
|
||||
TextColumn::make('start_date')
|
||||
->label(__('hr.fields.start_date'))
|
||||
->date()
|
||||
->sortable(),
|
||||
TextColumn::make('end_date')
|
||||
->label(__('hr.fields.end_date'))
|
||||
->date()
|
||||
->sortable(),
|
||||
TextColumn::make('days')
|
||||
->label(__('hr.fields.days'))
|
||||
->numeric()
|
||||
->sortable(),
|
||||
TextColumn::make('medical_institution')
|
||||
->label(__('hr.fields.institution'))
|
||||
->searchable()
|
||||
->toggleable(),
|
||||
IconColumn::make('document_path')
|
||||
|
||||
Reference in new issue
Block a user