vendor/easycorp/easyadmin-bundle/src/Resources/views/crud/new.html.twig line 1

Open in your IDE?
  1. {# @var ea \EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext #}
  2. {# @var entity \EasyCorp\Bundle\EasyAdminBundle\Dto\EntityDto #}
  3. {% extends ea.templatePath('layout') %}
  4. {% form_theme new_form with ea.crud.formThemes only %}
  5. {% trans_default_domain ea.i18n.translationDomain %}
  6. {% block body_id 'ea-new-' ~ entity.name %}
  7. {% block body_class 'ea-new ea-new-' ~ entity.name %}
  8. {% block configured_head_contents %}
  9. {{ parent() }}
  10. {% for htmlContent in new_form.vars.ea_crud_form.assets.headContents %}
  11. {{ htmlContent|raw }}
  12. {% endfor %}
  13. {% endblock %}
  14. {% block configured_stylesheets %}
  15. {{ parent() }}
  16. {{ include('@EasyAdmin/includes/_css_assets.html.twig', { assets: new_form.vars.ea_crud_form.assets.cssAssets }, with_context = false) }}
  17. {{ include('@EasyAdmin/includes/_encore_link_tags.html.twig', { assets: new_form.vars.ea_crud_form.assets.webpackEncoreAssets }, with_context = false) }}
  18. {% endblock %}
  19. {% block configured_javascripts %}
  20. {{ parent() }}
  21. {{ include('@EasyAdmin/includes/_js_assets.html.twig', { assets: new_form.vars.ea_crud_form.assets.jsAssets }, with_context = false) }}
  22. {{ include('@EasyAdmin/includes/_encore_script_tags.html.twig', { assets: new_form.vars.ea_crud_form.assets.webpackEncoreAssets }, with_context = false) }}
  23. {% endblock %}
  24. {% block content_title %}
  25. {%- apply spaceless -%}
  26. {% set custom_page_title = ea.crud.customPageTitle('new') %}
  27. {{ custom_page_title is null
  28. ? (ea.crud.defaultPageTitle('new')|trans(ea.i18n.translationParameters, 'EasyAdminBundle'))|raw
  29. : (custom_page_title|trans(ea.i18n.translationParameters))|raw }}
  30. {%- endapply -%}
  31. {% endblock %}
  32. {% block page_actions %}
  33. {% for action in entity.actions %}
  34. {{ include(action.templatePath, { action: action }, with_context = false) }}
  35. {% endfor %}
  36. {% endblock %}
  37. {% block main %}
  38. {% block new_form %}
  39. {{ form(new_form) }}
  40. {% endblock new_form %}
  41. {% endblock %}