mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-22 19:09:31 +00:00
Use bootstrap 5 checkboxes.
This commit is contained in:
parent
017170e2d6
commit
43b4c78553
21 changed files with 59 additions and 134 deletions
|
|
@ -92,9 +92,6 @@ class OrderdetailType extends AbstractType
|
|||
|
||||
$builder->add('obsolete', CheckboxType::class, [
|
||||
'required' => false,
|
||||
'label_attr' => [
|
||||
'class' => 'checkbox-custom',
|
||||
],
|
||||
'label' => 'orderdetails.edit.obsolete',
|
||||
]);
|
||||
|
||||
|
|
|
|||
|
|
@ -182,17 +182,11 @@ class PartBaseType extends AbstractType
|
|||
|
||||
//Advanced section
|
||||
$builder->add('needsReview', CheckboxType::class, [
|
||||
'label_attr' => [
|
||||
'class' => 'checkbox-custom',
|
||||
],
|
||||
'required' => false,
|
||||
'label' => 'part.edit.needs_review',
|
||||
'disabled' => !$this->security->isGranted('edit', $part),
|
||||
])
|
||||
->add('favorite', CheckboxType::class, [
|
||||
'label_attr' => [
|
||||
'class' => 'checkbox-custom',
|
||||
],
|
||||
'required' => false,
|
||||
'label' => 'part.edit.is_favorite',
|
||||
'disabled' => !$this->security->isGranted('change_favorite', $part),
|
||||
|
|
|
|||
|
|
@ -103,15 +103,9 @@ class PartLotType extends AbstractType
|
|||
'attr' => [
|
||||
'class' => 'form-control-sm',
|
||||
],
|
||||
'label_attr' => [
|
||||
'class' => 'checkbox-custom',
|
||||
],
|
||||
]);
|
||||
|
||||
$builder->add('needs_refill', CheckboxType::class, [
|
||||
'label_attr' => [
|
||||
'class' => 'checkbox-custom',
|
||||
],
|
||||
'label' => 'part_lot.edit.needs_refill',
|
||||
'attr' => [
|
||||
'class' => 'form-control-sm',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue