{% load patched_widget_tweaks %} {% load form_block %} {% load utils %} {% if not i %} {% item_form formset item as item_form %} {% else %} {% item_form formset i as item_form %} {% endif %} {% with styles=form_block.form.label_class.LabelStyle %} {% if form_block.items_sortable %} {% endif %} {% item_columns item form_block uploading as columns %} {% form_hidden item_form 'id' as hidden_id %} {% for field in form_block.collection_fields_as_blocks %} {% block_field item_form field as form_field %} {% if form_block.fixed and forloop.first %} {{ form_field.initial }} {% else %} {% endif %} {% if forloop.first %} {% if not i %} {{ hidden_id }} {% else %} {% endif %} {% endif %} {% empty %} {% if item|underscore:'filesize' %} download_done ({{ item|underscore:'filesize'|human_readable }}) {% endif %} {{ hidden_id }} {% endfor %} {% if form_block.has_file %} {% with error=item|underscore:'error' file=item|underscore:'file' %} {% with hide=columns.progress|yesno:', style="display: none;"'|safe %}
0%
{% endwith %} {% with hide=columns.message|yesno:', style="display: none;"'|safe %} {% if not hide %}{{ item|underscore:'message' }}{% endif %} {% endwith %} {% with hide=columns.upload|yesno:', style="display: none;"'|safe %} {% endwith %} {% endwith %} {% endif %} {% if not form_block.fixed %} {% endif %} {% endwith %}