<?php

use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
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;

/* @PimUI/actions/update.html.twig */
class __TwigTemplate_fa59b1d077407717db5c80b5fc63cfa0 extends Template
{
    private $source;
    private $macros = [];

    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->source = $this->getSourceContext();

        $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 = [])
    {
        $macros = $this->macros;
        // line 1
        $macros["UI"] = $this->macros["UI"] = $this->loadTemplate("@PimUI/macros.html.twig", "@PimUI/actions/update.html.twig", 1)->unwrap();
        // line 2
        $macros["elements"] = $this->macros["elements"] = $this->loadTemplate("@PimUI/Default/page_elements.html.twig", "@PimUI/actions/update.html.twig", 2)->unwrap();
        // line 3
        yield "
";
        // line 4
        yield from $this->unwrap()->yieldBlock('page_container', $context, $blocks);
        return; yield '';
    }

    public function block_page_container($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 5
        yield "    ";
        yield from $this->unwrap()->yieldBlock('content', $context, $blocks);
        return; yield '';
    }

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

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

    // line 13
    public function block_pageHeader($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 14
        yield "                ";
        $context["buttons"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 15
            yield "                    ";
            yield from $this->unwrap()->yieldBlock('navButtons', $context, $blocks);
            // line 16
            yield "                    <input type=\"hidden\" name=\"input_action\" value=\"\" data-form-id=\"";
            yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "vars", [], "any", false, false, false, 16), "name", [], "any", false, false, false, 16), "html", null, true);
            yield "\"/>
                ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 18
        yield "
                ";
        // line 19
        $context["meta"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 20
            yield "                    ";
            yield from $this->unwrap()->yieldBlock('stats', $context, $blocks);
            // line 26
            yield "                ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 27
        yield "
                ";
        // line 28
        $context["title"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
            // line 29
            yield "                    ";
            yield from $this->unwrap()->yieldBlock('breadcrumbs', $context, $blocks);
            // line 40
            yield "                ";
        })() ?? new \EmptyIterator())) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 41
        yield "
                ";
        // line 42
        yield CoreExtension::callMacro($macros["elements"], "macro_page_header", [["title" =>         // line 44
($context["title"] ?? null), "buttons" =>         // line 45
($context["buttons"] ?? null), "meta" =>         // line 46
($context["meta"] ?? null)]], 42, $context, $this->getSourceContext());
        // line 48
        yield "

            ";
        return; yield '';
    }

    // line 15
    public function block_navButtons($context, array $blocks = [])
    {
        $macros = $this->macros;
        return; yield '';
    }

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

    // line 29
    public function block_breadcrumbs($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 30
        yield "                        <a href=\"";
        yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "indexPath", [], "any", false, false, false, 30), "html", null, true);
        yield "\">";
        yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "indexLabel", [], "any", false, false, false, 30)), "html", null, true);
        yield "</a>
                        <span class=\"separator\">/</span>
                        ";
        // line 32
        if (CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "additional", [], "any", true, true, false, 32)) {
            // line 33
            yield "                            ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "additional", [], "any", false, false, false, 33));
            foreach ($context['_seq'] as $context["_key"] => $context["breadcrumb"]) {
                // line 34
                yield "                                <a href=\"";
                yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "indexPath", [], "any", false, false, false, 34), "html", null, true);
                yield "\">";
                yield Twig\Extension\EscaperExtension::escape($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(CoreExtension::getAttribute($this->env, $this->source, $context["breadcrumb"], "indexLabel", [], "any", false, false, false, 34)), "html", null, true);
                yield "</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
            yield "                        ";
        }
        // line 38
        yield "                        ";
        yield Twig\Extension\EscaperExtension::escape($this->env, CoreExtension::getAttribute($this->env, $this->source, ($context["breadcrumbs"] ?? null), "entityTitle", [], "any", false, false, false, 38), "html", null, true);
        yield "
                    ";
        return; yield '';
    }

    // line 53
    public function block_content_data($context, array $blocks = [])
    {
        $macros = $this->macros;
        // line 54
        yield "                    ";
        yield CoreExtension::callMacro($macros["UI"], "macro_scrollData", [($context["id"] ?? null), ($context["data"] ?? null), ($context["form"] ?? null)], 54, $context, $this->getSourceContext());
        yield "
                ";
        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "@PimUI/actions/update.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function isTraitable()
    {
        return false;
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  231 => 54,  227 => 53,  219 => 38,  216 => 37,  204 => 34,  199 => 33,  197 => 32,  189 => 30,  185 => 29,  180 => 25,  173 => 23,  166 => 22,  163 => 21,  159 => 20,  152 => 15,  145 => 48,  143 => 46,  142 => 45,  141 => 44,  140 => 42,  137 => 41,  134 => 40,  131 => 29,  129 => 28,  126 => 27,  123 => 26,  120 => 20,  118 => 19,  115 => 18,  109 => 16,  106 => 15,  103 => 14,  99 => 13,  91 => 57,  88 => 56,  86 => 53,  82 => 51,  80 => 13,  76 => 11,  74 => 10,  73 => 8,  72 => 7,  69 => 6,  60 => 5,  52 => 4,  49 => 3,  47 => 2,  45 => 1,);
    }

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