weekly release 3.2dev
[moodle.git] / theme / boost / templates / core_form / element-radio.mustache
CommitLineData
344321e1
DW
1<div class="form-group row {{#error}}has-danger{{/error}}">
2 <div class="col-md-9 push-md-3 checkbox">
3 <label>
63e4df60 4 {{^element.frozen}}
344321e1
DW
5 <input type="radio" name="{{element.name}}"
6 id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
63e4df60 7 {{element.checked}}checked{{/element.checked}}
344321e1
DW
8 {{#error}}
9 autofocus aria-describedby="id_error_{{element.name}}"
10 {{/error}} {{{element.attributes}}} >
63e4df60 11 {{/element.frozen}}
344321e1
DW
12 {{{label}}} {{{helpbutton}}}
13 </label>
14 <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
15 {{{error}}}
16 </div>
17 </div>
18</div>
63e4df60 19{{^element.frozen}}
344321e1 20{{#js}}
2ede86d7 21require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 22 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 23});
63e4df60
DW
24{{/js}}
25{{/element.frozen}}