{% for value, text in field.field.choices %}
{% endfor %}
{% if field.errors %}
{{ field.errors }}
{% endif %}
{% else %}
{% if field|is_checkbox %}
{# for checkbox only, include the control inside the label element and before the label text #}
{% elif field.field.required or flag_required %}
{# put a required class on the label, in case we want to style it #}
{{ field.label_tag(attrs={'class': 'required'}) }}
{% else %}
{{ field.label_tag() }}
{% endif %}
{% if not field|is_checkbox %}
{{ field }}
{% endif %}
{% for error in field.errors %}
{{ error }}
{% endfor %}
{% if field.help_text %}