{% set label_att = {'class': 'control-label ' + classes.label} -%} {% set field_att = {} -%} {% if field.auto_id -%} {% do label_att.update({'for': field.auto_id}) -%} {% do field_att.update({'id': field.auto_id}) -%} {% endif -%} {% if field.field.required -%} {% do tpl.add_css_classes_to_dict(label_att, 'required') -%} {% endif -%} {{ field.label }}
{% for choice in field -%}
{% endfor -%} {% for error in field.errors -%}
{{ error }}
{% endfor -%} {% if field.help_text -%}

{{ field.help_text|safe }}

{% endif -%}