MDL-55417 theme_noname: Update mform templates to re-use javascript
[moodle.git] / theme / noname / 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>
4 <input type="radio" name="{{element.name}}"
5 id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
6 {{#element.frozen}}readonly disabled{{/element.frozen}}
7 {{#error}}
8 autofocus aria-describedby="id_error_{{element.name}}"
9 {{/error}} {{{element.attributes}}} >
10 {{{label}}} {{{helpbutton}}}
11 </label>
12 <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
13 {{{error}}}
14 </div>
15 </div>
16</div>
17{{#js}}
4691b2d0
DW
18require(['theme_noname/form-display-errors'], function(module) {
19 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1
DW
20});
21{{/js}}