MDL-56462 boost: Fix assign grading options form
[moodle.git] / theme / boost / templates / core_form / element-radio-inline.mustache
1 {{!
2 @template theme_boost/core_form/element-radio-online
4    Example context (json):
5    {
6     "element": {
7         "id": "test-radio",
8         "name": "Test radio button",
9         "size": "10"
10       }
11    }
13 }}
14 <label class="form-check-inline {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
15 {{^element.frozen}}
16 <input type="radio" name="{{element.name}}"
17     id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
18     {{#element.checked}}checked{{/element.checked}}
19     {{#error}}
20         autofocus aria-describedby="id_error_{{element.name}}"
21     {{/error}}
22     {{{element.attributes}}} >
23 {{/element.frozen}}
24     {{{label}}}
25 </label> {{{helpbutton}}}
26 <span class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
27     {{{error}}}
28 </span>
29 {{^element.frozen}}
30 {{#js}}
31 require(['theme_boost/form-display-errors'], function(module) {
32     module.enhance({{#quote}}{{element.id}}{{/quote}});
33 });
34 {{/js}}
35 {{/element.frozen}}