var/cache/dev/twig/76/76e8643704a56a686660de8eb9c63042.php line 359

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