MDL-56462 boost: Fix assign grading options form
[moodle.git] / theme / boost / templates / core_form / element-radio.mustache
CommitLineData
e816b872
DP
1{{!
2 @template theme_boost/core_form/element-radio
3
4 Example context (json):
5 {
6 "element": {
7 "id": "test-radio",
8 "name": "Test radio button",
9 "size": "10"
10 }
11 }
12
13}}
58488d0f 14<div class="form-group row {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
344321e1
DW
15 <div class="col-md-9 push-md-3 checkbox">
16 <label>
63e4df60 17 {{^element.frozen}}
344321e1
DW
18 <input type="radio" name="{{element.name}}"
19 id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
e816b872 20 {{#element.checked}}checked{{/element.checked}}
344321e1
DW
21 {{#error}}
22 autofocus aria-describedby="id_error_{{element.name}}"
23 {{/error}} {{{element.attributes}}} >
63e4df60 24 {{/element.frozen}}
70f00107
DW
25 {{{label}}}
26 </label> {{{helpbutton}}}
344321e1
DW
27 <div class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
28 {{{error}}}
29 </div>
30 </div>
31</div>
63e4df60 32{{^element.frozen}}
344321e1 33{{#js}}
2ede86d7 34require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 35 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 36});
63e4df60
DW
37{{/js}}
38{{/element.frozen}}