Implemented different themes for Part-DB.

We use Bootswatch to provide different themed bootstrap CSS.
This commit is contained in:
Jan Böhmer 2019-10-13 17:48:18 +02:00
parent 0ebc5bfdad
commit 0b69de332d
10 changed files with 157 additions and 7 deletions

View file

@ -35,6 +35,7 @@ namespace App\Form;
use App\Entity\UserSystem\Group;
use App\Entity\Base\NamedDBElement;
use App\Entity\Base\StructuralDBElement;
use App\Entity\UserSystem\User;
use App\Form\Permissions\PermissionsType;
use App\Form\Permissions\PermissionType;
use App\Form\Type\CurrencyEntityType;
@ -147,6 +148,10 @@ class UserAdminForm extends AbstractType
])
->add('theme', ChoiceType::class, [
'required' => false,
'choices' => User::AVAILABLE_THEMES,
'choice_label' => function ($entity, $key, $value) {
return $value;
},
'placeholder' => $this->trans->trans('user_settings.theme.placeholder'),
'label' => $this->trans->trans('user.theme.label'),
'disabled' => !$this->security->isGranted('change_user_settings', $entity)