mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-30 13:34:28 +02:00
Implemented different themes for Part-DB.
We use Bootswatch to provide different themed bootstrap CSS.
This commit is contained in:
parent
0ebc5bfdad
commit
0b69de332d
10 changed files with 157 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue