mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 09:53:35 +02:00
Style theme selector input better.
This commit is contained in:
parent
4a6f327c70
commit
0ff6cc3bf9
2 changed files with 2 additions and 0 deletions
|
@ -152,6 +152,7 @@ class UserAdminForm extends AbstractType
|
||||||
'choice_label' => function ($entity, $key, $value) {
|
'choice_label' => function ($entity, $key, $value) {
|
||||||
return $value;
|
return $value;
|
||||||
},
|
},
|
||||||
|
'attr' => ['class' => 'selectpicker'],
|
||||||
'placeholder' => $this->trans->trans('user_settings.theme.placeholder'),
|
'placeholder' => $this->trans->trans('user_settings.theme.placeholder'),
|
||||||
'label' => $this->trans->trans('user.theme.label'),
|
'label' => $this->trans->trans('user.theme.label'),
|
||||||
'disabled' => !$this->security->isGranted('change_user_settings', $entity)
|
'disabled' => !$this->security->isGranted('change_user_settings', $entity)
|
||||||
|
|
|
@ -75,6 +75,7 @@ class UserSettingsType extends AbstractType
|
||||||
])
|
])
|
||||||
->add('theme', ChoiceType::class, [
|
->add('theme', ChoiceType::class, [
|
||||||
'required' => false,
|
'required' => false,
|
||||||
|
'attr' => ['class' => 'selectpicker'],
|
||||||
'choices' => User::AVAILABLE_THEMES,
|
'choices' => User::AVAILABLE_THEMES,
|
||||||
'choice_label' => function ($entity, $key, $value) {
|
'choice_label' => function ($entity, $key, $value) {
|
||||||
return $value;
|
return $value;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue