Skip to content

Commit 83cc28e

Browse files
committed
allow disabling segmented options
1 parent 5de8f72 commit 83cc28e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/form/theme.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@
183183
{% for child in form %}
184184
<div>
185185
{%- set type = form.vars.multiple ? 'checkbox' : 'radio' -%}
186-
<input type="{{ type }}" class="input--{{ type }}" id="{{ child.vars.id }}" name="{{ child.vars.full_name }}"{% if child.vars.value is defined %} value="{{ child.vars.value }}"{% endif %}{% if child.vars.checked %} checked="checked"{% endif %} />
186+
<input type="{{ type }}" class="input--{{ type }}" id="{{ child.vars.id }}" name="{{ child.vars.full_name }}"{% if child.vars.value is defined %} value="{{ child.vars.value }}"{% endif %}{% if child.vars.checked %} checked="checked"{% endif %} {% if child.vars.disabled %} disabled="disabled"{% endif %}/>
187187
<label for="{{ child.vars.id }}">
188188
<span class="segmented-label">
189189
<span>{{ child.vars.label }}</span>

0 commit comments

Comments
 (0)