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

{{ field.help_text|safe }}

{% endif -%}