diff --git a/src/TwbBundle/Form/View/Helper/TwbBundleFormRow.php b/src/TwbBundle/Form/View/Helper/TwbBundleFormRow.php index 11d77c4..0ec0bc4 100644 --- a/src/TwbBundle/Form/View/Helper/TwbBundleFormRow.php +++ b/src/TwbBundle/Form/View/Helper/TwbBundleFormRow.php @@ -218,7 +218,7 @@ protected function renderElement(ElementInterface $oElement, $sLabelPosition = n if ($oElement->getOption('validation-state') || $oElement->getMessages()) { if (empty($aLabelAttributes['class'])) { $aLabelAttributes['class'] = 'control-label'; - } elseif (!preg_match('/(\s|^)control-label(\s|$)/', $aLabelAttributes['class'])) { + } elseif (!preg_match('/(\s|^)control-label(\s|$)/', $aLabelAttributes['class']) && $sElementType !== 'checkbox') { $aLabelAttributes['class'] = trim($aLabelAttributes['class'] . ' control-label'); } }