Browse Source

Fixes issue #3740 for horizontal layouts

tags/2.0.0-rc
Michael Härtl 11 years ago
parent
commit
ca75ceaea9
  1. 2
      ActiveField.php

2
ActiveField.php

@ -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'];

Loading…
Cancel
Save