MDL-56462 boost: Fix assign grading options form
[moodle.git] / theme / boost / templates / core_form / element-checkbox.mustache
CommitLineData
58488d0f 1<div class="form-group row {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
91bda4cd
DW
2 <div class="col-md-9 push-md-3 checkbox">
3 <label>
c9c1e4ba 4 {{^element.hardfrozen}}
c9c1e4ba
FM
5 {{#element.frozen}}
6 <input type="hidden" name="{{element.name}}" value="{{element.frozenvalue}}">
7 {{/element.frozen}}
8 {{/element.hardfrozen}}
63e4df60
DW
9 <input type="checkbox"
10 name="{{element.name}}"
11 {{#element.value}}
12 value="{{element.value}}"
13 {{/element.value}}
14 {{^element.value}}
15 value="1"
16 {{/element.value}}
17 id="{{element.id}}" {{#element.checked}}checked{{/element.checked}}
91bda4cd
DW
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}}}
91bda4cd
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>
9de8c561 32{{^element.frozen}}
91bda4cd 33{{#js}}
2ede86d7 34require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 35 module.enhance({{#quote}}{{element.id}}{{/quote}});
91bda4cd 36});
63e4df60
DW
37{{/js}}
38{{/element.frozen}}