translate base
This commit is contained in:
@@ -19,7 +19,7 @@ class UserForm
|
||||
->required()
|
||||
->maxLength(255),
|
||||
TextInput::make('email')
|
||||
->label('Email address')
|
||||
->label(__('hr.fields.email_address'))
|
||||
->email()
|
||||
->required()
|
||||
->maxLength(255)
|
||||
@@ -34,7 +34,14 @@ class UserForm
|
||||
->relationship('department', 'name')
|
||||
->searchable()
|
||||
->preload()
|
||||
->label('Department (for managers)'),
|
||||
->label(__('hr.fields.department_for_managers')),
|
||||
Select::make('locale')
|
||||
->label(__('hr.fields.locale'))
|
||||
->options(collect(config('hr.supported_locales'))
|
||||
->mapWithKeys(fn (string $locale): array => [$locale => config('hr.locale_labels')[$locale]])
|
||||
->all())
|
||||
->required()
|
||||
->default(config('hr.default_locale')),
|
||||
Select::make('roles')
|
||||
->relationship('roles', 'name')
|
||||
->multiple()
|
||||
|
||||
Reference in New Issue
Block a user