weekly release 3.5dev
[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}}}">
dc801cb6
MN
2 <div class="col-md-3">
3 {{#text}}
4 <label for="{{element.id}}">
5 {{{label}}}
6 </label>
7 {{/text}}
8 </div>
9 <div class="col-md-9 checkbox">
63e4df60 10 <label>
c9c1e4ba
FM
11 {{^element.hardfrozen}}
12 {{^element.frozen}}
13 <input type="hidden" name="{{element.name}}" value="{{element.deselectedvalue}}">
14 {{/element.frozen}}
15 {{#element.frozen}}
16 <input type="hidden" name="{{element.name}}" value="{{element.frozenvalue}}">
17 {{/element.frozen}}
18 {{/element.hardfrozen}}
63e4df60
DW
19 <input type="checkbox"
20 name="{{element.name}}"
3132ba02 21 class="{{element.extraclasses}}"
63e4df60
DW
22 {{#element.selectedvalue}}
23 value="{{element.selectedvalue}}"
24 {{/element.selectedvalue}}
25 id="{{element.id}}" {{#element.checked}}checked{{/element.checked}}
26 {{#error}}
27 autofocus aria-describedby="id_error_{{element.name}}"
c9c1e4ba
FM
28 {{/error}}
29 {{#element.frozen}}
30 disabled
31 {{/element.frozen}}
32 {{{element.attributes}}} >
dc801cb6
MN
33 {{#text}}
34 {{{.}}}
35 {{/text}}
36 {{^text}}
37 {{{label}}}
38 {{/text}}
39 </label>
40 <span class="text-nowrap">
d91cbe1e 41 {{#advanced}}<abbr class="initialism text-info" title="{{#str}}advanced{{/str}}">!</abbr>{{/advanced}}
dc801cb6
MN
42 {{{helpbutton}}}
43 </span>
63e4df60
DW
44 <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
45 {{{error}}}
46 </div>
47 </div>
48</div>
49{{^element.frozen}}
50{{#js}}
2ede86d7 51require(['theme_boost/form-display-errors'], function(module) {
63e4df60
DW
52 module.enhance({{#quote}}{{element.id}}{{/quote}});
53});
54{{/js}}
55{{/element.frozen}}