Commit 98a4be27 by Alexander Makarov

Merge pull request #3789 from mikehaertl/master

Fixes issue #3740 for horizontal layouts
parents dc9f9d92 05178e82
...@@ -356,7 +356,7 @@ class ActiveField extends \yii\widgets\ActiveField ...@@ -356,7 +356,7 @@ class ActiveField extends \yii\widgets\ActiveField
$config['horizontalCssClasses'] = $cssClasses; $config['horizontalCssClasses'] = $cssClasses;
$config['wrapperOptions'] = ['class' => $cssClasses['wrapper']]; $config['wrapperOptions'] = ['class' => $cssClasses['wrapper']];
$config['labelOptions'] = ['class' => 'control-label ' . $cssClasses['label']]; $config['labelOptions'] = ['class' => 'control-label ' . $cssClasses['label']];
$config['errorOptions'] = ['class' => 'help-block ' . $cssClasses['error']]; $config['errorOptions'] = ['class' => 'help-block help-block-error ' . $cssClasses['error']];
$config['hintOptions'] = ['class' => 'help-block ' . $cssClasses['hint']]; $config['hintOptions'] = ['class' => 'help-block ' . $cssClasses['hint']];
} elseif ($layout === 'inline') { } elseif ($layout === 'inline') {
$config['labelOptions'] = ['class' => 'sr-only']; $config['labelOptions'] = ['class' => 'sr-only'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment