Commit 27176610 authored by Laurent Lecluse's avatar Laurent Lecluse Committed by David Surville
Browse files

Ajout de la classe form-select dans le formcontrolgroup

parent fbbffa9a
Loading
Loading
Loading
Loading
+4 −0
Changes for src/UnicaenApp/Form/View/Helper/FormControlGroup.php: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -146,6 +146,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')) {