MDL-56800 theme_boost: Display frozen form's radios as disabled
[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}}}">
344321e1
DW
15<input type="radio" name="{{element.name}}"
16 id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
e816b872 17 {{#element.checked}}checked{{/element.checked}}
edd83703 18 {{#element.frozen}}disabled{{/element.frozen}}
344321e1
DW
19 {{#error}}
20 autofocus aria-describedby="id_error_{{element.name}}"
21 {{/error}}
22 {{{element.attributes}}} >
70f00107
DW
23 {{{label}}}
24</label> {{{helpbutton}}}
344321e1
DW
25<span class="form-control-feedback" id="id_error_{{element.name}}" {{^error}} style="display: none;"{{/error}}>
26 {{{error}}}
27</span>
63e4df60 28{{^element.frozen}}
344321e1 29{{#js}}
2ede86d7 30require(['theme_boost/form-display-errors'], function(module) {
4691b2d0 31 module.enhance({{#quote}}{{element.id}}{{/quote}});
344321e1 32});
63e4df60
DW
33{{/js}}
34{{/element.frozen}}