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