mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-04 15:34:35 +02:00
Use bootstrap 5 checkboxes.
This commit is contained in:
parent
017170e2d6
commit
43b4c78553
21 changed files with 59 additions and 134 deletions
|
@ -214,18 +214,12 @@ class UserAdminForm extends AbstractType
|
|||
|
||||
->add('need_pw_change', CheckboxType::class, [
|
||||
'required' => false,
|
||||
'label_attr' => [
|
||||
'class' => 'checkbox-custom',
|
||||
],
|
||||
'label' => 'user.edit.needs_pw_change',
|
||||
'disabled' => !$this->security->isGranted('set_password', $entity),
|
||||
])
|
||||
|
||||
->add('disabled', CheckboxType::class, [
|
||||
'required' => false,
|
||||
'label_attr' => [
|
||||
'class' => 'checkbox-custom',
|
||||
],
|
||||
'label' => 'user.edit.user_disabled',
|
||||
'disabled' => !$this->security->isGranted('set_password', $entity)
|
||||
|| $entity === $this->security->getUser(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue