{% load bootstrap i18n %} {{ form.media }}
{% if csrf %}{% csrf_token %}{% endif %} {% for field in form.hidden_fields %} {{ field }} {% endfor %} {% for field in form.visible_fields %}
{% if labels|default_if_none:True and not field|substring:'type="checkbox"' and not field|substring:'type="radio"' %} {% endif %} {% if field|substring:'type="checkbox"' or field|substring:'type="radio"' %} {{ field|add_class:"form-check-input" }} {% elif field|startswith:"{{ field.help_text }}{% endif %} {% if field.errors %}{{ field.errors }}{% endif %}
{% endfor %} {% if submit|default_if_none:True %}
{% if delete_url %} {% trans "Delete" %} {% endif %}
{% endif %}