{# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #} {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #} {% extends ea.templatePath('layout') %} {% form_theme new_form with ea.crud.formThemes only %} {% trans_default_domain ea.i18n.translationDomain %} {% block body_id 'ea-new-' ~ entity.name ~ '-' ~ entity.primaryKeyValue %} {% block body_class 'ea-new ea-new-' ~ entity.name %} {% block configured_head_contents %} {{ parent() }} {% for htmlContent in new_form.vars.ea_crud_form.assets.headContents %} {{ htmlContent|raw }} {% endfor %} {% endblock %} {% block configured_stylesheets %} {{ parent() }} {% for css_asset in new_form.vars.ea_crud_form.assets.cssFiles %} {% endfor %} {% for webpack_encore_entry in new_form.vars.ea_crud_form.assets.webpackEncoreEntries %} {{ ea_call_function_if_exists('encore_entry_link_tags', webpack_encore_entry) }} {% endfor %} {% endblock %} {% block configured_javascripts %} {{ parent() }} {% for js_asset in new_form.vars.ea_crud_form.assets.jsFiles %} {% endfor %} {% for webpack_encore_entry in new_form.vars.ea_crud_form.assets.webpackEncoreEntries %} {{ ea_call_function_if_exists('encore_entry_script_tags', webpack_encore_entry) }} {% endfor %} {% endblock %} {% block content_title %} {# {%- apply spaceless -%} {% set default_title = ea.crud.defaultPageTitle('new')|trans(ea.i18n.translationParameters, 'EasyAdminBundle') %} {{ ea.crud.customPageTitle is null ? default_title|raw : ea.crud.customPageTitle('new')|trans(ea.i18n.translationParameters)|raw }} {%- endapply -%} #} {% endblock %} {% block content_header_wrapper %} {# {% for action in entity.actions %} {{ include(action.templatePath, { action: action }, with_context = false) }} {% endfor %} #} {% endblock %} {% block main %}
{% set default_title = ea.crud.defaultPageTitle('new')|trans(ea.i18n.translationParameters, 'EasyAdminBundle') %}

{{ ea.crud.customPageTitle is null ? default_title|raw : ea.crud.customPageTitle('new')|trans(ea.i18n.translationParameters)|raw }}

{% block new_form %} {{ form(new_form) }} {% endblock new_form %}
{% endblock %} {% block body_javascript %} {{ parent() }} {# {{ include('@EasyAdmin/crud/includes/_select2_widget.html.twig') }} #} {% endblock %}