<?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:Role:update.html.twig */
class __TwigTemplate_6a69c74e6add1e531fe0012cc37ccc3b7d494f447257d7c863eb94b0a4334356 extends \Twig\Template
{
    public function __construct(Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = [
            'head_script' => [$this, 'block_head_script'],
            'content' => [$this, 'block_content'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        // line 1
        $context["elements"] = $this->loadTemplate("PimUIBundle:Default:page_elements.html.twig", "PimUserBundle:Role:update.html.twig", 1)->unwrap();
        // line 2
        $context["dataGrid"] = $this->loadTemplate("PimDataGridBundle::macros.html.twig", "PimUserBundle:Role:update.html.twig", 2)->unwrap();
        // line 3
        $context["UI"] = $this->loadTemplate("PimUIBundle::macros.html.twig", "PimUserBundle:Role:update.html.twig", 3)->unwrap();
        // line 4
        echo "
";
        // line 5
        $this->displayBlock('head_script', $context, $blocks);
        // line 65
        echo "
";
        // line 66
        $context["entityId"] = $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "id", []);
        // line 67
        echo "
";
        // line 68
        $this->displayBlock('content', $context, $blocks);
    }

    // line 5
    public function block_head_script($context, array $blocks = [])
    {
        // line 6
        echo "    <script type=\"text/javascript\" nonce=\"";
        echo twig_escape_filter($this->env, $this->env->getExtension('Akeneo\Platform\Bundle\UIBundle\Twig\ContentSecurityPolicyExtension')->getScriptNonce(), "html", null, true);
        echo "\">
        require(
            ['jquery', 'pim/security-context'],
            function (\$, securityContext) {
                'use strict';

                securityContext.initialize();
                \$(function() {
                    var decorateTabs = function() {
                        \$('.AknVerticalNavtab').find('.AknVerticalNavtab-link').each(function() {
                            var \$target = \$(\$(this).attr('href'));
                            var hasGranted = \$target.find('.acl-permission:not(.default-field) .select-button.granted').length;
                            var hasNonGranted = \$target.find('.acl-permission:not(.default-field) .select-button.non-granted').length;
                            var iconClass = 'non-granted'
                            if (hasGranted && 0 === hasNonGranted) {
                                iconClass = 'AknSelectButton--selected granted';
                            } else if (hasGranted) {
                                iconClass = 'AknSelectButton--partial partial';
                            }
                            var \$icon = \$(this).find('.select-button').first();
                            \$icon.removeClass('AknSelectButton--selected AknSelectButton--partial granted partial non-granted').addClass(iconClass);
                        });
                    };

                    var togglePermission = function(\$icon, callback) {
                        if (\$icon.parent().hasClass('default-field-toggle')) {
                            var permission = \$icon.parent().data('permission');
                            var \$defaultIcon = \$('.default-field[data-permission=\"' + permission + '\"]').find('.' + (\$icon.hasClass('granted') ? 'granted' : 'non-granted'));
                            \$defaultIcon.toggleClass('icon-ok granted').toggleClass('icon-remove non-granted');
                            var \$defaultInput = \$defaultIcon.siblings('input[type=\"checkbox\"]').eq(0);
                            \$defaultInput.prop('checked', !\$defaultInput.is(':checked'));
                        }

                        \$icon.toggleClass('AknSelectButton--selected granted non-granted');
                        var \$input = \$icon.siblings('input[type=\"checkbox\"]').eq(0);
                        \$input.prop('checked', !\$input.is(':checked')).trigger('change');
                        (callback || \$.noop)();
                    };

                    \$('.acl-permission .select-button').on('click', function() {
                        togglePermission(\$(this), decorateTabs)
                    });

                    \$('.AknVerticalNavtab').on('click', '.select-button', function() {
                        var classToToggle = \$(this).hasClass('AknSelectButton--selected') ? 'granted' : 'non-granted';
                        var \$target = \$(\$(this).closest('.AknVerticalNavtab-link').attr('href'));
                        \$target.find('.acl-permission:not(.default-field) .' + classToToggle).each(function() {
                            togglePermission(\$(this));
                        });
                        decorateTabs();
                    });

                    decorateTabs();
                });
            }
        );
        require('pim/page-title').set({'role': '";
        // line 62
        echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "label", []), "html", null, true);
        echo "'});
    </script>
";
    }

    // line 68
    public function block_content($context, array $blocks = [])
    {
        // line 69
        echo "<div class=\"AknDefault-mainContent\">
    ";
        // line 70
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start', ["action" => ((        // line 71
($context["entityId"] ?? null)) ? ($this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_role_update", ["id" => ($context["entityId"] ?? null)])) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_role_create"))), "attr" => ["class" => "form-tabbed", "data-updated-title" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("confirmation.leave"), "data-updated-message" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("confirmation.discard changes", ["%entity%" => $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("role.title")])]]);
        // line 77
        echo "

        ";
        // line 79
        $context["title"] = ((($context["entityId"] ?? null)) ? ((($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_common.edit") . " - ") . $this->getAttribute($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "value", []), "label", []))) : ($this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_common.create")));
        // line 80
        echo "
        ";
        // line 81
        ob_start(function () { return ''; });
        // line 82
        echo "            ";
        if (($context["entityId"] ?? null)) {
            // line 83
            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 86
            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("other_actions"), "html", null, true);
            echo "</div>
                        ";
            // line 87
            echo $context["elements"]->getdeleteLink($this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_role_delete", ["id" =>             // line 88
($context["entityId"] ?? null)]), "pim_user_role_remove", $this->env->getExtension('Symfony\Bridge\Twig\Extension\RoutingExtension')->getPath("pim_user_role_index"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("pim_user_management.entity.role.module.delete.confirm"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("flash.role.removed"), $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("confirmation.delete"), "AknDropdown-menuLink delete", $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Roles"));
            // line 96
            echo "
                    </div>
                </div>
            ";
        }
        // line 100
        echo "            ";
        echo $context["elements"]->getsubmitBtn("", "ok", "AknButtonList-item");
        echo "
        ";
        $context["buttons"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
        // line 102
        echo "
        ";
        // line 103
        echo $context["elements"]->getpage_header(["title" =>         // line 105
($context["title"] ?? null), "buttons" =>         // line 106
($context["buttons"] ?? null), "state" =>         // line 107
$context["elements"]->getupdated($this->getAttribute($this->getAttribute(($context["form"] ?? null), "vars", []), "id", []))]);
        // line 109
        echo "

        ";
        // line 111
        $context["tabs"] = [0 => "pim_user.roles.tab.general"];
        // line 112
        echo "        ";
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter(($context["privilegesConfig"] ?? null)));
        foreach ($context['_seq'] as $context["_key"] => $context["item"]) {
            // line 113
            echo "            ";
            $context["tabs"] = twig_array_merge(($context["tabs"] ?? null), [0 => ("pim_user.roles.tab." . $context["item"])]);
            // line 114
            echo "        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['item'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 115
        echo "        ";
        $context["tabs"] = twig_array_merge(($context["tabs"] ?? null), [0 => "pim_user.roles.tab.users"]);
        // line 116
        echo "
            ";
        // line 117
        echo $context["elements"]->getform_navbar(($context["tabs"] ?? null), "");
        echo "
            <div class=\"tab-content oro-tab-form\">

                ";
        // line 120
        echo $context["elements"]->getform_errors(($context["form"] ?? null));
        echo "

                <div class=\"tab-pane active\" id=\"pim_user-roles-tab-general\">
                    <div class=\"tabsections\">
                        <div class=\"tabsection\">
                            <div class=\"AknTabContainer-content tabsection-content\">
                                <div class=\"AknFormContainer AknFormContainer--withPadding\">
                                    ";
        // line 127
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "label", []), 'row');
        echo "
                                    ";
        // line 128
        if ($this->getAttribute(($context["form"] ?? null), "owner", [], "any", true, true)) {
            // line 129
            echo "                                        ";
            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "owner", []), 'row', ["attr" => ["class" => "hide"]]);
            echo "
                                    ";
        }
        // line 131
        echo "                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                ";
        // line 137
        $context["groups"] = $this->env->getExtension('Akeneo\UserManagement\Bundle\Twig\AclGroupsExtension')->getAclGroups();
        // line 138
        echo "                ";
        $context["groupNames"] = $this->env->getExtension('Akeneo\UserManagement\Bundle\Twig\AclGroupsExtension')->getAclGroupNames();
        // line 139
        echo "
                ";
        // line 140
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable(($context["privilegesConfig"] ?? null));
        foreach ($context['_seq'] as $context["privilegeBlock"] => $context["privilegeConfig"]) {
            // line 141
            echo "                    ";
            if ($this->getAttribute(($context["groups"] ?? null), $context["privilegeBlock"], [], "array", true, true)) {
                // line 142
                echo "                        <div class=\"tab-pane\" id=\"pim_user-roles-tab-";
                echo twig_escape_filter($this->env, $context["privilegeBlock"], "html", null, true);
                echo "\">
                        <div class=\"tabs-left\">
                            ";
                // line 144
                if (("groups" == $this->getAttribute($context["privilegeConfig"], "view_type", []))) {
                    // line 145
                    echo "                                <ul class=\"AknVerticalNavtab AknVerticalNavtab--condensed\">
                                    <li class=\"AknVerticalNavtab-item AknVerticalNavtab-header\"></li>
                                    ";
                    // line 147
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["groups"] ?? null), $context["privilegeBlock"], [], "array"));
                    $context['loop'] = [
                      'parent' => $context['_parent'],
                      'index0' => 0,
                      'index'  => 1,
                      'first'  => true,
                    ];
                    if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
                        $length = count($context['_seq']);
                        $context['loop']['revindex0'] = $length - 1;
                        $context['loop']['revindex'] = $length;
                        $context['loop']['length'] = $length;
                        $context['loop']['last'] = 1 === $length;
                    }
                    foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
                        // line 148
                        echo "                                        <li class=\"AknVerticalNavtab-item tab";
                        echo ((($this->getAttribute($context["loop"], "index", []) == 1)) ? (" active") : (""));
                        echo "\">
                                            <a class=\"AknVerticalNavtab-link\" href=\"#tabs-";
                        // line 149
                        echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_replace_filter($this->getAttribute($context["group"], "name", []), [" " => "-", "." => "-"])), "html", null, true);
                        echo "\" data-toggle=\"tab\">
                                                <span class=\"AknAcl\">
                                                    <div class=\"select-button AknAcl-icon AknSelectButton AknSelectButton--selected granted\"></div>
                                                    <span>";
                        // line 152
                        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["group"], "name", [])), "html", null, true);
                        echo "</span>
                                                </span>
                                            </a>
                                        </li>
                                    ";
                        ++$context['loop']['index0'];
                        ++$context['loop']['index'];
                        $context['loop']['first'] = false;
                        if (isset($context['loop']['length'])) {
                            --$context['loop']['revindex0'];
                            --$context['loop']['revindex'];
                            $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                        }
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 157
                    echo "                                    ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable(twig_reverse_filter($this->env, $this->getAttribute($this->getAttribute(($context["form"] ?? null), $context["privilegeBlock"], [], "array"), "children", [])));
                    foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                        if (((!twig_in_filter($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "group", []), $this->getAttribute(($context["groups"] ?? null), $context["privilegeBlock"], [], "array")) && ($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "extensionKey", []) == "entity")) && ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "identity", []), "name", []) != "(default)"))) {
                            // line 158
                            echo "                                        ";
                            $context["groupName"] = ("oro_security.acl_group." . twig_lower_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "identity", []), "name", [])));
                            // line 159
                            echo "                                        <li class=\"AknVerticalNavtab-item tab\">
                                            <a class=\"AknVerticalNavtab-link\" href=\"#tabs-";
                            // line 160
                            echo twig_escape_filter($this->env, twig_replace_filter(($context["groupName"] ?? null), [" " => "-", "." => "-"]), "html", null, true);
                            echo "\" data-toggle=\"tab\">
                                                <span class=\"AknAcl\">
                                                    <div class=\"select-button AknAcl-icon AknSelectButton AknSelectButton--selected granted\"></div>
                                                    <span>";
                            // line 163
                            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["groupName"] ?? null)), "html", null, true);
                            echo "</span>
                                                </span>
                                            </a>
                                        </li>
                                    ";
                        }
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 168
                    echo "                                    ";
                    if (("action" == $context["privilegeBlock"])) {
                        // line 169
                        echo "                                        <li class=\"AknVerticalNavtab-item tab\">
                                            <a class=\"AknVerticalNavtab-link\" href=\"#tabs-group-system\" data-toggle=\"tab\">
                                                <span class=\"AknAcl\">
                                                    <div class=\"select-button AknAcl-icon AknSelectButton AknSelectButton--selected granted\"></div>
                                                    <span>";
                        // line 173
                        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("System"), "html", null, true);
                        echo "</span>
                                                </span>
                                            </a>
                                        </li>
                                    ";
                    }
                    // line 178
                    echo "                                </ul>
                                <div class=\"AknTabContainer-content AknTabContainer--withPadding tab-content\">
                                    ";
                    // line 180
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute(($context["groups"] ?? null), $context["privilegeBlock"], [], "array"));
                    foreach ($context['_seq'] as $context["_key"] => $context["group"]) {
                        // line 181
                        echo "                                        <div id=\"tabs-";
                        echo twig_escape_filter($this->env, twig_lower_filter($this->env, twig_replace_filter($this->getAttribute($context["group"], "name", []), [" " => "-", "." => "-"])), "html", null, true);
                        echo "\" class=\"tab-pane fullheight\">
                                            <div class=\"AknTabHeader\">
                                                <h3 class=\"AknTabHeader-title AknTabHeader-small\">";
                        // line 183
                        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans($this->getAttribute($context["group"], "name", [])), "html", null, true);
                        echo "</h3>
                                            </div>
                                            <div class=\"AknFormContainer AknFormContainer--withPadding acl-group\">
                                                ";
                        // line 186
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["form"] ?? null), $context["privilegeBlock"], [], "array"), "children", []));
                        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                            if (($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "group", []) == $this->getAttribute($context["group"], "name", []))) {
                                // line 187
                                echo "                                                    ";
                                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
                                echo "
                                                ";
                            }
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 189
                        echo "                                            </div>
                                        </div>
                                    ";
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['group'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 192
                    echo "                                    ";
                    $context['_parent'] = $context;
                    $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["form"] ?? null), $context["privilegeBlock"], [], "array"), "children", []));
                    foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                        if (((!twig_in_filter($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "group", []), ($context["groups"] ?? null)) && ($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "extensionKey", []) == "entity")) && ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "identity", []), "name", []) != "(default)"))) {
                            // line 193
                            echo "                                        ";
                            $context["groupName"] = ("oro_security.acl_group." . twig_lower_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "identity", []), "name", [])));
                            // line 194
                            echo "                                        <div id=\"tabs-";
                            echo twig_escape_filter($this->env, twig_replace_filter(($context["groupName"] ?? null), [" " => "-", "." => "-"]), "html", null, true);
                            echo "\" class=\"tab-pane fullheight\">
                                            <div class=\"AknTabHeader\">
                                                <h3 class=\"AknTabHeader-title\">";
                            // line 196
                            echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans(($context["groupName"] ?? null)), "html", null, true);
                            echo "</h3>
                                            </div>
                                            <div class=\"AknFormContainer AknFormContainer--withPadding acl-group\">
                                                ";
                            // line 199
                            echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
                            echo "
                                            </div>
                                        </div>
                                    ";
                        }
                    }
                    $_parent = $context['_parent'];
                    unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                    $context = array_intersect_key($context, $_parent) + $_parent;
                    // line 203
                    echo "                                    ";
                    if (("action" == $context["privilegeBlock"])) {
                        // line 204
                        echo "                                        <div id=\"tabs-group-system\" class=\"tab-pane fullheight\">
                                            <div class=\"AknTabHeader\">
                                                <h3 class=\"AknTabHeader-title\">";
                        // line 206
                        echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("System"), "html", null, true);
                        echo "</h3>
                                            </div>
                                            <div class=\"AknFormContainer AknFormContainer--withPadding acl-group\">
                                                ";
                        // line 209
                        $context['_parent'] = $context;
                        $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(($context["form"] ?? null), $context["privilegeBlock"], [], "array"), "children", []));
                        foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
                            if ((!twig_in_filter($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "group", []), ($context["groupNames"] ?? null)) && (($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "extensionKey", []) != "entity") || ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["child"], "vars", []), "value", []), "identity", []), "name", []) == "(default)")))) {
                                // line 210
                                echo "                                                    ";
                                echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["child"], 'widget');
                                echo "
                                                ";
                            }
                        }
                        $_parent = $context['_parent'];
                        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['child'], $context['_parent'], $context['loop']);
                        $context = array_intersect_key($context, $_parent) + $_parent;
                        // line 212
                        echo "                                            </div>
                                        </div>
                                    ";
                    }
                    // line 215
                    echo "                                </div>
                            </div>
                        ";
                } else {
                    // line 218
                    echo "                            ";
                    echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), $context["privilegeBlock"], [], "array"), 'widget');
                    echo "
                        ";
                }
                // line 220
                echo "                    </div>
                    ";
            }
            // line 222
            echo "                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['privilegeBlock'], $context['privilegeConfig'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 223
        echo "
                <div class=\"AknTabContainer-content tab-pane\" id=\"pim_user-roles-tab-users\">
                    ";
        // line 225
        echo $context["dataGrid"]->getrenderGrid("pim-role-user-grid", ["role_id" => ($context["entityId"] ?? null)]);
        echo "
                    ";
        // line 226
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "appendUsers", []), 'widget', ["id" => "roleAppendUsers"]);
        echo "
                    ";
        // line 227
        echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->getAttribute(($context["form"] ?? null), "removeUsers", []), 'widget', ["id" => "roleRemoveUsers"]);
        echo "
                </div>
        </div>

    ";
        // line 231
        echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        echo "

    <script nonce=\"";
        // line 233
        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-role'
                        }
                    });
                    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>
