<?php

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

/* /page/setting.html.twig */
class __TwigTemplate_14e5d91741a301c789215038879652dadf889ff7192da47e74e61c8b28dd92f8 extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->blocks = [
            'title' => [$this, 'block_title'],
            'stylesheets' => [$this, 'block_stylesheets'],
            'body' => [$this, 'block_body'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context)
    {
        // line 1
        return "base.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", "/page/setting.html.twig"));

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

        $this->parent = $this->loadTemplate("base.html.twig", "/page/setting.html.twig", 1);
        $this->parent->display($context, array_merge($this->blocks, $blocks));
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

    }

    // line 2
    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"));

        // line 3
        echo "\tReglage
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 6
    public function block_stylesheets($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", "stylesheets"));

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

        // line 7
        echo "\t<link rel=\"stylesheet\" href=\"";
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("css/dashboard.css"), "html", null, true);
        echo "\">
";
        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 9
    public function block_body($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"));

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

        // line 10
        echo "    
<section
\tid=\"contents\" class=\"container-fluid\">
\t<!-- entete content -->
\t<div id=\"top-content\">
        <div id=\"entete_fixed\">
            <ul>
                <li>
                    <a href=\"#\" id=\"btn_drop_side_menu\">
                        <i data-show=\"show-side-navigation1\" class=\"fa fa-bars show-side-btn\"></i>
                    </a>
                </li>
                <li
\t\t\t\t\t\t\t\t";
        // line 23
        if ((0 === twig_compare((isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 23, $this->source); })()), "royal_beach"))) {
            // line 24
            echo "\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t";
        }
        // line 26
        echo "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"";
        // line 27
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("royal_beach", ["current_page" => (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 27, $this->source); })())]), "html", null, true);
        echo "\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"";
        // line 29
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/hazo1.png"), "html", null, true);
        echo "\" alt=\"logo1\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t";
        // line 34
        if ((0 === twig_compare((isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 34, $this->source); })()), "calypso"))) {
            // line 35
            echo "\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t";
        }
        // line 37
        echo "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"";
        // line 38
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("calypso", ["current_page" => (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 38, $this->source); })())]), "html", null, true);
        echo "\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"";
        // line 40
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/hazo2.png"), "html", null, true);
        echo "\" alt=\"logo2\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li 
\t\t\t\t\t\t\t\t";
        // line 45
        if ((0 === twig_compare((isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 45, $this->source); })()), "baobab_tree"))) {
            // line 46
            echo "\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t";
        }
        // line 48
        echo "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"";
        // line 49
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("baobab_tree", ["current_page" => (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 49, $this->source); })())]), "html", null, true);
        echo "\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"";
        // line 51
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/hazo3.png"), "html", null, true);
        echo "\" alt=\"logo3\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t";
        // line 56
        if ((0 === twig_compare((isset($context["hotel"]) || array_key_exists("hotel", $context) ? $context["hotel"] : (function () { throw new RuntimeError('Variable "hotel" does not exist.', 56, $this->source); })()), "vanila_hotel"))) {
            // line 57
            echo "\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t";
        }
        // line 59
        echo "\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"";
        // line 60
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("vanila_hotel", ["current_page" => (isset($context["current_page"]) || array_key_exists("current_page", $context) ? $context["current_page"] : (function () { throw new RuntimeError('Variable "current_page" does not exist.', 60, $this->source); })())]), "html", null, true);
        echo "\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"";
        // line 62
        echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("images/hazo4.png"), "html", null, true);
        echo "\" alt=\"logo4\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
                <li id=\"log_out_entete\">
                    <div>
                         <a href=\"";
        // line 68
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
        echo "\">
                            <span aria-hidden=\"true\" class=\"fa fa-power-off fa-2x\"></span>
                        </a>
                    </div>
                </li>
            </ul>
        </div>

\t</div>
\t<!-- / entete content -->

