{% extends "main_card.html.twig" %} {% block card_content %}
{% if entity.ID %} {% trans with {'%name': entity.name} %}edit.caption{% endtrans %} {% else %} {% trans %}new.caption{% endtrans %} {% endif %}
{{ form_start(form) }} {% if block('additional_pills') is not empty %} {% endif %}
{{ form_row(form.name) }} {% if form.parent%} {{ form_row(form.parent) }} {% endif %} {% if form.not_selectable is defined %} {{ form_row(form.not_selectable) }} {% endif %} {% block additional_controls %}{% endblock %} {% block comment %} {{ form_row(form.comment) }} {% endblock %}
{% block additional_panes %}{% endblock %}
{{ form_row(form.save) }} {{ form_row(form.reset) }} {{ form_end(form) }} {# Only include on existing parts #} {% if entity.id %} {{ include('AdminPages/_delete_form.html.twig') }} {% endif %}
{% include "AdminPages/_info.html.twig" %}
{% if entity.id %}
{% include 'AdminPages/_export_form.html.twig' with {'path' : path('attachment_type_export', {'id': entity.id})} %}
{% else %} {# For new element we have a combined import/export tab #}
{{ form_start(import_form) }} {{ form_end(import_form) }}
{% trans %}export_all.label{% endtrans %} {% include 'AdminPages/_export_form.html.twig' with {'path' : path('attachment_type_export_all')} %}
{% trans %}mass_creation.help{% endtrans %} {{ form(mass_creation_form) }}
{% endif %}
{% endblock %}