MDL-56858 theme_boost: Correct bad merge conflict
[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": {
c03f1de1
DM
7 "id": "id_test_radio0",
8 "name": "test_radio_button"
e816b872
DP
9 }
10 }
11
12}}
58488d0f 13<label class="form-check-inline {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
344321e1 14<input type="radio" name="{{element.name}}"
c03f1de1 15 id="{{element.id}}" value="{{element.value}}"
e816b872 16 {{#element.checked}}checked{{/element.checked}}
edd83703 17 {{#element.frozen}}disabled{{/element.frozen}}
344321e1
DW
18 {{#error}}
19 autofocus aria-describedby="id_error_{{element.name}}"
20 {{/error}}
21 {{{element.attributes}}} >
70f00107 22 {{{label}}}
dc801cb6
MN
23</label>
24{{#text}}
25 <em>{{{.}}}</em>
26{{/text}}
27{{{helpbutton}}}
344321e1
DW
28<span class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
29 {{{error}}}
30</span>
63e4df60 31{{^element.frozen}}
344321e1 32{{#js}}
2ede86d7 33require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 34 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 35});
63e4df60
DW
36{{/js}}
37{{/element.frozen}}