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

/* configuration/user_show.html.twig */
class __TwigTemplate_b30220cb1ec3ca53d54788ea434b1392e8cffef9067cb685fce998bb452371c1 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'body_id' => [$this, 'block_body_id'],
            'title' => [$this, 'block_title'],
            'main' => [$this, 'block_main'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "admin/layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "configuration/user_show.html.twig"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "configuration/user_show.html.twig"));

        $this->parent = $this->loadTemplate("admin/layout.html.twig", "configuration/user_show.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 3
    public function block_body_id($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_id"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body_id"));

        // line 0
        yield "admin_post_index";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 4
    public function block_title($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        yield " Utilisateur : ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "nom", [], "any", true, true, false, 4)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "nom", [], "any", false, false, false, 4), "")) : ("")) . " ") . ((CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "prenom", [], "any", true, true, false, 4)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["user"] ?? null), "prenom", [], "any", false, false, false, 4), "")) : (""))), "html", null, true);
        yield " ";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 6
    public function block_main($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "main"));

        // line 7
        yield "
";
        // line 8
        yield Twig\Extension\CoreExtension::include($this->env, $context, "form/utilisateur_edit.html.twig");
        yield "

    <ul class=\"nav nav-tabs\" role=\"tablist\" id=\"content-tab\" data-tabs=\"tabs\">
        <li class=\"nav-item\" role=\"presentation\">
            <button class=\"nav-link active\" id=\"1-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tab-1\" type=\"button\" role=\"tab\"  aria-selected=\"true\">Gestion des droits</button>
        </li>
        <li class=\"nav-item\" role=\"presentation\">
            <button class=\"nav-link\" id=\"2-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tab-2\" type=\"button\" role=\"tab\"  aria-selected=\"true\">Organisation RH</button>
        </li>
        <li class=\"nav-item\" role=\"presentation\">
            <button class=\"nav-link\" id=\"3-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tab-3\" type=\"button\" role=\"tab\"  aria-selected=\"true\">Attachements</button>
        </li>
        <li class=\"nav-item\" role=\"presentation\">
            <button class=\"nav-link\" id=\"4-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tab-4\" type=\"button\" role=\"tab\"  aria-selected=\"true\">Tchat</button>
        </li>

    </ul>
    <div class=\"tab-content bg-primary px-3 py-3\" id=\"myTabContent\">
        <div class=\"tab-pane fade show active\" id=\"tab-1\" role=\"tabpanel\" aria-labelledby=\"1-tab\">
            <div class=\"px-2 py-2 bg-white\">
                <div class=\"table-responsive table-wrapper-scroll-y\">
                    <table class=\"table table-bordered table-sm align-middle table-striped\" id=\"table-rights\">
                        <thead>
                            <th colspan=\"2\"  width=\"50%\" class=\"text-center\">Fonctionnalité</th>
                            ";
        // line 32
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 32, $this->source); })()), "utilisateurSites", [], "any", false, false, false, 32));
        foreach ($context['_seq'] as $context["_key"] => $context["uSite"]) {
            // line 33
            yield "                                <th>";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["uSite"], "site", [], "any", false, false, false, 33), "nom", [], "any", false, false, false, 33), "html", null, true);
            yield "</th>
                            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['uSite'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 35
        yield "                        </thead>
                        <tbody>
                        ";
        // line 37
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["groupeDroits"]) || array_key_exists("groupeDroits", $context) ? $context["groupeDroits"] : (function () { throw new RuntimeError('Variable "groupeDroits" does not exist.', 37, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["groupe"]) {
            // line 38
            yield "                            ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["groupe"], "droitPortails", [], "any", false, false, false, 38));
            $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["droitG"]) {
                // line 39
                yield "                                <tr>
                                    ";
                // line 40
                if ((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 40), 1))) {
                    // line 41
                    yield "                                        <td width=\"2%\" rowspan=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["groupe"], "droitPortails", [], "any", false, false, false, 41)), "html", null, true);
                    yield "\" style=\"writing-mode: vertical-rl;text-orientation: mixed;text-align:center\">";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::upper($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, $context["groupe"], "libelle", [], "any", false, false, false, 41)), "html", null, true);
                    yield "</td>
                                    ";
                }
                // line 43
                yield "                                    <td>";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["droitG"], "libelle", [], "any", false, false, false, 43), "html", null, true);
                yield "</td>
                                    ";
                // line 44
                $context['_parent'] = $context;
                $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 44, $this->source); })()), "utilisateurSites", [], "any", false, false, false, 44));
                foreach ($context['_seq'] as $context["_key"] => $context["uSite"]) {
                    // line 45
                    yield "                                        <td width=\"3%\" style=\"text-align: center;\">
                                            <input type=\"checkbox\" class=\"form-check-input filled-in\" name=\"site-";
                    // line 46
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["uSite"], "site", [], "any", false, false, false, 46), "id", [], "any", false, false, false, 46), "html", null, true);
                    yield "-right-";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["droitG"], "id", [], "any", false, false, false, 46), "html", null, true);
                    yield "\" value=\"";
                    yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 46, $this->source); })()), "droits", [], "any", false, false, false, 46), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["uSite"], "site", [], "any", false, false, false, 46), "id", [], "any", false, false, false, 46), [], "array", false, false, false, 46), CoreExtension::getAttribute($this->env, $this->source, $context["droitG"], "id", [], "any", false, false, false, 46), [], "array", false, false, false, 46), "html", null, true);
                    yield "\" checked=\"";
                    yield (((0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 46, $this->source); })()), "droits", [], "any", false, false, false, 46), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["uSite"], "site", [], "any", false, false, false, 46), "id", [], "any", false, false, false, 46), [], "array", false, false, false, 46), CoreExtension::getAttribute($this->env, $this->source, $context["droitG"], "id", [], "any", false, false, false, 46), [], "array", false, false, false, 46), 1))) ? ("checked") : (""));
                    yield "\">
                                        </td>
                                    ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['uSite'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 49
                yield "                                </tr>
                            ";
                ++$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['droitG'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 51
            yield "                        ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['_key'], $context['groupe'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 52
        yield "                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class=\"tab-pane fade show\" id=\"tab-2\" role=\"tabpanel\" aria-labelledby=\"2-tab\">
            <div class=\"px-4 py-2 bg-white\">
                <div class=\"text-center color-primary\">en cours de développement</div>
                ";
        // line 61
        yield "                ";
        // line 62
        yield "                ";
        // line 63
        yield "                    ";
        // line 64
        yield "                    ";
        // line 65
        yield "                ";
        // line 66
        yield "                ";
        // line 67
        yield "                    ";
        // line 68
        yield "                    ";
        // line 69
        yield "                ";
        // line 70
        yield "                ";
        // line 71
        yield "                    ";
        // line 72
        yield "                ";
        // line 73
        yield "                ";
        // line 74
        yield "                    ";
        // line 75
        yield "                    ";
        // line 76
        yield "                        ";
        // line 77
        yield "                            ";
        // line 78
        yield "                            ";
        // line 79
        yield "                            ";
        // line 80
        yield "                            ";
        // line 81
        yield "                            ";
        // line 82
        yield "                            ";
        // line 83
        yield "                                ";
        // line 84
        yield "                                    ";
        // line 85
        yield "                                    ";
        // line 86
        yield "                                ";
        // line 87
        yield "                            ";
        // line 88
        yield "                            ";
        // line 89
        yield "                        ";
        // line 90
        yield "                        ";
        // line 91
        yield "                    ";
        // line 92
        yield "
                ";
        // line 94
        yield "            </div>
        </div>
        <div class=\"tab-pane fade show\" id=\"tab-3\" role=\"tabpanel\" aria-labelledby=\"3-tab\">
            <div class=\"px-2 py-2 bg-white\">
                <div class=\"text-center color-primary\"></i>en cours de développement</div>
            </div>
        </div>
        <div class=\"tab-pane fade show\" id=\"tab-4\" role=\"tabpanel\" aria-labelledby=\"4-tab\">
            <div class=\"px-2 py-2 bg-white\">
                <div class=\"text-center color-primary\"></i>en cours de développement</div>
            </div>
        </div>
    </div>
    <div id=\"popup-add-subordonnee\" style=\"display:none\" >
        <div id=\"body-add-subordonnee\"></div>
    </div>

";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    // line 113
    public function block_javascripts($context, array $blocks = [])
    {
        $macros = $this->macros;
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));

        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));

        // line 114
        yield "     <script>
         var page = '";
        // line 115
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("page", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["page"]) || array_key_exists("page", $context) ? $context["page"] : (function () { throw new RuntimeError('Variable "page" does not exist.', 115, $this->source); })()), null)) : (null)), "html", null, true);
        yield "';
         var userId = ";
        // line 116
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["user"]) || array_key_exists("user", $context) ? $context["user"] : (function () { throw new RuntimeError('Variable "user" does not exist.', 116, $this->source); })()), "id", [], "any", false, false, false, 116), "html", null, true);
        yield ";

         function loadSub(data) {
             var tr = '<tr><td style=\"padding-left:2rem;\">'+ data.nom  + ' ' + data.prenom+'</td><td class=\"text-center\"><i class=\"fa fa-trash remove_user\" data-id='+ data.id +'></i></td></tr>';
             \$('#tab-subs > tbody').append(tr);
             \$('#popup-add-subordonnee').dxPopup(\"instance\").hide();
         }

     </script>
    ";
        // line 125
        yield from $this->yieldParentBlock("javascripts", $context, $blocks);
        yield "
 ";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "configuration/user_show.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  377 => 125,  365 => 116,  361 => 115,  358 => 114,  348 => 113,  320 => 94,  317 => 92,  315 => 91,  313 => 90,  311 => 89,  309 => 88,  307 => 87,  305 => 86,  303 => 85,  301 => 84,  299 => 83,  297 => 82,  295 => 81,  293 => 80,  291 => 79,  289 => 78,  287 => 77,  285 => 76,  283 => 75,  281 => 74,  279 => 73,  277 => 72,  275 => 71,  273 => 70,  271 => 69,  269 => 68,  267 => 67,  265 => 66,  263 => 65,  261 => 64,  259 => 63,  257 => 62,  255 => 61,  245 => 52,  239 => 51,  224 => 49,  209 => 46,  206 => 45,  202 => 44,  197 => 43,  189 => 41,  187 => 40,  184 => 39,  166 => 38,  162 => 37,  158 => 35,  149 => 33,  145 => 32,  118 => 8,  115 => 7,  105 => 6,  83 => 4,  72 => 0,  62 => 3,  39 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends 'admin/layout.html.twig' %}

