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