</div>
";
    }

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

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  516 => 233,  511 => 231,  504 => 227,  500 => 226,  496 => 225,  492 => 223,  486 => 222,  482 => 220,  476 => 218,  471 => 215,  466 => 212,  456 => 210,  451 => 209,  445 => 206,  441 => 204,  438 => 203,  427 => 199,  421 => 196,  415 => 194,  412 => 193,  406 => 192,  398 => 189,  388 => 187,  383 => 186,  377 => 183,  371 => 181,  367 => 180,  363 => 178,  355 => 173,  349 => 169,  346 => 168,  334 => 163,  328 => 160,  325 => 159,  322 => 158,  316 => 157,  297 => 152,  291 => 149,  286 => 148,  269 => 147,  265 => 145,  263 => 144,  257 => 142,  254 => 141,  250 => 140,  247 => 139,  244 => 138,  242 => 137,  234 => 131,  228 => 129,  226 => 128,  222 => 127,  212 => 120,  206 => 117,  203 => 116,  200 => 115,  194 => 114,  191 => 113,  186 => 112,  184 => 111,  180 => 109,  178 => 107,  177 => 106,  176 => 105,  175 => 103,  172 => 102,  166 => 100,  160 => 96,  158 => 88,  157 => 87,  153 => 86,  148 => 83,  145 => 82,  143 => 81,  140 => 80,  138 => 79,  134 => 77,  132 => 71,  131 => 70,  128 => 69,  125 => 68,  118 => 62,  58 => 6,  55 => 5,  51 => 68,  48 => 67,  46 => 66,  43 => 65,  41 => 5,  38 => 4,  36 => 3,  34 => 2,  32 => 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:Role:update.html.twig", "/var/www/html/vendor/akeneo/pim-community-dev/src/Akeneo/UserManagement/Bundle/Resources/views/Role/update.html.twig");
    }
}
