{% load bootstrap3 boilerplate %}
{% bootstrap_label field.label %}{% if field.help_text %}{% endif %} | {% else %} {% if formset.can_delete %}{% if form.instance.pk %}{% bootstrap_label field.label %}{% endif %} | {% endif %} {% endif %} {% endfor %}||||
---|---|---|---|---|---|
{% bootstrap_field field show_label=False size='sm' form_group_class='' %} | {% else %} {% if formset.can_delete %}{% if form.instance.pk %}{{ field }}{% endif %} | {% endif %} {% endif %} {% endfor %} {% if form.non_field_errors %}||||
{% for err in form.non_field_errors %} {{ err }}. {% endfor %} | {% endif %}