<?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;

/* PimUserBundle:Group:update.html.twig */
class __TwigTemplate_a6344a42405a4eaea0628f187b2824038470579642775b244899d0b5bbcc4103 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->blocks = [
            'breadcrumbs' => [$this, 'block_breadcrumbs'],
            'navButtons' => [$this, 'block_navButtons'],
            'content_data' => [$this, 'block_content_data'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "PimUIBundle:actions:update.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 2
        $context["dataGrid"] = $this->loadTemplate("PimDataGridBundle::macros.html.twig", "PimUserBundle:Group:update.html.twig", 2)->unwrap();
        // line 3
        $context["elements"] = $this->loadTemplate("PimUIBundle:Default:page_elements.html.twig", "PimUserBundle:Group:update.html.twig", 3)->unwrap();
        // line 5
        $context["entityId"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "id", []);
        // line 6
        $context["title"] = ((($context["entityId"] ?? null)) ? ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Update Group")) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("New Group")));
        // line 7
        $context["gridName"] = "pimgroup-user-grid";
        // line 8
        $context["formAction"] = ((($context["entityId"] ?? null)) ? ($this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_group_update", ["id" => ($context["entityId"] ?? null)])) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_group_create")));
        // line 10
        $context["breadcrumbs"] = [];
        // line 11
        if (($context["entityId"] ?? null)) {
            // line 12
            $context["breadcrumbs"] = ["entity" => $this->getAttribute($this->getAttribute(            // line 13
($context["form"] ?? null), "vars", []), "value", []), "indexPath" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_group_index"), "indexLabel" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Groups"), "entityTitle" => $this->getAttribute($this->getAttribute($this->getAttribute(            // line 16
($context["form"] ?? null), "vars", []), "value", []), "name", [])];
        } else {
        }
        // line 1
        $this->parent = $this->loadTemplate("PimUIBundle:actions:update.html.twig", "PimUserBundle:Group:update.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
    }

    // line 20
    public function block_breadcrumbs($context, array $blocks = [])
    {
        // line 21
        echo "        ";
        echo twig_escape_filter($this->env, ($context["title"] ?? null), "html", null, true);
        echo "
    ";
    }

    // line 25
    public function block_navButtons($context, array $blocks = [])
    {
        // line 26
        echo "    ";
        if ((($context["entityId"] ?? null) && $this->env->getExtension('Oro\Bundle\SecurityBundle\Twig\OroSecurityExtension')->checkResourceIsGranted("pim_user_group_remove"))) {
            // line 27
            echo "        <div class=\"AknSecondaryActions AknDropdown AknButtonList-item secondary-actions\">
          <div class=\"AknSecondaryActions-button dropdown-button\" data-toggle=\"dropdown\"></div>
          <div class=\"AknDropdown-menu AknDropdown-menu--right\">
              <div class=\"AknDropdown-menuTitle\">";
            // line 30
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("other_actions"), "html", null, true);
            echo "</div>
              ";
            // line 31
            echo twig_escape_filter($this->env, $this->getAttribute(($context["UI"] ?? null), "deleteButton", [0 => ["dataUrl" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_group_delete", ["id" =>             // line 32
($context["entityId"] ?? null)]), "dataRedirect" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_group_index"), "aCss" => "AknDropdown-menuLink remove-button no-hash", "dataId" =>             // line 35
($context["entityId"] ?? null), "id" => "btn-remove-group", "dataMessage" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Are you sure you want to delete this group?"), "successMessage" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Group removed"), "title" => "Delete group", "label" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Delete"), "subTitle" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Groups")]], "method"), "html", null, true);
            // line 42
            echo "
          </div>
        </div>
    ";
        }
        // line 46
        echo "
    ";
        // line 47
        echo twig_escape_filter($this->env, $this->getAttribute(($context["UI"] ?? null), "saveAndStayButton", [0 => "pim_user_group_edit"], "method"), "html", null, true);
        echo "
";
    }

    // line 50
    public function block_content_data($context, array $blocks = [])
    {
        // line 51
        echo "    ";
        $context["id"] = "group-profile";
        // line 52
        echo "
        ";
        // line 53
        echo $context["elements"]->getform_navbar($this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ViewElementExtension')->getViewElementAliases($context, ($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "id", []) . ".form_tab")));
        echo "

        <div class=\"AknTabContainer-content tab-content\">
            ";
        // line 56
        echo $context["elements"]->getform_errors(($context["form"] ?? null));
        echo "
            ";
        // line 57
        echo $this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ViewElementExtension')->renderViewElements($context, ($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "id", []) . ".form_tab"));
        echo "
        </div>

    ";
        // line 60
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        echo "
    <script type=\"text/javascript\" nonce=\"";
        // line 61
        echo twig_escape_filter($this->env, $this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension')->getScriptNonce(), "html", null, true);
        echo "\">
        require('pim/page-title').set({'group': '";
        // line 62
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "name", []), "html", null, true);
        echo "'});

        window.flashMessages = JSON.parse('";
        // line 64
        echo twig_jsonencode_filter($this->getAttribute($this->getAttribute($this->getAttribute(($context["app"] ?? null), "session", []), "flashbag", []), "all", []));
        echo "');
    </script>

    <script nonce=\"";
        // line 67
        echo twig_escape_filter($this->env, $this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension')->getScriptNonce(), "html", null, true);
        echo "\">
        require(
            [
                'pim/common/breadcrumbs',
                'pim/fetcher-registry',
                'pim/form-builder'
            ],
            function(
                Breadcrumbs,
                FetcherRegistry,
                FormBuilder
            ) {
                \$(function() {
                    var breadcrumbs = new Breadcrumbs({
                        config: {
                            tab: 'pim-menu-system',
                            item: 'pim-menu-system-user-group'
                        }
                    });
                    breadcrumbs.configure().then(function () {
                        breadcrumbs.render();
                        \$('*[data-drop-zone=\"breadcrumbs\"]').append(breadcrumbs.\$el);
                    });

                    FetcherRegistry.initialize().done(function () {
                        FormBuilder.build('pim-menu-user-navigation').then(function (form) {
                            \$('.user-menu').append(form.el);
                            form.render();
                        }.bind(this));
                    });
                });
            }
        );
    </script>
";
    }

    public function getTemplateName()
    {
        return "PimUserBundle:Group:update.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  152 => 67,  146 => 64,  141 => 62,  137 => 61,  133 => 60,  127 => 57,  123 => 56,  117 => 53,  114 => 52,  111 => 51,  108 => 50,  102 => 47,  99 => 46,  93 => 42,  91 => 35,  90 => 32,  89 => 31,  85 => 30,  80 => 27,  77 => 26,  74 => 25,  67 => 21,  64 => 20,  59 => 1,  55 => 16,  54 => 13,  53 => 12,  51 => 11,  49 => 10,  47 => 8,  45 => 7,  43 => 6,  41 => 5,  39 => 3,  37 => 2,  31 => 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("", "PimUserBundle:Group:update.html.twig", "/var/www/html/vendor/akeneo/pim-community-dev/src/Akeneo/UserManagement/Bundle/Resources/views/Group/update.html.twig");
    }
}
