{% set errors = errors | default([]) %}
<fieldset class="form-group {{ (errors | length > 0) ? 'has-error': '' }} {{ styleModifier|default('') }}">
{% if title %}
<div>
<legend class="{{ titleStyleModifier|default('') }}">{{ title|default('') }}</legend>
</div>
{% endif %}
{% for item in options|default([]) %}
{{ include('Form/Includes/radio.html.twig', defaultOptions|default([]) | merge({
"id": id ~ '-' ~ item.value,
"styleModifier": isInline|default(null) ? "form-check-inline align-top" : "",
"name": name,
"inputAttributes": {'value': item.value},
}) | merge (item)) }}
{% endfor %}
{{ include('Form/Includes/form-errors.html.twig', _context) }}
{{ include('Form/Includes/form-control-help-text.html.twig', _context) }}
</fieldset>