Commit b548eea7 authored by Laurent Lecluse's avatar Laurent Lecluse
Browse files

Ajout de la classe form-select dans le formcontrolgroup

parent 985ce466
Loading
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -147,6 +147,10 @@ class FormControlGroup extends AbstractHelper
            $element->setLabelAttributes($labelAttributes);
        }

        if (is_a($element, Select::class)){
            $element->setAttribute('class', $element->getAttribute('class') . ' form-select');
        }

        if (is_a($element, Checkbox::class)) {
            $element->setAttribute('class', $element->getAttribute('class') . ' form-check-input');
            if (!$element->getAttribute('id')) {