{% load form_block %} {% block_formset formsets form_block as formset %} {% with styles=form_block.form.label_class.LabelStyle %} {% with label=labels|get_by_style:styles.VERTICAL %} {% if label %}
{% include "./label_vertical.html" %}
{% endif %} {% endwith %} {% endwith %}
{% with tsp=form_block.tablet_span dsp=form_block.desktop_span %}
{% endwith %}
{% for item in items %} {% include "./collection_item.html" %} {% empty %} {% if form_block.fixed %} {% for name in form_block.fixed_choices %} {% include "./collection_item.html" with i=forloop.counter %} {% endfor %} {% endif %} {% endfor %} {% if formset.total_error_count and not formset.non_form_errors %} {% if form_block.items_sortable %}{% endif %} {% for field in form_block.collection_fields_as_blocks %} {% empty %} {% endfor %} {% if form_block.has_file %} {% if error or form_block.file_optional %}{% endif %} {% endif %} {% if not form_block.fixed %}{% endif %} {% endif %}
{% if not form_block.fixed %}
{% if form_block.has_file %} 1 %}multiple{% endif %} style="display: none; opacity: 0; width: 0;"/> {% endif %}
{% endif %} {{ formset.management_form }} {% if formset.non_form_errors %}
{% endif %}