{% load form_helpers %} {% load helpers %} {% if field|widget_type == 'checkboxinput' %}
{{ field }}
{% if field.help_text %} {{ field.help_text|safe }} {% endif %} {% if bulk_nullable %}
{% endif %}
{% elif field|widget_type == 'textarea' and not field.label %}
{% if label %} {% else %} {% endif %}
{{ field }} {% if field.help_text %} {{ field.help_text|safe }} {% endif %} {% if bulk_nullable %}
{% endif %}
{% elif field|widget_type == 'slugwidget' %}
{{ field }}
{% elif field|widget_type == 'selectspeedwidget' %} {# This is outside the widget because bootstrap requires a specific order for border-radius purposes. #}
{% elif field|widget_type == 'fileinput' or field|widget_type == 'clearablefileinput' %}
{% elif field|widget_type == 'selectmultiple' %}
{{ field }} {% if bulk_nullable %}
{% endif %}
{% else %}
{{ field }} {% if field.help_text %} {{ field.help_text|safe }} {% endif %}
{% if field.field.required %} {{ field.label }} field is required. {% endif %}
{% if bulk_nullable %}
{% endif %}
{% endif %}