MDL-56800 theme_boost: Remove name from hardFrozen radio
[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}}}">
06ded0ed
AN
14{{^element.hardfrozen}}{{#element.frozen}}{{#element.checked}}
15 <input type="hidden" name="{{element.name}}" value="{{element.value}}">
16{{/element.checked}}{{/element.frozen}}{{/element.hardfrozen}}
17<input type="radio" {{^element.hardfrozen}}name="{{element.name}}"{{/element.hardfrozen}}
c03f1de1 18 id="{{element.id}}" value="{{element.value}}"
e816b872 19 {{#element.checked}}checked{{/element.checked}}
edd83703 20 {{#element.frozen}}disabled{{/element.frozen}}
344321e1
DW
21 {{#error}}
22 autofocus aria-describedby="id_error_{{element.name}}"
23 {{/error}}
24 {{{element.attributes}}} >
70f00107 25 {{{label}}}
dc801cb6
MN
26</label>
27{{#text}}
28 <em>{{{.}}}</em>
29{{/text}}
30{{{helpbutton}}}
344321e1
DW
31<span class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
32 {{{error}}}
33</span>
63e4df60 34{{^element.frozen}}
344321e1 35{{#js}}
2ede86d7 36require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 37 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 38});
63e4df60
DW
39{{/js}}
40{{/element.frozen}}