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,6 +34,7 @@ public function form(Schema $schema): Schema
|
||||
return $schema
|
||||
->components([
|
||||
DatePicker::make('gift_date')
|
||||
->label(__('hr.fields.gift_date'))
|
||||
->required()
|
||||
->default(now()),
|
||||
TextInput::make('gift_name')
|
||||
@@ -41,6 +42,7 @@ public function form(Schema $schema): Schema
|
||||
->required()
|
||||
->maxLength(255),
|
||||
TextInput::make('value')
|
||||
->label(__('hr.fields.value'))
|
||||
->required()
|
||||
->numeric()
|
||||
->prefix('TMT')
|
||||
@@ -48,6 +50,7 @@ public function form(Schema $schema): Schema
|
||||
->step(0.01)
|
||||
->default(0),
|
||||
Textarea::make('reason')
|
||||
->label(__('hr.fields.reason'))
|
||||
->rows(3)
|
||||
->columnSpanFull(),
|
||||
]);
|
||||
@@ -59,6 +62,7 @@ public function table(Table $table): Table
|
||||
->recordTitleAttribute('gift_name')
|
||||
->columns([
|
||||
TextColumn::make('gift_date')
|
||||
->label(__('hr.fields.gift_date'))
|
||||
->date()
|
||||
->sortable(),
|
||||
TextColumn::make('gift_name')
|
||||
@@ -66,9 +70,11 @@ public function table(Table $table): Table
|
||||
->searchable()
|
||||
->sortable(),
|
||||
TextColumn::make('value')
|
||||
->label(__('hr.fields.value'))
|
||||
->money('TMT')
|
||||
->sortable(),
|
||||
TextColumn::make('reason')
|
||||
->label(__('hr.fields.reason'))
|
||||
->limit(40)
|
||||
->toggleable(),
|
||||
])
|
||||
|
||||
Reference in new issue
Block a user