<legend>Radiobuttons</legend>
<input type="radio" value="1" placeholder="" id="radio-1" name="radio-choice">
<label for="radio-1">Radio 1</label>
<input type="radio" value="2" placeholder="" id="radio-2" name="radio-choice">
<label for="radio-2">Radio 2</label>
{% if label %}
<label for="{{ input.id }}">{{ label }}</label>
{% endif %}
{% if legend %}
<legend>{{ legend }}</legend>
{% endif %}
{% for item in inputs %}
{% render "@element-form", item.input, true %}
{% endfor %}
{
"label": false,
"inputs": [
{
"input": {
"label": "Radio 1",
"type": "radio",
"attr": "name=\"radio-choice\"",
"placeholder": null,
"id": "radio-1",
"value": 1
}
},
{
"input": {
"label": "Radio 2",
"type": "radio",
"attr": "name=\"radio-choice\"",
"placeholder": null,
"id": "radio-2",
"value": 2
}
}
],
"legend": "Radiobuttons"
}
No notes defined.