mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-20 19:05:14 +02:00
parent
01c19ab634
commit
73ac4f1641
10 changed files with 110 additions and 48 deletions
|
@ -59,6 +59,7 @@ class CurrencyAdminForm extends BaseEntityAdminForm
|
|||
'preferred_choices' => ['EUR', 'USD', 'GBP', 'JPY', 'CNY'],
|
||||
'attr' => [
|
||||
'class' => 'selectpicker',
|
||||
'title' => 'selectpicker.nothing_selected',
|
||||
'data-live-search' => true,
|
||||
],
|
||||
'disabled' => ! $this->security->isGranted($is_new ? 'create' : 'edit', $entity),
|
||||
|
|
|
@ -56,7 +56,7 @@ class GroupAdminForm extends BaseEntityAdminForm
|
|||
$builder->add('enforce2FA', CheckboxType::class, [
|
||||
'required' => false,
|
||||
'label' => 'group.edit.enforce_2fa',
|
||||
'help' => 'entity.edit.enforce_2fa.help',
|
||||
'help' => 'group.edit.enforce_2fa.help',
|
||||
'label_attr' => [
|
||||
'class' => 'checkbox-custom',
|
||||
],
|
||||
|
|
|
@ -95,6 +95,7 @@ class LabelOptionsType extends AbstractType
|
|||
},
|
||||
'attr' => [
|
||||
'class' => 'selectpicker',
|
||||
'title' => 'selectpicker.nothing_selected',
|
||||
'data-live-search' => true,
|
||||
],
|
||||
]);
|
||||
|
|
|
@ -82,6 +82,7 @@ class PartLotType extends AbstractType
|
|||
'disable_not_selectable' => true,
|
||||
'attr' => [
|
||||
'class' => 'selectpicker form-control-sm',
|
||||
'title' => 'selectpicker.nothing_selected',
|
||||
'data-live-search' => true,
|
||||
],
|
||||
]);
|
||||
|
|
|
@ -63,6 +63,7 @@ class MasterPictureAttachmentType extends AbstractType
|
|||
'choice_translation_domain' => false,
|
||||
'attr' => [
|
||||
'class' => 'selectpicker',
|
||||
'title' => 'selectpicker.nothing_selected',
|
||||
],
|
||||
'choice_attr' => function (Options $options) {
|
||||
return function ($choice, $key, $value) use ($options) {
|
||||
|
|
|
@ -121,6 +121,7 @@ class StructuralEntityType extends AbstractType
|
|||
$tmp = [
|
||||
'class' => 'selectpicker',
|
||||
'data-live-search' => true,
|
||||
'title' => 'selectpicker.nothing_selected',
|
||||
];
|
||||
if ($options['empty_message']) {
|
||||
$tmp['data-none-Selected-Text'] = $options['empty_message'];
|
||||
|
|
|
@ -151,6 +151,7 @@ class UserAdminForm extends AbstractType
|
|||
'required' => false,
|
||||
'attr' => [
|
||||
'class' => 'selectpicker',
|
||||
'title' => 'selectpicker.nothing_selected',
|
||||
'data-live-search' => true,
|
||||
],
|
||||
'placeholder' => 'user_settings.language.placeholder',
|
||||
|
@ -162,6 +163,7 @@ class UserAdminForm extends AbstractType
|
|||
'required' => false,
|
||||
'attr' => [
|
||||
'class' => 'selectpicker',
|
||||
'title' => 'selectpicker.nothing_selected',
|
||||
'data-live-search' => true,
|
||||
],
|
||||
'placeholder' => 'user_settings.timezone.placeholder',
|
||||
|
@ -177,6 +179,7 @@ class UserAdminForm extends AbstractType
|
|||
},
|
||||
'attr' => [
|
||||
'class' => 'selectpicker',
|
||||
'title' => 'selectpicker.nothing_selected',
|
||||
],
|
||||
'choice_translation_domain' => false,
|
||||
'placeholder' => 'user_settings.theme.placeholder',
|
||||
|
|
|
@ -122,7 +122,7 @@ class UserSettingsType extends AbstractType
|
|||
'attr' => [
|
||||
'class' => 'selectpicker',
|
||||
],
|
||||
'translation_domain' => false,
|
||||
'choice_translation_domain' => false,
|
||||
'choices' => User::AVAILABLE_THEMES,
|
||||
'choice_label' => function ($entity, $key, $value) {
|
||||
return $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue