{% if field.is_checkbox %}
{{ field }}
{% if field.label %}{{ field.label_tag }}{% endif %} {% else %} {% if field.use_fieldset %} {% if field.label %}{{ field.legend_tag }}{% endif %} {% else %} {% if field.label %}{{ field.label_tag }}{% endif %} {% endif %} {{ field }} {% endif %} {% if field.errors %}

{% for error in field.errors %}{{ error }} {% endfor %}

{% endif %} {% if field.help_text %}
{{ field.help_text|safe }}
{% endif %} {% if field.is_checkbox %}
{% elif field.use_fieldset %}{% endif %}