{% load bootstrap %}
{% if field|is_checkbox %} {% if layout == 'horizontal' %}
{% endif %}
{% if field.auto_id %} {% endif %}
{% else %} {% if field.auto_id %} {% endif %} {% if layout == 'horizontal' %}
{% endif %} {{ field|bootstrapwidget }} {% endif %} {% if layout == 'horizontal' %}
{% endif %} {% for error in field.errors %} {{ error }} {% endfor %} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}