{% load bootstrap_tags %} {% if field.is_hidden %} {{ field }} {% else %}
{% if field.label and not field|css_class == "checkboxinput" %} {% endif %} {% if field|css_class == "checkboxselectmultiple" %}
{% include "bootstrap/_field_errors_block.html" %} {% for choice in field.field.choices %}
{% endfor %} {% include "bootstrap/_field_help_text.html" %}
{% endif %} {% if field|css_class == "radioselect" %}
{% include "bootstrap/_field_errors_block.html" %} {% for choice in field.field.choices %}
{% endfor %} {% include "bootstrap/_field_help_text.html" %}
{% endif %} {% if field|css_class != "checkboxselectmultiple" and field|css_class != "radioselect" %} {% if field|css_class == "checkboxinput" %}
{% include "bootstrap/_field_errors_block.html" %}
{% include "bootstrap/_field_help_text.html" %}
{% else %}
{{ field }} {% include "bootstrap/_field_errors.html" %} {% include "bootstrap/_field_help_text.html" %}
{% endif %} {% endif %}
{% endif %}