MDL-56462 boost: Fix assign grading options form
[moodle.git] / theme / boost / templates / core_form / element-radio-inline.mustache
CommitLineData
e816b872
DP
1{{!
2@template theme_boost/core_form/element-radio-online
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<label class="form-check-inline {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
63e4df60 15{{^element.frozen}}
344321e1
DW
16<input type="radio" name="{{element.name}}"
17 id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
e816b872 18 {{#element.checked}}checked{{/element.checked}}
344321e1
DW
19 {{#error}}
20 autofocus aria-describedby="id_error_{{element.name}}"
21 {{/error}}
22 {{{element.attributes}}} >
63e4df60 23{{/element.frozen}}
70f00107
DW
24 {{{label}}}
25</label> {{{helpbutton}}}
344321e1
DW
26<span class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
27 {{{error}}}
28</span>
63e4df60 29{{^element.frozen}}
344321e1 30{{#js}}
2ede86d7 31require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 32 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 33});
63e4df60
DW
34{{/js}}
35{{/element.frozen}}