MDL-55593 theme_noname: Post-prod on preset default styling
[moodle.git] / theme / noname / templates / core_form / element-advcheckbox.mustache
CommitLineData
63e4df60
DW
1<div class="form-group row {{#error}}has-danger{{/error}}">
2 <div class="col-md-9 push-md-3 checkbox">
3 <label>
4 {{^element.frozen}}
5 <input type="hidden" name="{{element.name}}" value="{{element.deselectedvalue}}">
6 <input type="checkbox"
7 name="{{element.name}}"
8 {{#element.selectedvalue}}
9 value="{{element.selectedvalue}}"
10 {{/element.selectedvalue}}
11 id="{{element.id}}" {{#element.checked}}checked{{/element.checked}}
12 {{#error}}
13 autofocus aria-describedby="id_error_{{element.name}}"
14 {{/error}} {{{element.attributes}}} >
15 {{/element.frozen}}
16 {{{label}}} {{{helpbutton}}}
17 </label>
18 <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
19 {{{error}}}
20 </div>
21 </div>
22</div>
23{{^element.frozen}}
24{{#js}}
25require(['theme_noname/form-display-errors'], function(module) {
26 module.enhance({{#quote}}{{element.id}}{{/quote}});
27});
28{{/js}}
29{{/element.frozen}}