Server side form validation returning wrong error class on div.form-group
Issue #22
resolved
Hi there,
I noticed when using your awesome bootstrap 3 module that the div.form-group error class was being set as 'error' instead of 'has-error'.
Not sure whether this is the best fix as I am a newbie to yii and your module but I made these changes to BSHtml.php on line 1754.
if (!empty($color)) { // CHANGE Add proper form-group styling if($color == 'success') self::addCssClass('has-success', $groupOptions); else if ($color == 'error') self::addCssClass('has-error', $groupOptions); else self::addCssClass($color, $groupOptions); }
Hope this helps.
Cheers, Morgan
Comments (3)
-
repo owner -
reporter Thanks, looks like it is working properly now....
-
reporter - changed status to resolved
- Log in to comment
plz check last commit if this error again add a example thx