<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;

/* PimUIBundle:actions:update.html.twig */
class __TwigTemplate_1e5352c8cba548de4d10390fae36dd798b5ab219737cd3dcb2ddf4f6840b2e32 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
            'page_container' => [$this, 'block_page_container'],
            'content' => [$this, 'block_content'],
            'pageHeader' => [$this, 'block_pageHeader'],
            'navButtons' => [$this, 'block_navButtons'],
            'stats' => [$this, 'block_stats'],
            'breadcrumbs' => [$this, 'block_breadcrumbs'],
            'content_data' => [$this, 'block_content_data'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $context["UI"] = $this->loadTemplate("PimUIBundle::macros.html.twig", "PimUIBundle:actions:update.html.twig", 1)->unwrap();
        // line 2
        $context["elements"] = $this->loadTemplate("PimUIBundle:Default:page_elements.html.twig", "PimUIBundle:actions:update.html.twig", 2)->unwrap();
        // line 3
        echo "
";
        // line 4
        $this->displayBlock('page_container', $context, $blocks);
    }

    public function block_page_container($context, array $blocks = [])
    {
        // line 5
        echo "    ";
        $this->displayBlock('content', $context, $blocks);
    }

    public function block_content($context, array $blocks = [])
    {
        // line 6
        echo "    <div class=\"AknDefault-mainContent\">
        ";
        // line 7
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start', ["action" =>         // line 8
($context["formAction"] ?? null), "method" => "post", "id" => $this->getAttribute($this->getAttribute(        // line 10
($context["form"] ?? null), "vars", []), "name", [])]);
        // line 11
        echo "

            ";
        // line 13
        $this->displayBlock('pageHeader', $context, $blocks);
        // line 51
        echo "
            <div class=\"layout-content\">
                ";
        // line 53
        $this->displayBlock('content_data', $context, $blocks);
        // line 56
        echo "            </div>
        ";
        // line 57
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        echo "
    </div>
    ";
    }

    // line 13
    public function block_pageHeader($context, array $blocks = [])
    {
        // line 14
        echo "                ";
        ob_start(function () { return ''; });
        // line 15
        echo "                    ";
        $this->displayBlock('navButtons', $context, $blocks);
        // line 16
        echo "                    <input type=\"hidden\" name=\"input_action\" value=\"\" data-form-id=\"";
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "name", []), "html", null, true);
        echo "\"/>
                ";
        $context["buttons"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 18
        echo "
                ";
        // line 19
        ob_start(function () { return ''; });
        // line 20
        echo "                    ";
        $this->displayBlock('stats', $context, $blocks);
        // line 26
        echo "                ";
        $context["meta"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 27
        echo "
                ";
        // line 28
        ob_start(function () { return ''; });
        // line 29
        echo "                    ";
        $this->displayBlock('breadcrumbs', $context, $blocks);
        // line 40
        echo "                ";
        $context["title"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 41
        echo "
                ";
        // line 42
        echo $this->getAttribute(($context["elements"] ?? null), "page_header", [0 => ["title" =>         // line 44
($context["title"] ?? null), "buttons" =>         // line 45
($context["buttons"] ?? null), "meta" =>         // line 46
($context["meta"] ?? null)]], "method");
        // line 48
        echo "

            ";
    }

    // line 15
    public function block_navButtons($context, array $blocks = [])
    {
    }

    // line 20
    public function block_stats($context, array $blocks = [])
    {
        // line 21
        echo "                        ";
        if (($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", [], "any", false, true), "createdAt", [], "any", true, true) && $this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", [], "any", false, true), "updatedAt", [], "any", true, true))) {
            // line 22
            echo "                            <span class=\"AknTitleContainer-metaItem\">";
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_common.created"), "html", null, true);
            echo ": ";
            echo (($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", []), "createdAt", [])) ? ($this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\AttributeExtension')->datetimePresenter($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", []), "createdAt", []))) : ("N/A"));
            echo "</span>
                            <span class=\"AknTitleContainer-metaItem\">";
            // line 23
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_common.updated"), "html", null, true);
            echo ": ";
            echo (($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", []), "updatedAt", [])) ? ($this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\AttributeExtension')->datetimePresenter($this->getAttribute($this->getAttribute(($context["breadcrumbs"] ?? null), "entity", []), "updatedAt", []))) : ("N/A"));
            echo "</span>
                        ";
        }
        // line 25
        echo "                    ";
    }

    // line 29
    public function block_breadcrumbs($context, array $blocks = [])
    {
        // line 30
        echo "                        <a href=\"";
        echo twig_escape_filter($this->env, $this->getAttribute(($context["breadcrumbs"] ?? null), "indexPath", []), "html", null, true);
        echo "\">";
        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute(($context["breadcrumbs"] ?? null), "indexLabel", [])), "html", null, true);
        echo "</a>
                        <span class=\"separator\">/</span>
                        ";
        // line 32
        if ($this->getAttribute(($context["breadcrumbs"] ?? null), "additional", [], "any", true, true)) {
            // line 33
            echo "                            ";
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["breadcrumbs"] ?? null), "additional", []));
            foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
                // line 34
                echo "                                <a href=\"";
                echo twig_escape_filter($this->env, $this->getAttribute($context["breadcrumb"], "indexPath", []), "html", null, true);
                echo "\">";
                echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["breadcrumb"], "indexLabel", [])), "html", null, true);
                echo "</a>
                                <span class=\"separator\">/</span>
                            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['breadcrumb'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 37
            echo "                        ";
        }
        // line 38
        echo "                        ";
        echo twig_escape_filter($this->env, $this->getAttribute(($context["breadcrumbs"] ?? null), "entityTitle", []), "html", null, true);
        echo "
                    ";
    }

    // line 53
    public function block_content_data($context, array $blocks = [])
    {
        // line 54
        echo "                    ";
        echo $this->getAttribute(($context["UI"] ?? null), "scrollData", [0 => ($context["id"] ?? null), 1 => ($context["data"] ?? null), 2 => ($context["form"] ?? null)], "method");
        echo "
                ";
    }

    public function getTemplateName()
    {
        return "PimUIBundle:actions:update.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  209 => 54,  206 => 53,  199 => 38,  196 => 37,  184 => 34,  179 => 33,  177 => 32,  169 => 30,  166 => 29,  162 => 25,  155 => 23,  148 => 22,  145 => 21,  142 => 20,  137 => 15,  131 => 48,  129 => 46,  128 => 45,  127 => 44,  126 => 42,  123 => 41,  120 => 40,  117 => 29,  115 => 28,  112 => 27,  109 => 26,  106 => 20,  104 => 19,  101 => 18,  95 => 16,  92 => 15,  89 => 14,  86 => 13,  79 => 57,  76 => 56,  74 => 53,  70 => 51,  68 => 13,  64 => 11,  62 => 10,  61 => 8,  60 => 7,  57 => 6,  50 => 5,  44 => 4,  41 => 3,  39 => 2,  37 => 1,);
    }

    /** @deprecated since 1.27 (to be removed in 2.0). Use getSourceContext() instead */
    public function getSource()
    {
        @trigger_error('The '.__METHOD__.' method is deprecated since version 1.27 and will be removed in 2.0. Use getSourceContext() instead.', E_USER_DEPRECATED);

        return $this->getSourceContext()->getCode();
    }

    public function getSourceContext()
    {
        return new Source("", "PimUIBundle:actions:update.html.twig", "/var/www/html/vendor/akeneo/pim-community-dev/src/Akeneo/Platform/Bundle/UIBundle/Resources/views/actions/update.html.twig");
    }
}
