var/cache/dev/twig/cb/cb38b2848d28ea0061fb165972309bce58f557740f62dff53e1b681539a62051.php line 62

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @SyliusAdmin/Crud/Update/_content.html.twig */
  14. class __TwigTemplate_ab76ed626fc1e429fb6d8135d3b4430fb650d384148d4316aca85aba885a3f73 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusAdmin/Crud/Update/_content.html.twig"));
  31.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@SyliusAdmin/Crud/Update/_content.html.twig"));
  33.         // line 1
  34.         $context["index_url"] = $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 2
  35. ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse2), "index", [], "any"falsetruefalse2), "route", [], "any"falsetruefalse2), "name", [], "any"truetruefalse2)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse2), "index", [], "any"falsetruefalse2), "route", [], "any"falsetruefalse2), "name", [], "any"falsefalsefalse2), twig_get_attribute($this->env$this->source, (isset($context["configuration"]) || array_key_exists("configuration"$context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.'2$this->source); })()), "getRouteName", [=> "index"], "method"falsefalsefalse2))) : (twig_get_attribute($this->env$this->source, (isset($context["configuration"]) || array_key_exists("configuration"$context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.'2$this->source); })()), "getRouteName", [=> "index"], "method"falsefalsefalse2))), ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source,         // line 3
  36. ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse3), "index", [], "any"falsetruefalse3), "route", [], "any"falsetruefalse3), "parameters", [], "any"truetruefalse3)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse3), "index", [], "any"falsetruefalse3), "route", [], "any"falsetruefalse3), "parameters", [], "any"falsefalsefalse3), ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse3), "route", [], "any"falsetruefalse3), "parameters", [], "any"truetruefalse3)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse3), "route", [], "any"falsetruefalse3), "parameters", [], "any"falsefalsefalse3), [])) : ([])))) : (((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse3), "route", [], "any"falsetruefalse3), "parameters", [], "any"truetruefalse3)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse3), "route", [], "any"falsetruefalse3), "parameters", [], "any"falsefalsefalse3), [])) : ([])))));
  37.         // line 6
  38.         echo "
  39. <div class=\"ui segment\">
  40.     ";
  41.         // line 8
  42.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'8$this->source); })()), 'form_start', ["action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath(twig_get_attribute($this->env$this->source, (isset($context["configuration"]) || array_key_exists("configuration"$context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.'8$this->source); })()), "getRouteName", [=> "update"], "method"falsefalsefalse8), ((twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse8), "route", [], "any"falsetruefalse8), "parameters", [], "any"truetruefalse8)) ? (_twig_default_filter(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse8), "route", [], "any"falsetruefalse8), "parameters", [], "any"falsefalsefalse8), ["id" => twig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'8$this->source); })()), "id", [], "any"falsefalsefalse8)])) : (["id" => twig_get_attribute($this->env$this->source, (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'8$this->source); })()), "id", [], "any"falsefalsefalse8)]))), "attr" => ["class" => "ui loadable form""novalidate" => "novalidate"]]);
  43.         echo "
  44.     <input type=\"hidden\" name=\"_method\" value=\"PUT\" />
  45.     ";
  46.         // line 10
  47.         $this->loadTemplate("@SyliusAdmin/Crud/form_validation_errors_checker.html.twig""@SyliusAdmin/Crud/Update/_content.html.twig"10)->display($context);
  48.         // line 11
  49.         echo "    ";
  50.         if (twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, ($context["configuration"] ?? null), "vars", [], "any"falsetruefalse11), "templates", [], "any"falsetruefalse11), "form", [], "any"truetruefalse11)) {
  51.             // line 12
  52.             echo "        ";
  53.             $this->loadTemplate(twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["configuration"]) || array_key_exists("configuration"$context) ? $context["configuration"] : (function () { throw new RuntimeError('Variable "configuration" does not exist.'12$this->source); })()), "vars", [], "any"falsefalsefalse12), "templates", [], "any"falsefalsefalse12), "form", [], "any"falsefalsefalse12), "@SyliusAdmin/Crud/Update/_content.html.twig"12)->display($context);
  54.             // line 13
  55.             echo "        ";
  56.             if ( !twig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'13$this->source); })()), "_token", [], "any"falsefalsefalse13), "isRendered", [], "any"falsefalsefalse13)) {
  57.                 // line 14
  58.                 echo "            ";
  59.                 echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'14$this->source); })()), "_token", [], "any"falsefalsefalse14), 'row');
  60.                 echo "
  61.         ";
  62.             }
  63.             // line 16
  64.             echo "    ";
  65.         } else {
  66.             // line 17
  67.             echo "        ";
  68.             echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'17$this->source); })()), 'widget');
  69.             echo "
  70.     ";
  71.         }
  72.         // line 19
  73.         echo "
  74.     ";
  75.         // line 20
  76.         echo $this->extensions['Sylius\Bundle\UiBundle\Twig\TemplateEventExtension']->render([=> ((isset($context["event_prefix"]) || array_key_exists("event_prefix"$context) ? $context["event_prefix"] : (function () { throw new RuntimeError('Variable "event_prefix" does not exist.'20$this->source); })()) . ".form"), => "sylius.admin.update.form"], ["metadata" => (isset($context["metadata"]) || array_key_exists("metadata"$context) ? $context["metadata"] : (function () { throw new RuntimeError('Variable "metadata" does not exist.'20$this->source); })()), "resource" => (isset($context["resource"]) || array_key_exists("resource"$context) ? $context["resource"] : (function () { throw new RuntimeError('Variable "resource" does not exist.'20$this->source); })()), "form" => (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'20$this->source); })())]);
  77.         echo "
  78.     ";
  79.         // line 22
  80.         $this->loadTemplate("@SyliusUi/Form/Buttons/_update.html.twig""@SyliusAdmin/Crud/Update/_content.html.twig"22)->display(twig_array_merge($context, ["paths" => ["cancel" => (isset($context["index_url"]) || array_key_exists("index_url"$context) ? $context["index_url"] : (function () { throw new RuntimeError('Variable "index_url" does not exist.'22$this->source); })())]]));
  81.         // line 23
  82.         echo "
  83.     ";
  84.         // line 24
  85.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'24$this->source); })()), 'form_end', ["render_rest" => false]);
  86.         echo "
  87. </div>
  88. ";
  89.         
  90.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  91.         
  92.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  93.     }
  94.     public function getTemplateName()
  95.     {
  96.         return "@SyliusAdmin/Crud/Update/_content.html.twig";
  97.     }
  98.     public function isTraitable()
  99.     {
  100.         return false;
  101.     }
  102.     public function getDebugInfo()
  103.     {
  104.         return array (  95 => 24,  92 => 23,  90 => 22,  85 => 20,  82 => 19,  76 => 17,  73 => 16,  67 => 14,  64 => 13,  61 => 12,  58 => 11,  56 => 10,  51 => 8,  47 => 6,  45 => 3,  44 => 2,  43 => 1,);
  105.     }
  106.     public function getSourceContext()
  107.     {
  108.         return new Source("{% set index_url = path(
  109.         configuration.vars.index.route.name|default(configuration.getRouteName('index')),
  110.         configuration.vars.index.route.parameters|default(configuration.vars.route.parameters|default({}))
  111.     )
  112. %}
  113. <div class=\"ui segment\">
  114.     {{ form_start(form, {'action': path(configuration.getRouteName('update'), configuration.vars.route.parameters|default({ 'id': resource.id })), 'attr': {'class': 'ui loadable form', 'novalidate': 'novalidate'}}) }}
  115.     <input type=\"hidden\" name=\"_method\" value=\"PUT\" />
  116.     {% include '@SyliusAdmin/Crud/form_validation_errors_checker.html.twig' %}
  117.     {% if configuration.vars.templates.form is defined %}
  118.         {% include configuration.vars.templates.form %}
  119.         {% if not form._token.isRendered %}
  120.             {{ form_row(form._token) }}
  121.         {% endif %}
  122.     {% else %}
  123.         {{ form_widget(form) }}
  124.     {% endif %}
  125.     {{ sylius_template_event([event_prefix ~ '.form', 'sylius.admin.update.form'], {'metadata': metadata, 'resource': resource, 'form': form}) }}
  126.     {% include '@SyliusUi/Form/Buttons/_update.html.twig' with {'paths': {'cancel': index_url}} %}
  127.     {{ form_end(form, {'render_rest': false}) }}
  128. </div>
  129. ""@SyliusAdmin/Crud/Update/_content.html.twig""/home/chouettemauve/preprod/sylius/vendor/sylius/sylius/src/Sylius/Bundle/AdminBundle/Resources/views/Crud/Update/_content.html.twig");
  130.     }
  131. }