{% form_theme form with easyadmin_config('design.form_theme') only %}
{% set _entity_config = easyadmin_entity(app.request.query.get('entity')) %}
{% trans_default_domain _entity_config.translation_domain %}
{% set _trans_parameters = { '%entity_name%': _entity_config.name|trans, '%entity_label%': _entity_config.label|trans } %}
{% extends _entity_config.templates.layout %}
{% block body_id 'easyadmin-new-' ~ _entity_config.name %}
{% block content_title %}
{% apply spaceless %}
{% set _default_title = 'new.page_title'|trans(_trans_parameters, 'EasyAdminBundle') %}
{{ _entity_config.new.title is defined ? _entity_config.new.title|trans(_trans_parameters) : _default_title }}
{% endapply %}
{% endblock %}
{% block content_footer_wrapper '' %}
{% block main %}
{% block entity_form %}
{{ form(form) }}
{% endblock entity_form %}
{% endblock %}
{% block head_stylesheets %}
{{ parent() }}
{% endblock %}
{% block plugin_javascript %}
{{ parent() }}
{% endblock %}
{% block script_javascript %}
{{ parent() }}
{#
#}
{#{{ include('@EasyAdmin/default/includes/_select2_widget.html.twig') }}#}
{% endblock %}