{% block body_id 'admin_post_index' %}
{% block title %} Utilisateur : {{ user.nom|default('') ~ ' ' ~ user.prenom|default('') }} {% endblock %}

{% block main %}

{{ include('form/utilisateur_edit.html.twig') }}

    <ul class=\"nav nav-tabs\" role=\"tablist\" id=\"content-tab\" data-tabs=\"tabs\">
        <li class=\"nav-item\" role=\"presentation\">
            <button class=\"nav-link active\" id=\"1-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tab-1\" type=\"button\" role=\"tab\"  aria-selected=\"true\">Gestion des droits</button>
        </li>
        <li class=\"nav-item\" role=\"presentation\">
            <button class=\"nav-link\" id=\"2-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tab-2\" type=\"button\" role=\"tab\"  aria-selected=\"true\">Organisation RH</button>
        </li>
        <li class=\"nav-item\" role=\"presentation\">
            <button class=\"nav-link\" id=\"3-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tab-3\" type=\"button\" role=\"tab\"  aria-selected=\"true\">Attachements</button>
        </li>
        <li class=\"nav-item\" role=\"presentation\">
            <button class=\"nav-link\" id=\"4-tab\" data-bs-toggle=\"tab\" data-bs-target=\"#tab-4\" type=\"button\" role=\"tab\"  aria-selected=\"true\">Tchat</button>
        </li>

    </ul>
    <div class=\"tab-content bg-primary px-3 py-3\" id=\"myTabContent\">
        <div class=\"tab-pane fade show active\" id=\"tab-1\" role=\"tabpanel\" aria-labelledby=\"1-tab\">
            <div class=\"px-2 py-2 bg-white\">
                <div class=\"table-responsive table-wrapper-scroll-y\">
                    <table class=\"table table-bordered table-sm align-middle table-striped\" id=\"table-rights\">
                        <thead>
                            <th colspan=\"2\"  width=\"50%\" class=\"text-center\">Fonctionnalité</th>
                            {% for uSite in user.utilisateurSites %}
                                <th>{{ uSite.site.nom }}</th>
                            {% endfor %}
                        </thead>
                        <tbody>
                        {% for groupe in groupeDroits %}
                            {% for droitG in groupe.droitPortails %}
                                <tr>
                                    {% if loop.index == 1 %}
                                        <td width=\"2%\" rowspan=\"{{ groupe.droitPortails|length }}\" style=\"writing-mode: vertical-rl;text-orientation: mixed;text-align:center\">{{ groupe.libelle|upper }}</td>
                                    {% endif %}
                                    <td>{{ droitG.libelle }}</td>
                                    {% for uSite in user.utilisateurSites %}
                                        <td width=\"3%\" style=\"text-align: center;\">
                                            <input type=\"checkbox\" class=\"form-check-input filled-in\" name=\"site-{{ uSite.site.id }}-right-{{ droitG.id }}\" value=\"{{ user.droits[uSite.site.id][droitG.id] }}\" checked=\"{{ user.droits[uSite.site.id][droitG.id] == 1 ? 'checked' : '' }}\">
                                        </td>
                                    {% endfor %}
                                </tr>
                            {% endfor %}
                        {% endfor %}
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
        <div class=\"tab-pane fade show\" id=\"tab-2\" role=\"tabpanel\" aria-labelledby=\"2-tab\">
            <div class=\"px-4 py-2 bg-white\">
                <div class=\"text-center color-primary\">en cours de développement</div>
                {#<p class=\"text-center pt-2\">CONGÉS</p>#}
                {#<p class=\"form-check-inline\">Le supérieur hiérarchique de {{ user.prenom }} {{ user.nom|upper }} est un utilisateur de l'intranet? </p>#}
                {#<div class=\"form-check form-check-inline\">#}
                    {#<input class=\"form-check-input\" type=\"radio\" name=\"inlineRadioOptions\" id=\"inlineRadio1\" value=\"oui\" {{ user.responsable is not empty ? 'checked' : '' }}>#}
                    {#<label class=\"form-check-label\" for=\"inlineRadio1\">OUI</label>#}
                {#</div>#}
                {#<div class=\"form-check form-check-inline\">#}
                    {#<input class=\"form-check-input\" type=\"radio\" name=\"inlineRadioOptions\" id=\"inlineRadio2\" value=\"non\" {{ user.responsable is empty ? 'checked' : '' }}>#}
                    {#<label class=\"form-check-label\" for=\"inlineRadio2\">NON</label>#}
                {#</div>#}
                {#<div class=\"form-check-inline\" style=\"vertical-align: middle;\">#}
                    {#{{ form_row(form.responsable) }}#}
                {#</div>#}
                {#{%  if user.utilisateursEquipe is not empty %}#}
                    {#<p>Utilisateurs dont {{ user.prenom }} {{ user.nom|upper }} est le supérieur hiérarchique : </p>#}
                    {#<div style=\"position:relative; padding-right: 3rem\">#}
                        {#<table class=\"table table-bordered table-sm align-middle table-striped\" id=\"tab-subs\">#}
                            {#<thead>#}
                            {#<th width=\"50%\" class=\"text-center\">Utilisateurs</th>#}
                            {#<th width=\"50%\" class=\"text-center\"></th>#}
                            {#</thead>#}
                            {#<tbody>#}
                            {#{% for suser in user.utilisateursEquipe %}#}
                                {#<tr>#}
                                    {#<td style=\"padding-left:2rem;\">{{ suser.prenom }} {{ suser.nom|upper }}</td>#}
                                    {#<td class=\"text-center\"><i class=\"fa fa-trash remove_user\" data-id=\"{{ suser.id }}\"></i></td>#}
                                {#</tr>#}
                            {#{% endfor %}#}
                            {#</tbody>#}
                        {#</table>#}
                        {#<a  id=\"add_subordonnee\"><i class=\"fa fa-plus\" style=\"position:absolute;top:0;right:-9px; width: 35px; height: 35px; border-radius: 20px; text-align:center; background: #14a085;font-size: 1.3em;line-height: 2.3rem;color: white;\"></i></a>#}
                    {#</div>#}

                {#{% endif %}#}
            </div>
        </div>
        <div class=\"tab-pane fade show\" id=\"tab-3\" role=\"tabpanel\" aria-labelledby=\"3-tab\">
            <div class=\"px-2 py-2 bg-white\">
                <div class=\"text-center color-primary\"></i>en cours de développement</div>
            </div>
        </div>
        <div class=\"tab-pane fade show\" id=\"tab-4\" role=\"tabpanel\" aria-labelledby=\"4-tab\">
            <div class=\"px-2 py-2 bg-white\">
                <div class=\"text-center color-primary\"></i>en cours de développement</div>
            </div>
        </div>
    </div>
    <div id=\"popup-add-subordonnee\" style=\"display:none\" >
        <div id=\"body-add-subordonnee\"></div>
    </div>

{% endblock %}

 {% block javascripts %}
     <script>
         var page = '{{ page|default(null) }}';
         var userId = {{ user.id }};

         function loadSub(data) {
             var tr = '<tr><td style=\"padding-left:2rem;\">'+ data.nom  + ' ' + data.prenom+'</td><td class=\"text-center\"><i class=\"fa fa-trash remove_user\" data-id='+ data.id +'></i></td></tr>';
             \$('#tab-subs > tbody').append(tr);
             \$('#popup-add-subordonnee').dxPopup(\"instance\").hide();
         }

     </script>
    {{ parent() }}
 {% endblock %}", "configuration/user_show.html.twig", "/builds/dev/refonte_sav/templates/configuration/user_show.html.twig");
    }
}
