Skip to content

Commit 07e0029

Browse files
authored
Add {{required}} to checkboxContainer.
1 parent e34e0d6 commit 07e0029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/View/Helper/BootstrapFormHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class BootstrapFormHelper extends FormHelper {
4646
'checkbox' => '<input type="checkbox" name="{{name}}" value="{{value}}"{{attrs}}>',
4747
'checkboxFormGroup' => '{{label}}',
4848
'checkboxWrapper' => '<div class="checkbox">{{label}}</div>',
49-
'checkboxContainer' => '{{h_checkboxContainer_start}}<div class="checkbox">{{content}}</div>{{h_checkboxContainer_end}}',
49+
'checkboxContainer' => '{{h_checkboxContainer_start}}<div class="checkbox {{required}}">{{content}}</div>{{h_checkboxContainer_end}}',
5050
'dateWidget' => '{{year}}{{month}}{{day}}{{hour}}{{minute}}{{second}}{{meridian}}',
5151
'error' => '<span class="help-block error-message{{h_errorClass}}">{{content}}</span>',
5252
'errorList' => '<ul>{{content}}</ul>',

0 commit comments

Comments
 (0)