{% load form_tags %} {% load widget_tweaks %} {% if oneline %} {{ field }} {% else %}
{% if field|widget_type == 'sectionwidget' %} {% if not forloop.first %}
{% endif %} {{ field }} {% else %} {% if labels != 'False' and not 'no-label' in field.field.widget.attrs.class %}
{% endif %} {% if field|widget_type == 'checkboxinput' %}
{% if field.errors %}

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

{% endif %}
{% else %}
{{ field|add_class:"form-control" }}
{% if field.errors %}

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

{% else %} {% if field.help_text %}

{{ field.help_text }}

{% endif %} {% endif %} {% endif %} {% if labels != 'False' and not 'no-label' in field.field.widget.attrs.class %}
{% endif %} {% endif %}
{% endif %}