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, 'required' => false,
'label' => 'entity.edit.not_selectable', 'label' => 'entity.edit.not_selectable',
'help' => 'entity.edit.not_selectable.help', 'help' => 'entity.edit.not_selectable.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity), 'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
] ]
); );

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -106,9 +106,6 @@ class AttachmentFormType extends AbstractType
'attr' => [ 'attr' => [
'class' => 'form-control-sm', 'class' => 'form-control-sm',
], ],
'label_attr' => [
'class' => 'checkbox-custom',
],
]); ]);
$builder->add('secureFile', CheckboxType::class, [ $builder->add('secureFile', CheckboxType::class, [
@ -120,9 +117,6 @@ class AttachmentFormType extends AbstractType
'class' => 'form-control-sm', 'class' => 'form-control-sm',
], ],
'help' => 'attachment.edit.secure_file.help', 'help' => 'attachment.edit.secure_file.help',
'label_attr' => [
'class' => 'checkbox-custom',
],
]); ]);
$builder->add('url', TextType::class, [ $builder->add('url', TextType::class, [
@ -147,9 +141,6 @@ class AttachmentFormType extends AbstractType
'attr' => [ 'attr' => [
'class' => 'form-control-sm', 'class' => 'form-control-sm',
], ],
'label_attr' => [
'class' => 'checkbox-custom',
],
]); ]);
$builder->add('file', FileType::class, [ $builder->add('file', FileType::class, [

View file

@ -92,9 +92,6 @@ class OrderdetailType extends AbstractType
$builder->add('obsolete', CheckboxType::class, [ $builder->add('obsolete', CheckboxType::class, [
'required' => false, 'required' => false,
'label_attr' => [
'class' => 'checkbox-custom',
],
'label' => 'orderdetails.edit.obsolete', 'label' => 'orderdetails.edit.obsolete',
]); ]);

View file

@ -182,17 +182,11 @@ class PartBaseType extends AbstractType
//Advanced section //Advanced section
$builder->add('needsReview', CheckboxType::class, [ $builder->add('needsReview', CheckboxType::class, [
'label_attr' => [
'class' => 'checkbox-custom',
],
'required' => false, 'required' => false,
'label' => 'part.edit.needs_review', 'label' => 'part.edit.needs_review',
'disabled' => !$this->security->isGranted('edit', $part), 'disabled' => !$this->security->isGranted('edit', $part),
]) ])
->add('favorite', CheckboxType::class, [ ->add('favorite', CheckboxType::class, [
'label_attr' => [
'class' => 'checkbox-custom',
],
'required' => false, 'required' => false,
'label' => 'part.edit.is_favorite', 'label' => 'part.edit.is_favorite',
'disabled' => !$this->security->isGranted('change_favorite', $part), 'disabled' => !$this->security->isGranted('change_favorite', $part),

View file

@ -103,15 +103,9 @@ class PartLotType extends AbstractType
'attr' => [ 'attr' => [
'class' => 'form-control-sm', 'class' => 'form-control-sm',
], ],
'label_attr' => [
'class' => 'checkbox-custom',
],
]); ]);
$builder->add('needs_refill', CheckboxType::class, [ $builder->add('needs_refill', CheckboxType::class, [
'label_attr' => [
'class' => 'checkbox-custom',
],
'label' => 'part_lot.edit.needs_refill', 'label' => 'part_lot.edit.needs_refill',
'attr' => [ 'attr' => [
'class' => 'form-control-sm', 'class' => 'form-control-sm',

View file

@ -61,9 +61,6 @@ final class TriStateCheckboxType extends AbstractType implements DataTransformer
public function configureOptions(OptionsResolver $resolver): void public function configureOptions(OptionsResolver $resolver): void
{ {
$resolver->setDefaults([ $resolver->setDefaults([
'label_attr' => [
'class' => 'checkbox-custom checkbox-inline',
],
'attr' => [ 'attr' => [
'class' => 'tristate', 'class' => 'tristate',
], ],

View file

@ -214,18 +214,12 @@ class UserAdminForm extends AbstractType
->add('need_pw_change', CheckboxType::class, [ ->add('need_pw_change', CheckboxType::class, [
'required' => false, 'required' => false,
'label_attr' => [
'class' => 'checkbox-custom',
],
'label' => 'user.edit.needs_pw_change', 'label' => 'user.edit.needs_pw_change',
'disabled' => !$this->security->isGranted('set_password', $entity), 'disabled' => !$this->security->isGranted('set_password', $entity),
]) ])
->add('disabled', CheckboxType::class, [ ->add('disabled', CheckboxType::class, [
'required' => false, 'required' => false,
'label_attr' => [
'class' => 'checkbox-custom',
],
'label' => 'user.edit.user_disabled', 'label' => 'user.edit.user_disabled',
'disabled' => !$this->security->isGranted('set_password', $entity) 'disabled' => !$this->security->isGranted('set_password', $entity)
|| $entity === $this->security->getUser(), || $entity === $this->security->getUser(),

View file

@ -20,8 +20,8 @@
</div> </div>
{% if entity.parent is defined %} {% if entity.parent is defined %}
<div class="ms-2 custom-control custom-checkbox custom-control-inline"> <div class="ms-2 custom-control custom-checkbox custom-control-inline">
<input type="checkbox" class="custom-control-input" id="recursive" name="delete_recursive"> <input type="checkbox" class="form-check-input" id="recursive" name="delete_recursive">
<label class="custom-control-label" for="recursive">{% trans %}entity.delete.recursive{% endtrans %}</label> <label class="form-check-label" for="recursive">{% trans %}entity.delete.recursive{% endtrans %}</label>
</div> </div>
{% endif %} {% endif %}
</div> </div>

View file

@ -25,9 +25,9 @@
<div class="form-row mt-2"> <div class="form-row mt-2">
<div class="offset-sm-3 col-sm"> <div class="offset-sm-3 col-sm">
<div class="custom-control custom-checkbox"> <div class="form-check">
<input class="form-check-input custom-control-input" name="include_children" id="include_children" type="checkbox" checked> <input class="form-check-input form-check-input" name="include_children" id="include_children" type="checkbox" checked>
<label class="form-check-label custom-control-label" for="include_children"> <label class="form-check-label form-check-label" for="include_children">
{% trans %}export.include_children{% endtrans %} {% trans %}export.include_children{% endtrans %}
</label> </label>
</div> </div>

View file

@ -64,7 +64,7 @@
{% set is_parent_custom = parent_label_class is defined and ('checkbox-custom' in parent_label_class or 'radio-custom' in parent_label_class) %} {% set is_parent_custom = parent_label_class is defined and ('checkbox-custom' in parent_label_class or 'radio-custom' in parent_label_class) %}
{% set is_custom = label_attr.class is defined and ('checkbox-custom' in label_attr.class or 'radio-custom' in label_attr.class) %} {% set is_custom = label_attr.class is defined and ('checkbox-custom' in label_attr.class or 'radio-custom' in label_attr.class) %}
{%- if is_parent_custom or is_custom -%} {%- if is_parent_custom or is_custom -%}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' custom-control-label')|trim}) -%} {%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' form-check-label')|trim}) -%}
{%- else %} {%- else %}
{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' form-check-label')|trim}) -%} {%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' form-check-label')|trim}) -%}
{%- endif %} {%- endif %}
@ -103,7 +103,7 @@
{% block tristate_widget -%} {% block tristate_widget -%}
{%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%} {%- set parent_label_class = parent_label_class|default(label_attr.class|default('')) -%}
{%- if 'checkbox-custom' in parent_label_class -%} {%- if 'checkbox-custom' in parent_label_class -%}
{%- set attr = attr|merge({class: (attr.class|default('') ~ ' custom-control-input')|trim}) -%} {%- set attr = attr|merge({class: (attr.class|default('') ~ ' form-check-input')|trim}) -%}
<div class="custom-control custom-checkbox{{ 'checkbox-inline' in parent_label_class ? ' custom-control-inline' }}"> <div class="custom-control custom-checkbox{{ 'checkbox-inline' in parent_label_class ? ' custom-control-inline' }}">
{{- form_label(form, null, { widget: block('tr_parent') }) -}} {{- form_label(form, null, { widget: block('tr_parent') }) -}}
</div> </div>

View file

@ -3,9 +3,9 @@
<td> <td>
{% if multi_checkbox %} {% if multi_checkbox %}
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input tristate permission_multicheckbox" id="mulit_check_{{ form.vars.label }}"> <input type="checkbox" class="form-check-input tristate permission_multicheckbox" id="mulit_check_{{ form.vars.label }}">
<label class="custom-control-label" for="mulit_check_{{ form.vars.label }}"> <label class="form-check-label" for="mulit_check_{{ form.vars.label }}">
<b>{{ form.vars.label | trans }}</b> <b>{{ form.vars.label | trans }}</b>
</label> </label>
</div> </div>
@ -53,16 +53,16 @@
<label><b>{% trans %}permission.legend.title{% endtrans %}:</b></label> <label><b>{% trans %}permission.legend.title{% endtrans %}:</b></label>
<div> <div>
<div class="custom-control custom-control-inline custom-checkbox"> <div class="custom-control custom-control-inline custom-checkbox">
<input type="checkbox" hidden class="custom-control-input"> <input type="checkbox" hidden class="form-check-input">
<label class="custom-control-label">{% trans %}permission.legend.disallow{% endtrans %}</label> <label class="form-check-label">{% trans %}permission.legend.disallow{% endtrans %}</label>
</div> </div>
<div class="custom-control custom-control-inline custom-checkbox"> <div class="custom-control custom-control-inline custom-checkbox">
<input class="custom-control-input" type="checkbox" hidden checked> <input class="form-check-input" type="checkbox" hidden checked>
<label class="custom-control-label">{% trans %}permission.legend.allow{% endtrans %}</label> <label class="form-check-label">{% trans %}permission.legend.allow{% endtrans %}</label>
</div> </div>
<div class="custom-control custom-control-inline custom-checkbox"> <div class="custom-control custom-control-inline custom-checkbox">
<input type="checkbox" class="tristate custom-control-input" hidden indeterminate="indeterminate"> <input type="checkbox" class="tristate form-check-input" hidden indeterminate="indeterminate">
<label class="custom-control-label">{% trans %}permission.legend.inherit{% endtrans %}</label> <label class="form-check-label">{% trans %}permission.legend.inherit{% endtrans %}</label>
</div> </div>
</div> </div>
</div> </div>

View file

@ -60,8 +60,8 @@
<li role="separator" class="dropdown-divider" id="toggleDarkmodeSeparator" hidden></li> <li role="separator" class="dropdown-divider" id="toggleDarkmodeSeparator" hidden></li>
<div class="px-4 px-3" id="toggleDarkmodeContainer" hidden> <div class="px-4 px-3" id="toggleDarkmodeContainer" hidden>
<div class="custom-control custom-switch"> <div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="toggleDarkmode"> <input type="checkbox" class="form-check-input" id="toggleDarkmode">
<label class="custom-control-label" <label class="form-check-label"
for="toggleDarkmode">{% trans %}ui.toggle_darkmode{% endtrans %}</label> for="toggleDarkmode">{% trans %}ui.toggle_darkmode{% endtrans %}</label>
</div> </div>
</div> </div>

View file

@ -1,64 +1,64 @@
<form action="{{ url('parts_search') }}" class="d-flex my-lg-0 ms-auto" method="get"> <form action="{{ url('parts_search') }}" class="d-flex my-lg-0 ms-auto" method="get">
<div class="dropdown"> <div class="dropdown">
<button class="btn btn-light dropdown-toggle my-2" type="button" id="navbar-search-options" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-bs-auto-close="inside"> <button class="btn btn-light dropdown-toggle my-2" type="button" id="navbar-search-options" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" data-bs-auto-close="false">
{% trans %}search.options.label{% endtrans %} {% trans %}search.options.label{% endtrans %}
<span class="caret"></span> <span class="caret"></span>
</button> </button>
<div class="dropdown-menu" aria-labelledby="navbar-search-options"> <div class="dropdown-menu" aria-labelledby="navbar-search-options">
<div class="px-1 py-2"> <div class="px-2">
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_name" name="name" value="1" checked> <input type="checkbox" class="form-check-input" id="search_name" name="name" value="1" checked>
<label for="search_name" class="custom-control-label justify-content-start">{% trans %}name.label{% endtrans %}</label> <label for="search_name" class="form-check-label justify-content-start">{% trans %}name.label{% endtrans %}</label>
</div> </div>
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_category" name="category" value="1" checked> <input type="checkbox" class="form-check-input" id="search_category" name="category" value="1" checked>
<label for="search_category" class="custom-control-label justify-content-start">{% trans %}category.label{% endtrans %}</label> <label for="search_category" class="form-check-label justify-content-start">{% trans %}category.label{% endtrans %}</label>
</div> </div>
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_description" name="description" value="1" checked> <input type="checkbox" class="form-check-input" id="search_description" name="description" value="1" checked>
<label for="search_description" class="custom-control-label justify-content-start">{% trans %}description.label{% endtrans %}</label> <label for="search_description" class="form-check-label justify-content-start">{% trans %}description.label{% endtrans %}</label>
</div> </div>
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_tags" name="tags" value="1" checked> <input type="checkbox" class="form-check-input" id="search_tags" name="tags" value="1" checked>
<label for="search_tags" class="custom-control-label justify-content-start">{% trans %}tags.label{% endtrans %}</label> <label for="search_tags" class="form-check-label justify-content-start">{% trans %}tags.label{% endtrans %}</label>
</div> </div>
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_storelocation" name="storelocation" value="1" checked> <input type="checkbox" class="form-check-input" id="search_storelocation" name="storelocation" value="1" checked>
<label for="search_storelocation" class="custom-control-label justify-content-start">{% trans %}storelocation.label{% endtrans %}</label> <label for="search_storelocation" class="form-check-label justify-content-start">{% trans %}storelocation.label{% endtrans %}</label>
</div> </div>
<div class=" custom-control custom-checkbox"> <div class=" custom-control custom-checkbox">
<input type="checkbox" id="search_comment" class="custom-control-input" id="search_comment" name="comment" value="1" checked> <input type="checkbox" id="search_comment" class="form-check-input" id="search_comment" name="comment" value="1" checked>
<label for="search_comment" class="custom-control-label justify-content-start">{% trans %}comment.label{% endtrans %}</label> <label for="search_comment" class="form-check-label justify-content-start">{% trans %}comment.label{% endtrans %}</label>
</div> </div>
{% if true %} {% if true %}
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_supplierpartnr" name="ordernr" value="1" checked> <input type="checkbox" class="form-check-input" id="search_supplierpartnr" name="ordernr" value="1" checked>
<label for="search_supplierpartnr" class="custom-control-label justify-content-start">{% trans %}ordernumber.label.short{% endtrans %}</label> <label for="search_supplierpartnr" class="form-check-label justify-content-start">{% trans %}ordernumber.label.short{% endtrans %}</label>
</div> </div>
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_supplier" name="supplier" value="1"> <input type="checkbox" class="form-check-input" id="search_supplier" name="supplier" value="1">
<label for="search_supplier" class="custom-control-label justify-content-start">{% trans %}supplier.label{% endtrans %}</label> <label for="search_supplier" class="form-check-label justify-content-start">{% trans %}supplier.label{% endtrans %}</label>
</div> </div>
{% endif %} {% endif %}
{% if true %} {% if true %}
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_manufacturer" name="manufacturer" value="1"> <input type="checkbox" class="form-check-input" id="search_manufacturer" name="manufacturer" value="1">
<label for="search_manufacturer" class="custom-control-label justify-content-start">{% trans %}manufacturer.label{% endtrans %}</label> <label for="search_manufacturer" class="form-check-label justify-content-start">{% trans %}manufacturer.label{% endtrans %}</label>
</div> </div>
{% endif %} {% endif %}
{% if true %} {% if true %}
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="search_footprint" name="footprint" value="1"> <input type="checkbox" class="form-check-input" id="search_footprint" name="footprint" value="1">
<label for="search_footprint" class="custom-control-label justify-content-start">{% trans %}footprint.label{% endtrans %}</label> <label for="search_footprint" class="form-check-label justify-content-start">{% trans %}footprint.label{% endtrans %}</label>
</div> </div>
{% endif %} {% endif %}
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="disable_pid_input" name="disable_pid_input" value="1"> <input type="checkbox" class="form-check-input" id="disable_pid_input" name="disable_pid_input" value="1">
<label for="disable_pid_input" class="custom-control-label justify-content-start">{% trans %}search.deactivateBarcode{% endtrans %}</label> <label for="disable_pid_input" class="form-check-label justify-content-start">{% trans %}search.deactivateBarcode{% endtrans %}</label>
</div> </div>
<div class="custom-control custom-checkbox"> <div class="form-check">
<input type="checkbox" class="custom-control-input" id="regex" name="regex" value="1"> <input type="checkbox" class="form-check-input" id="regex" name="regex" value="1">
<label for="regex" class="custom-control-label justify-content-start">{% trans %}search.regexmatching{% endtrans %}</label> <label for="regex" class="form-check-label justify-content-start">{% trans %}search.regexmatching{% endtrans %}</label>
</div> </div>
</div> </div>
</div> </div>

View file

@ -35,8 +35,8 @@
<div class="form-group row mt-3"> <div class="form-group row mt-3">
<div class="offset-3"> <div class="offset-3">
<div class="custom-checkbox custom-control ms-2"> <div class="custom-checkbox custom-control ms-2">
<input id="_trusted" class="custom-control-input" type="checkbox" name="{{ trustedParameterName }}" /> <input id="_trusted" class="form-check-input" type="checkbox" name="{{ trustedParameterName }}" />
<label class="custom-control-label" for="_trusted">{% trans %}tfa.code.trusted_pc{% endtrans %}</label> <label class="form-check-label" for="_trusted">{% trans %}tfa.code.trusted_pc{% endtrans %}</label>
</div> </div>
</div> </div>
</div> </div>

View file

@ -45,8 +45,8 @@
<div class="form-group row"> <div class="form-group row">
<div class="col-md-9 offset-md-3 col-lg-10 offset-lg-2"> <div class="col-md-9 offset-md-3 col-lg-10 offset-lg-2">
<div class="custom-control custom-checkbox custom-control-inline"> <div class="custom-control custom-checkbox custom-control-inline">
<input class="custom-control-input" name="_remember_me" id="remember_me" type="checkbox"> <input class="form-check-input" name="_remember_me" id="remember_me" type="checkbox">
<label class="custom-control-label" for="remember_me"> <label class="form-check-label" for="remember_me">
{% trans %}login.rememberme{% endtrans %} {% trans %}login.rememberme{% endtrans %}
</label> </label>
</div> </div>