Use bootstrap 5 checkboxes.

This commit is contained in:
Jan Böhmer 2022-07-24 18:44:05 +02:00
parent 017170e2d6
commit 43b4c78553
21 changed files with 59 additions and 134 deletions

View file

@ -111,9 +111,6 @@ class BaseEntityAdminForm extends AbstractType
'required' => false,
'label' => 'entity.edit.not_selectable',
'help' => 'entity.edit.not_selectable.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
]
);

View file

@ -57,9 +57,6 @@ class CategoryAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'category.edit.disable_footprints',
'help' => 'category.edit.disable_footprints.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
]);
@ -67,9 +64,6 @@ class CategoryAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'category.edit.disable_manufacturers',
'help' => 'category.edit.disable_manufacturers.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
]);
@ -77,9 +71,6 @@ class CategoryAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'category.edit.disable_autodatasheets',
'help' => 'category.edit.disable_autodatasheets.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
]);
@ -87,9 +78,6 @@ class CategoryAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'category.edit.disable_properties',
'help' => 'category.edit.disable_properties.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
]);

View file

@ -57,9 +57,6 @@ class GroupAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'group.edit.enforce_2fa',
'help' => 'group.edit.enforce_2fa.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
]);

View file

@ -112,9 +112,6 @@ class ImportType extends AbstractType
'data' => true,
'required' => false,
'label' => 'import.preserve_children',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => $disabled,
])
->add('abort_on_validation_error', CheckboxType::class, [
@ -122,9 +119,6 @@ class ImportType extends AbstractType
'required' => false,
'label' => 'import.abort_on_validation',
'help' => 'import.abort_on_validation.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => $disabled,
])

View file

@ -44,9 +44,6 @@ class LabelProfileAdminForm extends BaseEntityAdminForm
$builder->add('show_in_dropdown', CheckboxType::class, [
'required' => false,
'label' => 'label_profile.showInDropdown',
'label_attr' => [
'class' => 'checkbox-custom',
],
]);
$builder->add('options', LabelOptionsType::class, [
'label' => false,

View file

@ -57,9 +57,6 @@ class MeasurementUnitAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'measurement_unit.edit.is_integer',
'help' => 'measurement_unit.edit.is_integer.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
]);
@ -67,9 +64,6 @@ class MeasurementUnitAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'measurement_unit.edit.use_si_prefix',
'help' => 'measurement_unit.edit.use_si_prefix.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
]);

View file

@ -58,9 +58,6 @@ class StorelocationAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'storelocation.edit.is_full.label',
'help' => 'storelocation.edit.is_full.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity),
]);
@ -68,9 +65,6 @@ class StorelocationAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'storelocation.limit_to_existing.label',
'help' => 'storelocation.limit_to_existing.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity),
]);
@ -78,9 +72,6 @@ class StorelocationAdminForm extends BaseEntityAdminForm
'required' => false,
'label' => 'storelocation.only_single_part.label',
'help' => 'storelocation.only_single_part.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'move', $entity),
]);