File tree Expand file tree Collapse file tree 1 file changed +13
-10
lines changed
html-templates/subtemplates Expand file tree Collapse file tree 1 file changed +13
-10
lines changed Original file line number Diff line number Diff line change 37
37
{ /template}
38
38
39
39
{ template checkbox inputName value label= ' ' error= ' ' hint= ' ' attribs= ' ' default =null class= null unsetValue= null}
40
- <div class =" form-group" >
41
- { capture assign= html}
40
+ <div class =" checkbox" >
41
+ { if $unsetValue !== null}
42
+ <input type =" hidden" name =" { $inputName |escape } " value =" { $unsetValue |escape } " >
43
+ { /if }
44
+
45
+ <label >
42
46
<input type =" checkbox"
43
- class =" field-control form-control { $class } "
47
+ class =" { $class } "
44
48
name =" { $inputName |escape } "
45
49
value =" { $value |escape } "
46
50
{ $attribs }
47
51
{ refill field= $inputName default =$default checked= $value } >
48
- { /capture }
49
-
50
- { if $unsetValue !== null}
51
- <input type =" hidden" name =" { $inputName |escape } " value =" { $unsetValue |escape } " >
52
- { /if }
53
-
54
- { labeledField html= $html type= checkbox label= $label error= $error hint= $hint required= $required }
52
+
53
+ { $label }
54
+ </label >
55
+
56
+ { if $error } <p class =" error-text" >{ $error } </p >{ /if }
57
+ { if $hint } <p class =" hint help-block" >{ $hint } </p >{ /if }
55
58
</div >
56
59
{ /template}
57
60
You can’t perform that action at this time.
0 commit comments