Add labels for various fields across HR resources to improve localization and user experience.
This commit is contained in:
@@ -39,10 +39,12 @@ class DocumentsRelationManager extends RelationManager
|
||||
return $schema
|
||||
->components([
|
||||
Select::make('document_type')
|
||||
->label(__('hr.fields.document_type'))
|
||||
->options(DocumentType::class)
|
||||
->required()
|
||||
->native(false),
|
||||
TextInput::make('title')
|
||||
->label(__('hr.fields.title'))
|
||||
->required()
|
||||
->maxLength(255),
|
||||
HrForm::fileUpload('file_path')
|
||||
@@ -65,9 +67,11 @@ class DocumentsRelationManager extends RelationManager
|
||||
->formatStateUsing(fn (DocumentType $state): string => $state->label())
|
||||
->sortable(),
|
||||
TextColumn::make('title')
|
||||
->label(__('hr.fields.title'))
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('uploaded_at')
|
||||
->label(__('hr.fields.uploaded_at'))
|
||||
->dateTime()
|
||||
->sortable()
|
||||
->toggleable(isToggledHiddenByDefault: true),
|
||||
|
||||
Reference in New Issue
Block a user