Skip to content

Commit 4f724d9

Browse files
committed
Added error-message class.
1 parent aa38c74 commit 4f724d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/View/Helper/BootstrapFormHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class BootstrapFormHelper extends FormHelper {
5656
'checkboxWrapper' => '<div class="checkbox">{{label}}</div>',
5757
'checkboxContainer' => '<div class="checkbox">{{content}}</div>',
5858
'dateWidget' => '{{year}}{{month}}{{day}}{{hour}}{{minute}}{{second}}{{meridian}}',
59-
'error' => '<span class="help-block">{{content}}</span>',
59+
'error' => '<span class="help-block error-message">{{content}}</span>',
6060
'errorList' => '<ul>{{content}}</ul>',
6161
'errorItem' => '<li>{{text}}</li>',
6262
'file' => '<input type="file" name="{{name}}" {{attrs}}>',
@@ -201,7 +201,7 @@ protected function _setDefaultTemplates () {
201201
.'{{content}}'
202202
.($this->horizontal ? '</div></div>' : ''),
203203
'label' => '<label class="'.($this->horizontal ? $this->_getColClass('label') : '').' '.($this->inline ? 'sr-only' : 'control-label').' {{attrs.class}}" {{attrs}}>{{text}}</label>',
204-
'error' => '<span class="help-block '.($this->horizontal ? $this->_getColClass('error') : '').'">{{content}}</span>',
204+
'error' => '<span class="help-block '.($this->horizontal ? $this->_getColClass('error') : '').' error-message">{{content}}</span>',
205205
'submitContainer' => '<div class="form-group">'.($this->horizontal ? '<div class="'.$this->_getColClass('label', true).' '.$this->_getColClass('input').'">' : '').'{{content}}'.($this->horizontal ? '</div>' : '').'</div>',
206206
]) ;
207207
}

0 commit comments

Comments
 (0)