{% load bootstrap_tags %} {% if field.is_hidden %} {{ field }} {% else %}
{% if field.label and not field|is_checkbox %} {% 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|is_checkbox %} {% 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 %}