radio_fields.twig 401 B

1234567891011
  1. {% if class is not empty %}
  2. <div class="{{ class }}">
  3. {% endif %}
  4. <input type="radio" name="{{ html_field_name }}" id="{{ html_field_id|raw }}" value="{{ choice_value }}"{{ checked ? ' checked="checked"' }} />
  5. <label for="{{ html_field_id|raw }}">{{ (escape_label ? choice_label|e : choice_label)|raw }}</label>
  6. {% if is_line_break %}
  7. <br />
  8. {% endif %}
  9. {% if class is not empty %}
  10. </div>
  11. {% endif %}