var/cache/dev/twig/da/da92effbb4b714ba8ccb1ec92f876fcd.php line 49

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @EasyAdmin/crud/new.html.twig */
  15. class __TwigTemplate_609fb80827e410894fa1d05509fbd048 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'body_id' => [$this'block_body_id'],
  25.             'body_class' => [$this'block_body_class'],
  26.             'head_javascript' => [$this'block_head_javascript'],
  27.             'configured_head_contents' => [$this'block_configured_head_contents'],
  28.             'configured_body_contents' => [$this'block_configured_body_contents'],
  29.             'configured_stylesheets' => [$this'block_configured_stylesheets'],
  30.             'configured_javascripts' => [$this'block_configured_javascripts'],
  31.             'content_title' => [$this'block_content_title'],
  32.             'page_actions' => [$this'block_page_actions'],
  33.             'main' => [$this'block_main'],
  34.             'new_form' => [$this'block_new_form'],
  35.         ];
  36.     }
  37.     protected function doGetParent(array $context)
  38.     {
  39.         // line 3
  40.         return $this->loadTemplate(CoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'3$this->source); })()), "templatePath", ["layout"], "method"falsefalsefalse3), "@EasyAdmin/crud/new.html.twig"3);
  41.     }
  42.     protected function doDisplay(array $context, array $blocks = [])
  43.     {
  44.         $macros $this->macros;
  45.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  46.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EasyAdmin/crud/new.html.twig"));
  47.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  48.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@EasyAdmin/crud/new.html.twig"));
  49.         // line 4
  50.         $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["new_form"]) || array_key_exists("new_form"$context) ? $context["new_form"] : (function () { throw new RuntimeError('Variable "new_form" does not exist.'4$this->source); })()), CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'4$this->source); })()), "crud", [], "any"falsefalsefalse4), "formThemes", [], "any"falsefalsefalse4), false);
  51.         // line 6
  52.         $context["__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'6$this->source); })()), "i18n", [], "any"falsefalsefalse6), "translationDomain", [], "any"falsefalsefalse6);
  53.         // line 11
  54.         $context["ea_field_assets"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'11$this->source); })()), "crud", [], "any"falsefalsefalse11), "fieldAssets", [Twig\Extension\CoreExtension::constant("EasyCorp\\Bundle\\EasyAdminBundle\\Config\\Crud::PAGE_NEW")], "method"falsefalsefalse11);
  55.         // line 3
  56.         yield from $this->getParent($context)->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  57.         
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  59.         
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  61.     }
  62.     // line 8
  63.     public function block_body_id($context, array $blocks = [])
  64.     {
  65.         $macros $this->macros;
  66.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  67.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_id"));
  68.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  69.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_id"));
  70.         yield Twig\Extension\EscaperExtension::escape($this->env, ("ea-new-" CoreExtension::getAttribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'8$this->source); })()), "name", [], "any"falsefalsefalse8)), "html"nulltrue);
  71.         
  72.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  73.         
  74.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  75.         return; yield '';
  76.     }
  77.     // line 9
  78.     public function block_body_class($context, array $blocks = [])
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_class"));
  83.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body_class"));
  85.         yield Twig\Extension\EscaperExtension::escape($this->env, ("ea-new ea-new-" CoreExtension::getAttribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'9$this->source); })()), "name", [], "any"falsefalsefalse9)), "html"nulltrue);
  86.         
  87.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  88.         
  89.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  90.         return; yield '';
  91.     }
  92.     // line 13
  93.     public function block_head_javascript($context, array $blocks = [])
  94.     {
  95.         $macros $this->macros;
  96.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  97.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_javascript"));
  98.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  99.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""head_javascript"));
  100.         // line 14
  101.         yield "    ";
  102.         yield from $this->yieldParentBlock("head_javascript"$context$blocks);
  103.         yield "
  104.     <script src=\"";
  105.         // line 15
  106.         yield Twig\Extension\EscaperExtension::escape($this->env$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("form.js"CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'15$this->source); })()), "assets", [], "any"falsefalsefalse15), "defaultAssetPackageName", [], "any"falsefalsefalse15)), "html"nulltrue);
  107.         yield "\"></script>
  108. ";
  109.         
  110.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  111.         
  112.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  113.         return; yield '';
  114.     }
  115.     // line 18
  116.     public function block_configured_head_contents($context, array $blocks = [])
  117.     {
  118.         $macros $this->macros;
  119.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  120.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""configured_head_contents"));
  121.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  122.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""configured_head_contents"));
  123.         // line 19
  124.         yield "    ";
  125.         yield from $this->yieldParentBlock("configured_head_contents"$context$blocks);
  126.         yield "
  127.     ";
  128.         // line 20
  129.         $context['_parent'] = $context;
  130.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["ea_field_assets"]) || array_key_exists("ea_field_assets"$context) ? $context["ea_field_assets"] : (function () { throw new RuntimeError('Variable "ea_field_assets" does not exist.'20$this->source); })()), "headContents", [], "any"falsefalsefalse20));
  131.         foreach ($context['_seq'] as $context["_key"] => $context["htmlContent"]) {
  132.             // line 21
  133.             yield "        ";
  134.             yield $context["htmlContent"];
  135.             yield "
  136.     ";
  137.         }
  138.         $_parent $context['_parent'];
  139.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['htmlContent'], $context['_parent'], $context['loop']);
  140.         $context array_intersect_key($context$_parent) + $_parent;
  141.         
  142.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  143.         
  144.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  145.         return; yield '';
  146.     }
  147.     // line 25
  148.     public function block_configured_body_contents($context, array $blocks = [])
  149.     {
  150.         $macros $this->macros;
  151.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  152.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""configured_body_contents"));
  153.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  154.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""configured_body_contents"));
  155.         // line 26
  156.         yield "    ";
  157.         yield from $this->yieldParentBlock("configured_body_contents"$context$blocks);
  158.         yield "
  159.     ";
  160.         // line 27
  161.         $context['_parent'] = $context;
  162.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["ea_field_assets"]) || array_key_exists("ea_field_assets"$context) ? $context["ea_field_assets"] : (function () { throw new RuntimeError('Variable "ea_field_assets" does not exist.'27$this->source); })()), "bodyContents", [], "any"falsefalsefalse27));
  163.         foreach ($context['_seq'] as $context["_key"] => $context["htmlContent"]) {
  164.             // line 28
  165.             yield "        ";
  166.             yield $context["htmlContent"];
  167.             yield "
  168.     ";
  169.         }
  170.         $_parent $context['_parent'];
  171.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['htmlContent'], $context['_parent'], $context['loop']);
  172.         $context array_intersect_key($context$_parent) + $_parent;
  173.         
  174.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  175.         
  176.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  177.         return; yield '';
  178.     }
  179.     // line 32
  180.     public function block_configured_stylesheets($context, array $blocks = [])
  181.     {
  182.         $macros $this->macros;
  183.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  184.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""configured_stylesheets"));
  185.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  186.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""configured_stylesheets"));
  187.         // line 33
  188.         yield "    ";
  189.         yield from $this->yieldParentBlock("configured_stylesheets"$context$blocks);
  190.         yield "
  191.     ";
  192.         // line 34
  193.         yield Twig\Extension\CoreExtension::include($this->env$context"@EasyAdmin/includes/_css_assets.html.twig", ["assets" => CoreExtension::getAttribute($this->env$this->source, (isset($context["ea_field_assets"]) || array_key_exists("ea_field_assets"$context) ? $context["ea_field_assets"] : (function () { throw new RuntimeError('Variable "ea_field_assets" does not exist.'34$this->source); })()), "cssAssets", [], "any"falsefalsefalse34)], false);
  194.         yield "
  195.     ";
  196.         // line 35
  197.         yield Twig\Extension\CoreExtension::include($this->env$context"@EasyAdmin/includes/_encore_link_tags.html.twig", ["assets" => CoreExtension::getAttribute($this->env$this->source, (isset($context["ea_field_assets"]) || array_key_exists("ea_field_assets"$context) ? $context["ea_field_assets"] : (function () { throw new RuntimeError('Variable "ea_field_assets" does not exist.'35$this->source); })()), "webpackEncoreAssets", [], "any"falsefalsefalse35)], false);
  198.         yield "
  199. ";
  200.         
  201.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  202.         
  203.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  204.         return; yield '';
  205.     }
  206.     // line 38
  207.     public function block_configured_javascripts($context, array $blocks = [])
  208.     {
  209.         $macros $this->macros;
  210.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  211.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""configured_javascripts"));
  212.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  213.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""configured_javascripts"));
  214.         // line 39
  215.         yield "    ";
  216.         yield from $this->yieldParentBlock("configured_javascripts"$context$blocks);
  217.         yield "
  218.     ";
  219.         // line 40
  220.         yield Twig\Extension\CoreExtension::include($this->env$context"@EasyAdmin/includes/_js_assets.html.twig", ["assets" => CoreExtension::getAttribute($this->env$this->source, (isset($context["ea_field_assets"]) || array_key_exists("ea_field_assets"$context) ? $context["ea_field_assets"] : (function () { throw new RuntimeError('Variable "ea_field_assets" does not exist.'40$this->source); })()), "jsAssets", [], "any"falsefalsefalse40)], false);
  221.         yield "
  222.     ";
  223.         // line 41
  224.         yield Twig\Extension\CoreExtension::include($this->env$context"@EasyAdmin/includes/_encore_script_tags.html.twig", ["assets" => CoreExtension::getAttribute($this->env$this->source, (isset($context["ea_field_assets"]) || array_key_exists("ea_field_assets"$context) ? $context["ea_field_assets"] : (function () { throw new RuntimeError('Variable "ea_field_assets" does not exist.'41$this->source); })()), "webpackEncoreAssets", [], "any"falsefalsefalse41)], false);
  225.         yield "
  226. ";
  227.         
  228.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  229.         
  230.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  231.         return; yield '';
  232.     }
  233.     // line 44
  234.     public function block_content_title($context, array $blocks = [])
  235.     {
  236.         $macros $this->macros;
  237.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  238.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content_title"));
  239.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  240.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content_title"));
  241.         // line 45
  242.         $___internal_parse_0_ = ('' === $tmp \Twig\Extension\CoreExtension::captureOutput((function () use (&$context$macros$blocks) {
  243.             // line 46
  244.             $context["custom_page_title"] = CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'46$this->source); })()), "crud", [], "any"falsefalsefalse46), "customPageTitle", ["new"nullCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'46$this->source); })()), "i18n", [], "any"falsefalsefalse46), "translationParameters", [], "any"falsefalsefalse46)], "method"falsefalsefalse46);
  245.             // line 47
  246.             yield "        ";
  247.             yield (((null === (isset($context["custom_page_title"]) || array_key_exists("custom_page_title"$context) ? $context["custom_page_title"] : (function () { throw new RuntimeError('Variable "custom_page_title" does not exist.'47$this->source); })()))) ? ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source,             // line 48
  248. (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'48$this->source); })()), "crud", [], "any"falsefalsefalse48), "defaultPageTitle", ["new"nullCoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["ea"]) || array_key_exists("ea"$context) ? $context["ea"] : (function () { throw new RuntimeError('Variable "ea" does not exist.'48$this->source); })()), "i18n", [], "any"falsefalsefalse48), "translationParameters", [], "any"falsefalsefalse48)], "method"falsefalsefalse48), [],             // line 6
  249. (isset($context["__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955"]) || array_key_exists("__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955"$context) ? $context["__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955"] : (function () { throw new RuntimeError('Variable "__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955" does not exist.'6$this->source); })()))) : ($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(            // line 49
  250. (isset($context["custom_page_title"]) || array_key_exists("custom_page_title"$context) ? $context["custom_page_title"] : (function () { throw new RuntimeError('Variable "custom_page_title" does not exist.'49$this->source); })()), [],             // line 6
  251. (isset($context["__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955"]) || array_key_exists("__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955"$context) ? $context["__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955"] : (function () { throw new RuntimeError('Variable "__internal_d96d5fc94e39cd4baa4739341720f339b1b97ac175743333b44240389f290955" does not exist.'6$this->source); })()))));
  252.         })() ?? new \EmptyIterator())) ? '' : new Markup($tmp$this->env->getCharset());
  253.         // line 45
  254.         yield Twig\Extension\CoreExtension::spaceless($___internal_parse_0_);
  255.         
  256.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  257.         
  258.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  259.         return; yield '';
  260.     }
  261.     // line 53
  262.     public function block_page_actions($context, array $blocks = [])
  263.     {
  264.         $macros $this->macros;
  265.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  266.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_actions"));
  267.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  268.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""page_actions"));
  269.         // line 54
  270.         yield "    ";
  271.         $context['_parent'] = $context;
  272.         $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source, (isset($context["entity"]) || array_key_exists("entity"$context) ? $context["entity"] : (function () { throw new RuntimeError('Variable "entity" does not exist.'54$this->source); })()), "actions", [], "any"falsefalsefalse54));
  273.         foreach ($context['_seq'] as $context["_key"] => $context["action"]) {
  274.             // line 55
  275.             yield "        ";
  276.             yield Twig\Extension\CoreExtension::include($this->env$contextCoreExtension::getAttribute($this->env$this->source$context["action"], "templatePath", [], "any"falsefalsefalse55), ["action" => $context["action"]], false);
  277.             yield "
  278.     ";
  279.         }
  280.         $_parent $context['_parent'];
  281.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['action'], $context['_parent'], $context['loop']);
  282.         $context array_intersect_key($context$_parent) + $_parent;
  283.         
  284.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  285.         
  286.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  287.         return; yield '';
  288.     }
  289.     // line 59
  290.     public function block_main($context, array $blocks = [])
  291.     {
  292.         $macros $this->macros;
  293.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  294.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  295.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  296.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""main"));
  297.         // line 60
  298.         yield "    ";
  299.         yield from $this->unwrap()->yieldBlock('new_form'$context$blocks);
  300.         
  301.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  302.         
  303.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  304.         return; yield '';
  305.     }
  306.     public function block_new_form($context, array $blocks = [])
  307.     {
  308.         $macros $this->macros;
  309.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  310.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""new_form"));
  311.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  312.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""new_form"));
  313.         // line 61
  314.         yield "        ";
  315.         yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["new_form"]) || array_key_exists("new_form"$context) ? $context["new_form"] : (function () { throw new RuntimeError('Variable "new_form" does not exist.'61$this->source); })()), 'form');
  316.         yield "
  317.     ";
  318.         
  319.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  320.         
  321.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  322.         return; yield '';
  323.     }
  324.     /**
  325.      * @codeCoverageIgnore
  326.      */
  327.     public function getTemplateName()
  328.     {
  329.         return "@EasyAdmin/crud/new.html.twig";
  330.     }
  331.     /**
  332.      * @codeCoverageIgnore
  333.      */
  334.     public function isTraitable()
  335.     {
  336.         return false;
  337.     }
  338.     /**
  339.      * @codeCoverageIgnore
  340.      */
  341.     public function getDebugInfo()
  342.     {
  343.         return array (  378 => 61,  357 => 60,  347 => 59,  329 => 55,  324 => 54,  314 => 53,  303 => 45,  300 => 6,  299 => 49,  298 => 6,  297 => 48,  295 => 47,  293 => 46,  291 => 45,  281 => 44,  268 => 41,  264 => 40,  259 => 39,  249 => 38,  236 => 35,  232 => 34,  227 => 33,  217 => 32,  199 => 28,  195 => 27,  190 => 26,  180 => 25,  162 => 21,  158 => 20,  153 => 19,  143 => 18,  130 => 15,  125 => 14,  115 => 13,  95 => 9,  75 => 8,  65 => 3,  63 => 11,  61 => 6,  59 => 4,  46 => 3,);
  344.     }
  345.     public function getSourceContext()
  346.     {
  347.         return new Source("{# @var ea \\EasyCorp\\Bundle\\EasyAdminBundle\\Context\\AdminContext #}
  348. {# @var entity \\EasyCorp\\Bundle\\EasyAdminBundle\\Dto\\EntityDto #}
  349. {% extends ea.templatePath('layout') %}
  350. {% form_theme new_form with ea.crud.formThemes only %}
  351. {% trans_default_domain ea.i18n.translationDomain %}
  352. {% block body_id 'ea-new-' ~ entity.name %}
  353. {% block body_class 'ea-new ea-new-' ~ entity.name %}
  354. {% set ea_field_assets = ea.crud.fieldAssets(constant('EasyCorp\\\\Bundle\\\\EasyAdminBundle\\\\Config\\\\Crud::PAGE_NEW')) %}
  355. {% block head_javascript %}
  356.     {{ parent() }}
  357.     <script src=\"{{ asset('form.js', ea.assets.defaultAssetPackageName) }}\"></script>
  358. {% endblock head_javascript %}
  359. {% block configured_head_contents %}
  360.     {{ parent() }}
  361.     {% for htmlContent in ea_field_assets.headContents %}
  362.         {{ htmlContent|raw }}
  363.     {% endfor %}
  364. {% endblock %}
  365. {% block configured_body_contents %}
  366.     {{ parent() }}
  367.     {% for htmlContent in ea_field_assets.bodyContents %}
  368.         {{ htmlContent|raw }}
  369.     {% endfor %}
  370. {% endblock %}
  371. {% block configured_stylesheets %}
  372.     {{ parent() }}
  373.     {{ include('@EasyAdmin/includes/_css_assets.html.twig', { assets: ea_field_assets.cssAssets }, with_context = false) }}
  374.     {{ include('@EasyAdmin/includes/_encore_link_tags.html.twig', { assets: ea_field_assets.webpackEncoreAssets }, with_context = false) }}
  375. {% endblock %}
  376. {% block configured_javascripts %}
  377.     {{ parent() }}
  378.     {{ include('@EasyAdmin/includes/_js_assets.html.twig', { assets: ea_field_assets.jsAssets }, with_context = false) }}
  379.     {{ include('@EasyAdmin/includes/_encore_script_tags.html.twig', { assets: ea_field_assets.webpackEncoreAssets }, with_context = false) }}
  380. {% endblock %}
  381. {% block content_title %}
  382.     {%- apply spaceless -%}
  383.         {% set custom_page_title = ea.crud.customPageTitle('new', null, ea.i18n.translationParameters) %}
  384.         {{ custom_page_title is null
  385.             ? ea.crud.defaultPageTitle('new', null, ea.i18n.translationParameters)|trans|raw
  386.             : custom_page_title|trans|raw }}
  387.     {%- endapply -%}
  388. {% endblock %}
  389. {% block page_actions %}
  390.     {% for action in entity.actions %}
  391.         {{ include(action.templatePath, { action: action }, with_context = false) }}
  392.     {% endfor %}
  393. {% endblock %}
  394. {% block main %}
  395.     {% block new_form %}
  396.         {{ form(new_form) }}
  397.     {% endblock new_form %}
  398. {% endblock %}
  399. ""@EasyAdmin/crud/new.html.twig""/home/annuairepn/www/aea/vendor/easycorp/easyadmin-bundle/src/Resources/views/crud/new.html.twig");
  400.     }
  401. }