{{ form_start(form) }} {% do form.data.setRendered %}
{{ form_row(form.file) }}
{{ form_row(form.title, {'label' : 'label.title'} ) }}
{{ form_row(form.visibility, {'label' : 'label.visibility'} ) }}
{{ form_row(form.childrenTitle, {'label' : 'label.children_title', 'suggestions': suggestedChildrenTitles|default}) }}
{{ form_row(form.itemsTitle, {'label' : 'label.items_title', 'suggestions': suggestedChildrenTitles|default} ) }}
{{ form_row(form.parent, {'label' : 'label.parent'} ) }}

{{ 'title.additional_fields'|trans }}

{% if isFeatureEnabled('templates') %}
{{ form_row(form.template, {'label' : 'label.apply_template', 'attr' : {'class' : 'selectTemplate'}}) }}
{% endif %}
{{ include('App/Collection/_form_data_block.html.twig', {data: collection.data}) }}
{% if app.request.get('_route') == 'app_collection_add' %} {% if app.request.query.has('parent') %} {% set cancelUrl = path('app_collection_show', {id: app.request.query.get('parent')}) %} {% else %} {% set cancelUrl = path('app_collection_index') %} {% endif %} {% else %} {% set cancelUrl = path('app_collection_show', {id: collection.id}) %} {% endif %} {{ 'btn.cancel'|trans }}
{{ form_end(form) }}