{% spaceless %} {% if collection.legend %}{{ collection.legend }}{% endif %} {% if collection.has_many %}
{% endif %} {% for holder in collection %} {% if holder.is_single %} {% elif holder.is_first %} {% if holder.is_template %} {% endif %} {% if collection.is_sortable %}
{% endif %} {% endif %} {{ holder }} {% if holder.is_single %}
{% elif holder.is_last %} {% include remove_collection_button|default:"formset/default/buttons/remove_collection.html" %} {% if holder.is_template %} {% include add_collection_button|default:"formset/default/buttons/add_collection.html" %} {% endif %} {% endif %} {% endfor %} {% if collection.help_text %}{% include help_text_template|default:"formset/default/help_text.html" with help_text=collection.help_text %}{% endif %} {% if collection.has_many %}
{% endif %} {% endspaceless %}