MDL-56462 boost: Fix assign grading options form
[moodle.git] / theme / boost / templates / core_form / element-advcheckbox.mustache
CommitLineData
58488d0f 1<div class="form-group row {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
63e4df60
DW
2 <div class="col-md-9 push-md-3 checkbox">
3 <label>
c9c1e4ba
FM
4 {{^element.hardfrozen}}
5 {{^element.frozen}}
6 <input type="hidden" name="{{element.name}}" value="{{element.deselectedvalue}}">
7 {{/element.frozen}}
8 {{#element.frozen}}
9 <input type="hidden" name="{{element.name}}" value="{{element.frozenvalue}}">
10 {{/element.frozen}}
11 {{/element.hardfrozen}}
63e4df60
DW
12 <input type="checkbox"
13 name="{{element.name}}"
14 {{#element.selectedvalue}}
15 value="{{element.selectedvalue}}"
16 {{/element.selectedvalue}}
17 id="{{element.id}}" {{#element.checked}}checked{{/element.checked}}
18 {{#error}}
19 autofocus aria-describedby="id_error_{{element.name}}"
c9c1e4ba
FM
20 {{/error}}
21 {{#element.frozen}}
22 disabled
23 {{/element.frozen}}
24 {{{element.attributes}}} >
70f00107
DW
25 {{{label}}}
26 </label> {{{helpbutton}}}
63e4df60
DW
27 <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
28 {{{error}}}
29 </div>
30 </div>
31</div>
32{{^element.frozen}}
33{{#js}}
2ede86d7 34require(['theme_boost/form-display-errors'], function(module) {
63e4df60
DW
35 module.enhance({{#quote}}{{element.id}}{{/quote}});
36});
37{{/js}}
38{{/element.frozen}}