{% with styles=form_block.form.label_class.LabelStyle %}
{% with label=labels|get_by_style:styles.VERTICAL %}
{% if label %}
{{ label.display_inline }}
{% endif %}
{% endwith %}
{% if form_block.fixed %}
{% for item in items %}
{% item_form formset item as item_form %}
{% with field_block=form_block.collection_fields_as_blocks.0 %}
{% block_field item_form field_block as field %}
{{ field.initial }}{% if not forloop.last %},{% endif %}
{% endwith %}
{% endfor %}
{% else %}
{% if items %}
{% endif %}
{% for item in items %}
{% item_form formset item as item_form %}
{% with file=item|underscore:'file' type=item|underscore:'file_type' %}
{% if form_block.has_file and file %}
{% file_thumbnail file as thumbnail %}
{% if thumbnail %}
{% else %}