\t<!-- contenue nouveau client -->
\t<div id=\"settings_content\">
\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-sm-12 col-xs-12\">
\t\t\t<section class=\"section_part\" id=\"section_part_top\">
\t\t\t\t<div class=\"sous_titre\">
\t\t\t\t\t<h3>ESPACE DE TRAVAIL</h3>
\t\t\t\t</div>
\t\t\t\t<div class=\"sous_titre_2\">
\t\t\t\t\t<h4>Gestion des équipes et espace de travail</h4>
\t\t\t\t</div>
\t\t\t</section>
\t\t</div>
\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">
\t\t\t<div class=\"inside_content\">
\t\t\t\t<div class=\"sous_titre_2\">
\t\t\t\t\t<h4>Mon profil</h4>
\t\t\t\t</div>
\t\t\t\t<form action=\"\" id=\"form-owner\" enctype=\"multipart/form-data\">
\t\t\t\t\t<div class=\"form-group pdp_profil\">
\t\t\t\t\t\t<div class=\"pdp_image\" style=\"/*background-image: url(images/directeur.jpg);*/\">
\t\t\t\t\t\t\t<input type=\"file\" name=\"fichier\" id=\"fichier\">
\t\t\t\t\t\t\t<span class=\"icone_upload fa fa-plus\"></span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"pdp_profil_n_p\">
\t\t\t\t\t\t\t<p class=\"p_nom\">Mon nom</p>
\t\t\t\t\t\t\t<p class=\"p_prenom\">Mon prénom</p>
\t\t\t\t\t\t\t<p class=\"p_prenom\">Mon identifiant</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Adresse mail\" class=\"form-control\" id=\"username\" placeholder=\"Adresse mail\" value=\"Unadresse@gmail.com\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"password\" name=\"\" data-placeholder=\"Mot de passe\" class=\"form-control\" id=\"passsword\" placeholder=\"Mot de passe\" value=\"un mot de passe\">
\t\t\t\t\t\t<a href=\"#\" class=\"show_password\">
\t\t\t\t\t\t\t<span class=\"fa fa-eye\"></span>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t<a href=\"#\" class=\"edit_pass\">
\t\t\t\t\t\t\t<span class=\"fa fa-edit\"></span>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"infos_pass form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"password\" name=\"\" data-placeholder=\"Nouveau Mot de passe\" class=\"form-control\" id=\"n_passsword\" placeholder=\"Nouveau Mot de passe\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"infos_pass form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"password\" name=\"\" data-placeholder=\"Confirmer le mot de passe\" class=\"form-control\" id=\"c_passsword\" placeholder=\"Confirmer le mot de passe\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<button type=\"submit\" class=\"form-control btn btn-warning\" id=\"btn_register\">Enregistrer</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\"
\t\t
\t\t";
        // line 138
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            // line 139
            echo "\t\t\t\t\tstyle =\" display:block; \"
\t\t";
        } else {
            // line 141
            echo "\t\t\tstyle = \"display : none;\"
\t\t\t\t";
        }
        // line 143
        echo "\t\t>
\t\t\t<div class=\"equipe_content inside_content\">
\t\t\t\t<div class=\"sous_titre_2\">
\t\t\t\t\t<h4>Liste des équipes</h4>
\t\t\t\t</div>
\t\t\t\t<ul id=\"ul_liste_equipe\">
\t\t\t\t\t
\t\t\t\t</ul>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\"

\t\t\t";
        // line 155
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            // line 156
            echo "\t\t\t\tstyle =\" display:block; \"
\t\t\t";
        } else {
            // line 158
            echo "\t\t\t\tstyle = \"display : none;\"
\t\t\t";
        }
        // line 160
        echo "\t\t
\t\t>
\t\t\t<div class=\"inside_content\">
\t\t\t\t<div class=\"sous_titre_2\">
\t\t\t\t\t<h4>Gestion des équipes</h4>
\t\t\t\t</div>
\t\t\t\t<form action=\"\" id=\"form_register_user\">
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label for=\"choix_role\">Type de l'administrateur :</label>
\t\t\t\t\t\t<select name=\"\" id=\"choix_role\" class=\"form-control\">
\t\t\t\t\t\t\t<option value=\"administrateur\">Administrateur</option>
\t\t\t\t\t\t\t";
        // line 172
        echo "\t\t\t\t\t\t\t<option value=\"editeur\">Editeur</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group nom_hotel\">
\t\t\t\t\t\t<label for=\"choix_hotel\">Nom de l'hotel</label>
\t\t\t\t\t\t<select name=\"\" id=\"choix_hotel\" class=\"form-control\">
\t\t\t\t\t\t\t<option value=\"tous\">Tous</option>
\t\t\t\t\t\t\t<option value=\"Royal Beach\">Royal Beach</option>
\t\t\t\t\t\t\t<option value=\"Calypso\">Calypso</option>
\t\t\t\t\t\t\t<option value=\"Baobab Tree\">Baobab Tree</option>
\t\t\t\t\t\t\t<option value=\"Vanila Hotel\">Vanila Hotel</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Nom\" class=\"form-control\" id=\"nom_pers\" placeholder=\"Nom\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Prénom\" class=\"form-control\" id=\"prenom_pers\" placeholder=\"Prénom\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Adresse mail\" class=\"form-control\" id=\"username_pers\" placeholder=\"Adresse mail\" unadresse@gmail.com>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\" form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Son mot de passe\" class=\"form-control\" id=\"n_passsword_pers\" placeholder=\"Son mot de passe\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"infos\">
\t\t\t\t\t\t<p>lorem ipsum hhh kkk</p>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<button type=\"submit\" class=\"form-control btn btn-warning\" id=\"admin_register\"><span>Enregistrer</span></button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- / contenue nouveau client -->

\t<!-- Modal suppr  -->
\t<div class=\"modal fade\" id=\"modal_form_confirme_pers\" tabindex=\"-1\" role=\"dialog\"  aria-hidden=\"true\">
\t\t<div class=\"modal-dialog opacity-animate4\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
\t\t\t\t\t<h3 class=\"modal-title\" style=\"text-align: center;\">Voulez-vous vraiment retirer cette personne ?</h3>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<div class=\"footer_modal\">
\t\t\t\t\t
\t\t\t\t\t\t<a href=\"#\" class=\"btn btn-warning retirer\" data-id = \"\" data-dismiss=\"modal\" id=\"suppr_user_model\">Supprimer</a>
\t\t\t\t\t\t<a href =\"#\" class=\"btn btn-warning annuler\" data-dismiss=\"modal\">Annuler</a>
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- fin Modal suppr  -->

