MDL-56462 boost: Fix assign grading options form
[moodle.git] / theme / boost / templates / core_form / element-advcheckbox-inline.mustache
1 <label class="form-check-inline {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
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}}
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}}
20     {{#element.frozen}}
21         disabled
22     {{/element.frozen}}
23     {{{element.attributes}}} >
24     {{{label}}}
25 </label> {{{helpbutton}}}
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}}
31 require(['theme_boost/form-display-errors'], function(module) {
32     module.enhance({{#quote}}{{element.id}}{{/quote}});
33 });
34 {{/js}}
35 {{/element.frozen}}