feat(Password process for new admin, cleaning translations)
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 1m21s

This commit is contained in:
2026-04-01 15:50:21 +02:00
parent 83b7c42fe4
commit 25885e3b70
40 changed files with 1577 additions and 475 deletions

View File

@@ -20,7 +20,6 @@ class UserForm
->required(),
TextInput::make('email')
->label(User::getAttributeLabel('email'))
->label('Email address')
->email()
->required(),
DateTimePicker::make('email_verified_at')
@@ -28,14 +27,19 @@ class UserForm
TextInput::make('password')
->label(User::getAttributeLabel('password'))
->password()
->revealable()
->dehydrated(fn ($state) => filled($state))
->dehydrateStateUsing(fn ($state) => Hash::make($state)),
->dehydrateStateUsing(fn ($state) => Hash::make($state))
->hint(fn (string $operation) => $operation === 'create'
? __('users.hints.password_create')
: __('users.hints.password_edit'))
->hintIcon('heroicon-m-information-circle'),
Select::make('role')
->label(User::getAttributeLabel('role'))
->relationship('roles', 'name')
->multiple()
->preload()
->searchable()
->searchable(),
]);
}
}