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