mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-56800 theme_boost: Clean up rendering of the radio buttons
The <input type="radio"> element does not support the size attribute so there is no point of rendering it. Also fixed the example data as the field name must not contain any whitespace.
This commit is contained in:
parent
edd837038a
commit
c03f1de198
@ -4,16 +4,15 @@
|
||||
Example context (json):
|
||||
{
|
||||
"element": {
|
||||
"id": "test-radio",
|
||||
"name": "Test radio button",
|
||||
"size": "10"
|
||||
"id": "id_test_radio0",
|
||||
"name": "test_radio_button"
|
||||
}
|
||||
}
|
||||
|
||||
}}
|
||||
<label class="form-check-inline {{#error}}has-danger{{/error}} fitem {{#advanced}}advanced{{/advanced}} {{{element.extraclasses}}}">
|
||||
<input type="radio" name="{{element.name}}"
|
||||
id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
|
||||
id="{{element.id}}" value="{{element.value}}"
|
||||
{{#element.checked}}checked{{/element.checked}}
|
||||
{{#element.frozen}}disabled{{/element.frozen}}
|
||||
{{#error}}
|
||||
|
@ -4,9 +4,8 @@
|
||||
Example context (json):
|
||||
{
|
||||
"element": {
|
||||
"id": "test-radio",
|
||||
"name": "Test radio button",
|
||||
"size": "10"
|
||||
"id": "id_test_radio0",
|
||||
"name": "test_radio_button"
|
||||
}
|
||||
}
|
||||
|
||||
@ -15,7 +14,7 @@
|
||||
<div class="col-md-9 push-md-3 checkbox">
|
||||
<label>
|
||||
<input type="radio" name="{{element.name}}"
|
||||
id="{{element.id}}" value="{{element.value}}" size="{{element.size}}"
|
||||
id="{{element.id}}" value="{{element.value}}"
|
||||
{{#element.checked}}checked{{/element.checked}}
|
||||
{{#element.frozen}}disabled{{/element.frozen}}
|
||||
{{#error}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user