{% from 'forms/_form.html' import form_header, form_footer, form_row, form_rows %} {%- block content %} {{ form_header(form, id='attachment-upload-form', classes=('full-width' if not existing_attachment else ''), action=action) }} {% if existing_attachment %} {{ form_row(form.file) }} {% else %} {{ form_row(form.files, skip_label=true) }} {% endif %} {{ form_rows(form, skip=('folder', 'protected', 'acl', 'files', 'file')) }} {{ form_rows(form, fields=('folder', 'protected')) }} {{ protection_message | safe }} {{ form_rows(form, fields=('acl',)) }} {% call form_footer(attach_form) %}