\t<!-- Modal modif  -->
\t<div class=\"modal fade\" id=\"modal_form_modif_admin\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
\t\t<div class=\"modal-dialog opacity-animate4\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
\t\t\t\t\t<h3 class=\"modal-title\" style=\"text-align: center;\">Modification</h3>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\" id = \"modal_modif_user\">
\t\t\t\t\t
\t\t\t\t</div>

\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- fin Modal modif  -->
</section>


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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    // line 256
    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 257
        echo "<script>

\t\$(document).ready(function () { /* animation des input type text */

\t\t\t\$(\"input[placeholder]\").on({
\t\t\t\tfocus: function () {
\t\t\t\t\t\$(this).parent().children(\".span__label\").text(\$(this).attr('placeholder'));
\t\t\t\t\t\$(this).attr('placeholder', ' ');
\t\t\t\t\t\$(this).css(\"border-color\", \"#d29e00\");
\t\t\t\t},
\t\t\t\tblur: function () {
\t\t\t\t\tvar t = \$(this).attr('data-placeholder');
\t\t\t\t\t\$(this).attr('placeholder', t);
\t\t\t\t\t\$(this).parent().children(\".span__label\").text(\"\");
\t\t\t\t\t\$(this).css(\"border-color\", \"#e2e3e6\");
\t\t\t\t}
\t\t\t})

\t\t\t/* / annimation input */

\t\t\t/* animation password show hide */

\t\t\t\$(\".show_password\").click(function (e) {
\t\t\t\te.preventDefault();
\t\t\t\tif (\$(this).children('span').hasClass('fa-eye')) {
\t\t\t\t\t\$(this).children('span').removeClass('fa-eye');
\t\t\t\t\t\$(this).children('span').addClass('fa-eye-slash');
\t\t\t\t\t\$(this).prev().attr(\"type\", \"text\");
\t\t\t\t} 
\t\t\t\telse if (\$(this).children('span').hasClass('fa-eye-slash')) {
\t\t\t\t\t\$(this).children('span').removeClass('fa-eye-slash');
\t\t\t\t\t\$(this).children('span').addClass('fa-eye');
\t\t\t\t\t\$(this).prev().attr(\"type\", \"password\");
\t\t\t\t}
\t\t\t})

\t\t\t\$(\".edit_pass\").click(function (e) {
\t\t\t\t\te.preventDefault();
\t\t\t\t\t\$(\".infos_pass\").toggle();
\t\t\t})

\t\t\t/*  / animation password show hide */

\t\t\t/* ajax pour l'affichage de tous les users */

\t\t\t";
        // line 302
        if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
            echo " 
\t\t\t\tprint_all_users();
\t\t\t";
        }
        // line 305
        echo "\t\t\t
\t\t\tfunction print_all_users(){
\t\t\t\t\$.ajax({
\t\t\t\t\turl : \"/admin/print_all_users\",
\t\t\t\t\ttype : \"POST\",
\t\t\t\t\tsuccess : function(response){
\t\t\t\t\t\tif(response){
\t\t\t\t\t\t\t\$('#ul_liste_equipe').html(response);
\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror : function(error){
\t\t\t\t\t\talert('erreur dans le code server print_all_users');
\t\t\t\t\t}
\t\t\t\t})
\t\t\t}
\t\t\t


\t\t\t/* / fin affichage de tous les users */

\t\t\t// ajax adminRegister
\t\t\t// routeName = admin.register

\t\t\$('#admin_register').on('click', function(e){
\t\t\t\te.preventDefault();
\t\t\t\tvar role = \$('#choix_role').val();
\t\t\t\tvar hotel = \$('#choix_hotel').val();
\t\t\t\tvar nom = \$(\"#nom_pers\").val();
\t\t\t\tvar prenom = \$(\"#prenom_pers\").val();
\t\t\t\tvar email = \$(\"#username_pers\").val();
\t\t\t\tvar password = \$('#n_passsword_pers').val();
\t\t\t\t// par défaut son username est la prem partie de son nom
\t\t\t\tvar f = nom.split(\" \");
\t\t\t\tvar username = f[0];
\t\t\t\tvar data = {
\t\t\t\t\t\"role\":role,
\t\t\t\t\t\"hotel\":hotel,
\t\t\t\t\t\"nom\":nom,
\t\t\t\t\t\"prenom\":prenom,
\t\t\t\t\t\"password\":password,
\t\t\t\t\t\"email\": email,
\t\t\t\t\t\"username\":username
\t\t\t\t}
\t\t\t
\t\t\t\t\$.ajax({
\t\t\t\t\turl : \"";
        // line 350
        echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin.register");
        echo "\",
\t\t\t\t\ttype : \"POST\",
\t\t\t\t\tdata : data,
\t\t\t\t\tbeforeSend : function(){
\t\t\t\t\t\t\$('#admin_register').html('<span>Patienter...</span>');
\t\t\t\t\t},
\t\t\t\t\tsuccess : function(response){
\t\t\t\t\t\tif(response == \"ok\"){
\t\t\t\t\t\t\tprint_all_users();
\t\t\t\t\t\t}
\t\t\t\t\t\telse{
\t\t\t\t\t\t\t\$(\".infos p\").text(response);
\t\t\t\t\t\t\t\$(\".infos\").fadeIn();
\t\t\t\t\t\t\tsetTimeout(() => {
\t\t\t\t\t\t\t\t\$(\".infos\").fadeOut();
\t\t\t\t\t\t\t}, 2000);
\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror : function(er){

\t\t\t\t\t\talert('erreur ajax');
\t\t\t\t\t},
\t\t\t\t\tcomplete : function(){
\t\t\t\t\t\t\$('#admin_register').html('<span>Enregistrer</span>');
\t\t\t\t\t}
\t\t\t\t})

\t\t})
\t\t
\t\t// ajax suuprimer user 

\t\t\$(document).on('click', '.delete_user', function(ev){
\t\t\tev.preventDefault();
\t\t\tvar id = \$(this).attr('data-id');
\t\t\t// alert(id);
\t\t\t\$('#suppr_user_model').attr('data-id', id);
\t\t})
\t\t
\t\t\$('#suppr_user_model').click(function(ev){
\t\t\tev.preventDefault();
\t\t\tvar id = \$(this).attr('data-id');
\t\t
\t\t\t\$.ajax({
\t\t\t\turl : \"/security/delete_user/\"+id,
\t\t\t\ttype : \"POST\",
\t\t\t\tsuccess : function(response){
\t\t\t\t\tif(response == \"ok\"){
\t\t\t\t\t\tprint_all_users();
\t\t\t\t\t}
\t\t\t\t},
\t\t\t\terror : function(error){
\t\t\t\t\talert('erreur au serveur delete user');
\t\t\t\t}
\t\t\t})
\t\t})

\t\t/* debut modif  */

\t\t// pick up user for modif
\t\t\$(document).on('click', '.edit_user', function(ev){
\t\t\tev.preventDefault();
\t\t\tvar id = \$(this).attr('data-id');
\t\t\t //alert(id);
\t\t\t \$.ajax({
\t\t\t\t url : \"/admin/pick_up/\"+id,
\t\t\t\t type : \"POST\",
\t\t\t\t success : function(response){
\t\t\t\t\t\$('#modal_modif_user').html(response);
\t\t\t\t\t\$('#modal_form_modif_admin').modal('show');
\t\t\t\t },
\t\t\t\t error : function(error){
\t\t\t\t\t alert('erreur server pick up user for modif');
\t\t\t\t }
\t\t\t })
\t\t})
\t\t// modif

\t\t\$(document).on('click', '#btn_modif_admin', function(ev){
\t\t\tev.preventDefault();
\t\t\t//alert('alefa');
\t\t\tvar id = \$(this).attr('data-id');
\t\t\t\$.ajax({
\t\t\t\turl : \"/admin/edit_user\",
\t\t\t\tdata : {
\t\t\t\t\t'choix_role' : \$('#modal_choix_role').val(),
\t\t\t\t\t'choix_hotel' : \$('#modal_choix_hotel').val(),
\t\t\t\t\t'nom_pers' : \$('#modal_nom_pers').val(),
\t\t\t\t\t'prenom_pers' : \$('#modal_prenom_pers').val(),
\t\t\t\t\t'username_pers' : \$('#modal_username_pers').val(),
\t\t\t\t\t'user_id' : id,
\t\t\t\t}, 
\t\t\t\tsuccess : function(response){
\t\t\t\t\tif(response == \"ok\"){
\t\t\t\t\t\tprint_all_users();
\t\t\t\t\t\t\$('#modal_form_modif_admin').modal('hide');
\t\t\t\t\t}
\t\t\t\t},
\t\t\t\terror : function(error){
\t\t\t\t\talert('erreur server au niveau de modal modif user');
\t\t\t\t}

\t\t\t})
\t\t})



\t\t/* fin modif  */

\t\t/* pdp */

\t\t\$('.pdp_image input').on('change', function(){
\t\t\t// alefa le sary 
\t\t\tvar id_user = \"";
        // line 462
        echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 462, $this->source); })()), "user", [], "any", false, false, false, 462), "id", [], "any", false, false, false, 462), "html", null, true);
        echo "\";
\t\t\tvar val = \$(this).val();
\t\t\tvar form = \$('form')[0] ;
\t\t\tvar data = new FormData(form) ;
\t\t\tvar files = \$('#fichier')[0].files[0] ;
\t\t\tdata.append(\"file\",files) ;
\t\t\t//alert(val);
\t\t\t\$.ajax({
\t\t\t\turl : '/profile/add_pdp/'+ id_user,
\t\t\t\ttype : 'POST',
\t\t\t\tdata: data,
\t\t\t\tcontentType: false,
\t\t\t\tcache: false,
\t\t\t\tprocessData:false,
\t\t\t\tsuccess : function(response){
\t\t\t\t\talert(response);
\t\t\t\t},
\t\t\t\terror: function(){
\t\t\t\t\talert('erreur pendant le telechargement de pdp');
\t\t\t\t}
\t\t\t})
\t\t})

\t



\t})
</script>


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

        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

    }

    public function getTemplateName()
    {
        return "/page/setting.html.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  656 => 462,  541 => 350,  494 => 305,  488 => 302,  441 => 257,  431 => 256,  339 => 172,  326 => 160,  322 => 158,  318 => 156,  316 => 155,  302 => 143,  298 => 141,  294 => 139,  292 => 138,  219 => 68,  210 => 62,  205 => 60,  202 => 59,  198 => 57,  196 => 56,  188 => 51,  183 => 49,  180 => 48,  176 => 46,  174 => 45,  166 => 40,  161 => 38,  158 => 37,  154 => 35,  152 => 34,  144 => 29,  139 => 27,  136 => 26,  132 => 24,  130 => 23,  115 => 10,  105 => 9,  92 => 7,  82 => 6,  71 => 3,  61 => 2,  38 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% extends \"base.html.twig\" %}
{% block title %}
\tReglage
{% endblock %}

{% block stylesheets %}
\t<link rel=\"stylesheet\" href=\"{{ asset('css/dashboard.css')}}\">
{% endblock %}
{% block body %}
    
<section
\tid=\"contents\" class=\"container-fluid\">
\t<!-- entete content -->
\t<div id=\"top-content\">
        <div id=\"entete_fixed\">
            <ul>
                <li>
                    <a href=\"#\" id=\"btn_drop_side_menu\">
                        <i data-show=\"show-side-navigation1\" class=\"fa fa-bars show-side-btn\"></i>
                    </a>
                </li>
                <li
\t\t\t\t\t\t\t\t{% if hotel == \"royal_beach\" %}
\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"{{ path('royal_beach', {'current_page' : current_page }) }}\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"{{asset('images/hazo1.png')}}\" alt=\"logo1\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t{% if hotel == \"calypso\" %}
\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"{{ path('calypso', {'current_page' : current_page }) }}\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/hazo2.png') }}\" alt=\"logo2\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li 
\t\t\t\t\t\t\t\t{% if hotel == \"baobab_tree\" %}
\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"{{ path('baobab_tree', {'current_page' : current_page }) }}\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/hazo3.png') }}\" alt=\"logo3\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
\t\t\t\t\t\t\t<li
\t\t\t\t\t\t\t\t{% if hotel == \"vanila_hotel\" %}
\t\t\t\t\t\t\t\t\tclass=\"logo_active\"
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t>
\t\t\t\t\t\t\t\t<a href=\"{{ path('vanila_hotel', {'current_page' : current_page }) }}\">
\t\t\t\t\t\t\t\t\t<div>
\t\t\t\t\t\t\t\t\t\t<img src=\"{{ asset('images/hazo4.png') }}\" alt=\"logo4\">
\t\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t</a>
\t\t\t\t\t\t\t</li>
                <li id=\"log_out_entete\">
                    <div>
                         <a href=\"{{ path('app_logout') }}\">
                            <span aria-hidden=\"true\" class=\"fa fa-power-off fa-2x\"></span>
                        </a>
                    </div>
                </li>
            </ul>
        </div>

\t</div>
\t<!-- / entete content -->

\t<!-- contenue nouveau client -->
\t<div id=\"settings_content\">
\t\t<div class=\"col-lg-12 col-md-12 col-sm-12 col-sm-12 col-xs-12\">
\t\t\t<section class=\"section_part\" id=\"section_part_top\">
\t\t\t\t<div class=\"sous_titre\">
\t\t\t\t\t<h3>ESPACE DE TRAVAIL</h3>
\t\t\t\t</div>
\t\t\t\t<div class=\"sous_titre_2\">
\t\t\t\t\t<h4>Gestion des équipes et espace de travail</h4>
\t\t\t\t</div>
\t\t\t</section>
\t\t</div>
\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\">
\t\t\t<div class=\"inside_content\">
\t\t\t\t<div class=\"sous_titre_2\">
\t\t\t\t\t<h4>Mon profil</h4>
\t\t\t\t</div>
\t\t\t\t<form action=\"\" id=\"form-owner\" enctype=\"multipart/form-data\">
\t\t\t\t\t<div class=\"form-group pdp_profil\">
\t\t\t\t\t\t<div class=\"pdp_image\" style=\"/*background-image: url(images/directeur.jpg);*/\">
\t\t\t\t\t\t\t<input type=\"file\" name=\"fichier\" id=\"fichier\">
\t\t\t\t\t\t\t<span class=\"icone_upload fa fa-plus\"></span>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t<div class=\"pdp_profil_n_p\">
\t\t\t\t\t\t\t<p class=\"p_nom\">Mon nom</p>
\t\t\t\t\t\t\t<p class=\"p_prenom\">Mon prénom</p>
\t\t\t\t\t\t\t<p class=\"p_prenom\">Mon identifiant</p>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Adresse mail\" class=\"form-control\" id=\"username\" placeholder=\"Adresse mail\" value=\"Unadresse@gmail.com\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"password\" name=\"\" data-placeholder=\"Mot de passe\" class=\"form-control\" id=\"passsword\" placeholder=\"Mot de passe\" value=\"un mot de passe\">
\t\t\t\t\t\t<a href=\"#\" class=\"show_password\">
\t\t\t\t\t\t\t<span class=\"fa fa-eye\"></span>
\t\t\t\t\t\t</a>
\t\t\t\t\t\t<a href=\"#\" class=\"edit_pass\">
\t\t\t\t\t\t\t<span class=\"fa fa-edit\"></span>
\t\t\t\t\t\t</a>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"infos_pass form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"password\" name=\"\" data-placeholder=\"Nouveau Mot de passe\" class=\"form-control\" id=\"n_passsword\" placeholder=\"Nouveau Mot de passe\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"infos_pass form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"password\" name=\"\" data-placeholder=\"Confirmer le mot de passe\" class=\"form-control\" id=\"c_passsword\" placeholder=\"Confirmer le mot de passe\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<button type=\"submit\" class=\"form-control btn btn-warning\" id=\"btn_register\">Enregistrer</button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\"
\t\t
\t\t{% if is_granted('ROLE_ADMIN') %}
\t\t\t\t\tstyle =\" display:block; \"
\t\t{% else %}
\t\t\tstyle = \"display : none;\"
\t\t\t\t{% endif %}
\t\t>
\t\t\t<div class=\"equipe_content inside_content\">
\t\t\t\t<div class=\"sous_titre_2\">
\t\t\t\t\t<h4>Liste des équipes</h4>
\t\t\t\t</div>
\t\t\t\t<ul id=\"ul_liste_equipe\">
\t\t\t\t\t
\t\t\t\t</ul>
\t\t\t</div>
\t\t</div>
\t\t<div class=\"col-lg-4 col-md-6 col-sm-12 col-xs-12\"

\t\t\t{% if is_granted('ROLE_ADMIN') %}
\t\t\t\tstyle =\" display:block; \"
\t\t\t{% else %}
\t\t\t\tstyle = \"display : none;\"
\t\t\t{% endif %}
\t\t
\t\t>
\t\t\t<div class=\"inside_content\">
\t\t\t\t<div class=\"sous_titre_2\">
\t\t\t\t\t<h4>Gestion des équipes</h4>
\t\t\t\t</div>
\t\t\t\t<form action=\"\" id=\"form_register_user\">
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<label for=\"choix_role\">Type de l'administrateur :</label>
\t\t\t\t\t\t<select name=\"\" id=\"choix_role\" class=\"form-control\">
\t\t\t\t\t\t\t<option value=\"administrateur\">Administrateur</option>
\t\t\t\t\t\t\t{# <option selected = \"selected\" value=\"editeur\">Editeur</option> #}
\t\t\t\t\t\t\t<option value=\"editeur\">Editeur</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group nom_hotel\">
\t\t\t\t\t\t<label for=\"choix_hotel\">Nom de l'hotel</label>
\t\t\t\t\t\t<select name=\"\" id=\"choix_hotel\" class=\"form-control\">
\t\t\t\t\t\t\t<option value=\"tous\">Tous</option>
\t\t\t\t\t\t\t<option value=\"Royal Beach\">Royal Beach</option>
\t\t\t\t\t\t\t<option value=\"Calypso\">Calypso</option>
\t\t\t\t\t\t\t<option value=\"Baobab Tree\">Baobab Tree</option>
\t\t\t\t\t\t\t<option value=\"Vanila Hotel\">Vanila Hotel</option>
\t\t\t\t\t\t</select>
\t\t\t\t\t</div>

\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Nom\" class=\"form-control\" id=\"nom_pers\" placeholder=\"Nom\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Prénom\" class=\"form-control\" id=\"prenom_pers\" placeholder=\"Prénom\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Adresse mail\" class=\"form-control\" id=\"username_pers\" placeholder=\"Adresse mail\" unadresse@gmail.com>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\" form-group\">
\t\t\t\t\t\t<span class=\"span__label\"></span>
\t\t\t\t\t\t<input type=\"text\" name=\"\" data-placeholder=\"Son mot de passe\" class=\"form-control\" id=\"n_passsword_pers\" placeholder=\"Son mot de passe\">
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"infos\">
\t\t\t\t\t\t<p>lorem ipsum hhh kkk</p>
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"form-group\">
\t\t\t\t\t\t<button type=\"submit\" class=\"form-control btn btn-warning\" id=\"admin_register\"><span>Enregistrer</span></button>
\t\t\t\t\t</div>
\t\t\t\t</form>
\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- / contenue nouveau client -->

\t<!-- Modal suppr  -->
\t<div class=\"modal fade\" id=\"modal_form_confirme_pers\" tabindex=\"-1\" role=\"dialog\"  aria-hidden=\"true\">
\t\t<div class=\"modal-dialog opacity-animate4\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
\t\t\t\t\t<h3 class=\"modal-title\" style=\"text-align: center;\">Voulez-vous vraiment retirer cette personne ?</h3>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\">
\t\t\t\t\t<div class=\"footer_modal\">
\t\t\t\t\t
\t\t\t\t\t\t<a href=\"#\" class=\"btn btn-warning retirer\" data-id = \"\" data-dismiss=\"modal\" id=\"suppr_user_model\">Supprimer</a>
\t\t\t\t\t\t<a href =\"#\" class=\"btn btn-warning annuler\" data-dismiss=\"modal\">Annuler</a>
\t\t\t\t\t</div>
\t\t\t\t</div>

\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- fin Modal suppr  -->

\t<!-- Modal modif  -->
\t<div class=\"modal fade\" id=\"modal_form_modif_admin\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myModalLabel\" aria-hidden=\"true\">
\t\t<div class=\"modal-dialog opacity-animate4\">
\t\t\t<div class=\"modal-content\">
\t\t\t\t<div class=\"modal-header\">
\t\t\t\t\t<button type=\"button\" class=\"close\" data-dismiss=\"modal\">&times;</button>
\t\t\t\t\t<h3 class=\"modal-title\" style=\"text-align: center;\">Modification</h3>
\t\t\t\t</div>
\t\t\t\t<div class=\"modal-body\" id = \"modal_modif_user\">
\t\t\t\t\t
\t\t\t\t</div>

\t\t\t</div>
\t\t</div>
\t</div>
\t<!-- fin Modal modif  -->
</section>


{% endblock %}

{% block javascripts %}
<script>

\t\$(document).ready(function () { /* animation des input type text */

\t\t\t\$(\"input[placeholder]\").on({
\t\t\t\tfocus: function () {
\t\t\t\t\t\$(this).parent().children(\".span__label\").text(\$(this).attr('placeholder'));
\t\t\t\t\t\$(this).attr('placeholder', ' ');
\t\t\t\t\t\$(this).css(\"border-color\", \"#d29e00\");
\t\t\t\t},
\t\t\t\tblur: function () {
\t\t\t\t\tvar t = \$(this).attr('data-placeholder');
\t\t\t\t\t\$(this).attr('placeholder', t);
\t\t\t\t\t\$(this).parent().children(\".span__label\").text(\"\");
\t\t\t\t\t\$(this).css(\"border-color\", \"#e2e3e6\");
\t\t\t\t}
\t\t\t})

\t\t\t/* / annimation input */

\t\t\t/* animation password show hide */

\t\t\t\$(\".show_password\").click(function (e) {
\t\t\t\te.preventDefault();
\t\t\t\tif (\$(this).children('span').hasClass('fa-eye')) {
\t\t\t\t\t\$(this).children('span').removeClass('fa-eye');
\t\t\t\t\t\$(this).children('span').addClass('fa-eye-slash');
\t\t\t\t\t\$(this).prev().attr(\"type\", \"text\");
\t\t\t\t} 
\t\t\t\telse if (\$(this).children('span').hasClass('fa-eye-slash')) {
\t\t\t\t\t\$(this).children('span').removeClass('fa-eye-slash');
\t\t\t\t\t\$(this).children('span').addClass('fa-eye');
\t\t\t\t\t\$(this).prev().attr(\"type\", \"password\");
\t\t\t\t}
\t\t\t})

\t\t\t\$(\".edit_pass\").click(function (e) {
\t\t\t\t\te.preventDefault();
\t\t\t\t\t\$(\".infos_pass\").toggle();
\t\t\t})

\t\t\t/*  / animation password show hide */

\t\t\t/* ajax pour l'affichage de tous les users */

\t\t\t{% if is_granted('ROLE_ADMIN') %} 
\t\t\t\tprint_all_users();
\t\t\t{% endif %}
\t\t\t
\t\t\tfunction print_all_users(){
\t\t\t\t\$.ajax({
\t\t\t\t\turl : \"/admin/print_all_users\",
\t\t\t\t\ttype : \"POST\",
\t\t\t\t\tsuccess : function(response){
\t\t\t\t\t\tif(response){
\t\t\t\t\t\t\t\$('#ul_liste_equipe').html(response);
\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror : function(error){
\t\t\t\t\t\talert('erreur dans le code server print_all_users');
\t\t\t\t\t}
\t\t\t\t})
\t\t\t}
\t\t\t


\t\t\t/* / fin affichage de tous les users */

\t\t\t// ajax adminRegister
\t\t\t// routeName = admin.register

\t\t\$('#admin_register').on('click', function(e){
\t\t\t\te.preventDefault();
\t\t\t\tvar role = \$('#choix_role').val();
\t\t\t\tvar hotel = \$('#choix_hotel').val();
\t\t\t\tvar nom = \$(\"#nom_pers\").val();
\t\t\t\tvar prenom = \$(\"#prenom_pers\").val();
\t\t\t\tvar email = \$(\"#username_pers\").val();
\t\t\t\tvar password = \$('#n_passsword_pers').val();
\t\t\t\t// par défaut son username est la prem partie de son nom
\t\t\t\tvar f = nom.split(\" \");
\t\t\t\tvar username = f[0];
\t\t\t\tvar data = {
\t\t\t\t\t\"role\":role,
\t\t\t\t\t\"hotel\":hotel,
\t\t\t\t\t\"nom\":nom,
\t\t\t\t\t\"prenom\":prenom,
\t\t\t\t\t\"password\":password,
\t\t\t\t\t\"email\": email,
\t\t\t\t\t\"username\":username
\t\t\t\t}
\t\t\t
\t\t\t\t\$.ajax({
\t\t\t\t\turl : \"{{ path('admin.register') }}\",
\t\t\t\t\ttype : \"POST\",
\t\t\t\t\tdata : data,
\t\t\t\t\tbeforeSend : function(){
\t\t\t\t\t\t\$('#admin_register').html('<span>Patienter...</span>');
\t\t\t\t\t},
\t\t\t\t\tsuccess : function(response){
\t\t\t\t\t\tif(response == \"ok\"){
\t\t\t\t\t\t\tprint_all_users();
\t\t\t\t\t\t}
\t\t\t\t\t\telse{
\t\t\t\t\t\t\t\$(\".infos p\").text(response);
\t\t\t\t\t\t\t\$(\".infos\").fadeIn();
\t\t\t\t\t\t\tsetTimeout(() => {
\t\t\t\t\t\t\t\t\$(\".infos\").fadeOut();
\t\t\t\t\t\t\t}, 2000);
\t\t\t\t\t\t}
\t\t\t\t\t},
\t\t\t\t\terror : function(er){

\t\t\t\t\t\talert('erreur ajax');
\t\t\t\t\t},
\t\t\t\t\tcomplete : function(){
\t\t\t\t\t\t\$('#admin_register').html('<span>Enregistrer</span>');
\t\t\t\t\t}
\t\t\t\t})

\t\t})
\t\t
\t\t// ajax suuprimer user 

\t\t\$(document).on('click', '.delete_user', function(ev){
\t\t\tev.preventDefault();
\t\t\tvar id = \$(this).attr('data-id');
\t\t\t// alert(id);
\t\t\t\$('#suppr_user_model').attr('data-id', id);
\t\t})
\t\t
\t\t\$('#suppr_user_model').click(function(ev){
\t\t\tev.preventDefault();
\t\t\tvar id = \$(this).attr('data-id');
\t\t
\t\t\t\$.ajax({
\t\t\t\turl : \"/security/delete_user/\"+id,
\t\t\t\ttype : \"POST\",
\t\t\t\tsuccess : function(response){
\t\t\t\t\tif(response == \"ok\"){
\t\t\t\t\t\tprint_all_users();
\t\t\t\t\t}
\t\t\t\t},
\t\t\t\terror : function(error){
\t\t\t\t\talert('erreur au serveur delete user');
\t\t\t\t}
\t\t\t})
\t\t})

\t\t/* debut modif  */

\t\t// pick up user for modif
\t\t\$(document).on('click', '.edit_user', function(ev){
\t\t\tev.preventDefault();
\t\t\tvar id = \$(this).attr('data-id');
\t\t\t //alert(id);
\t\t\t \$.ajax({
\t\t\t\t url : \"/admin/pick_up/\"+id,
\t\t\t\t type : \"POST\",
\t\t\t\t success : function(response){
\t\t\t\t\t\$('#modal_modif_user').html(response);
\t\t\t\t\t\$('#modal_form_modif_admin').modal('show');
\t\t\t\t },
\t\t\t\t error : function(error){
\t\t\t\t\t alert('erreur server pick up user for modif');
\t\t\t\t }
\t\t\t })
\t\t})
\t\t// modif

\t\t\$(document).on('click', '#btn_modif_admin', function(ev){
\t\t\tev.preventDefault();
\t\t\t//alert('alefa');
\t\t\tvar id = \$(this).attr('data-id');
\t\t\t\$.ajax({
\t\t\t\turl : \"/admin/edit_user\",
\t\t\t\tdata : {
\t\t\t\t\t'choix_role' : \$('#modal_choix_role').val(),
\t\t\t\t\t'choix_hotel' : \$('#modal_choix_hotel').val(),
\t\t\t\t\t'nom_pers' : \$('#modal_nom_pers').val(),
\t\t\t\t\t'prenom_pers' : \$('#modal_prenom_pers').val(),
\t\t\t\t\t'username_pers' : \$('#modal_username_pers').val(),
\t\t\t\t\t'user_id' : id,
\t\t\t\t}, 
\t\t\t\tsuccess : function(response){
\t\t\t\t\tif(response == \"ok\"){
\t\t\t\t\t\tprint_all_users();
\t\t\t\t\t\t\$('#modal_form_modif_admin').modal('hide');
\t\t\t\t\t}
\t\t\t\t},
\t\t\t\terror : function(error){
\t\t\t\t\talert('erreur server au niveau de modal modif user');
\t\t\t\t}

\t\t\t})
\t\t})



\t\t/* fin modif  */

\t\t/* pdp */

\t\t\$('.pdp_image input').on('change', function(){
\t\t\t// alefa le sary 
\t\t\tvar id_user = \"{{ app.user.id }}\";
\t\t\tvar val = \$(this).val();
\t\t\tvar form = \$('form')[0] ;
\t\t\tvar data = new FormData(form) ;
\t\t\tvar files = \$('#fichier')[0].files[0] ;
\t\t\tdata.append(\"file\",files) ;
\t\t\t//alert(val);
\t\t\t\$.ajax({
\t\t\t\turl : '/profile/add_pdp/'+ id_user,
\t\t\t\ttype : 'POST',
\t\t\t\tdata: data,
\t\t\t\tcontentType: false,
\t\t\t\tcache: false,
\t\t\t\tprocessData:false,
\t\t\t\tsuccess : function(response){
\t\t\t\t\talert(response);
\t\t\t\t},
\t\t\t\terror: function(){
\t\t\t\t\talert('erreur pendant le telechargement de pdp');
\t\t\t\t}
\t\t\t})
\t\t})

\t



\t})
</script>


{% endblock %}", "/page/setting.html.twig", "F:\\Projet_symfony\\sounds\\templates\\page\\setting.html.twig");
    }
}
