Style theme selector input better.

This commit is contained in:
Jan Böhmer 2019-10-13 18:05:08 +02:00
parent 4a6f327c70
commit 0ff6cc3bf9
2 changed files with 2 additions and 0 deletions

View file

@ -152,6 +152,7 @@ class UserAdminForm extends AbstractType
'choice_label' => function ($entity, $key, $value) {
return $value;
},
'attr' => ['class' => 'selectpicker'],
'placeholder' => $this->trans->trans('user_settings.theme.placeholder'),
'label' => $this->trans->trans('user.theme.label'),
'disabled' => !$this->security->isGranted('change_user_settings', $entity)

View file

@ -75,6 +75,7 @@ class UserSettingsType extends AbstractType
])
->add('theme', ChoiceType::class, [
'required' => false,
'attr' => ['class' => 'selectpicker'],
'choices' => User::AVAILABLE_THEMES,
'choice_label' => function ($entity, $key, $value) {
return $value;