<?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/_select_sub.html.twig */
class __TwigTemplate_6751613b303ee087b49dd82af6d4cc98af1e29f6330ff94fdf0c4d7d8220801b extends Template
{
    private $source;
    private $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
        ];
    }

    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/_select_sub.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/_select_sub.html.twig"));

        // line 1
        if ((isset($context["subs"]) || array_key_exists("subs", $context) ? $context["subs"] : (function () { throw new RuntimeError('Variable "subs" does not exist.', 1, $this->source); })())) {
            // line 2
            yield "    <form class=\"form-ajax px-3 py-3\" action=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("utilisateur_add_sub", ["user" => (isset($context["userId"]) || array_key_exists("userId", $context) ? $context["userId"] : (function () { throw new RuntimeError('Variable "userId" does not exist.', 2, $this->source); })())]), "html", null, true);
            yield "\" data-callback=\"loadSub\">
        <div class=\"input-group form-group w-50\" style=\"margin:0 auto\">
            <label class=\"me-2 col-form-label control-label\" for=\"user_type_sav\">Utilisateur</label>
            <select name=\"subordonnee\" class=\"form-control\">
                ";
            // line 6
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((isset($context["subs"]) || array_key_exists("subs", $context) ? $context["subs"] : (function () { throw new RuntimeError('Variable "subs" does not exist.', 6, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["sub"]) {
                // line 7
                yield "                    <option value=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["sub"], "id", [], "any", false, false, false, 7), "html", null, true);
                yield "\">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["sub"], "nom", [], "any", false, false, false, 7), "html", null, true);
                yield " ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["sub"], "prenom", [], "any", false, false, false, 7), "html", null, true);
                yield "</option>
                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['sub'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 9
            yield "            </select>
        </div>
        <div class=\"form-group d-flex justify-content-center mt-4\">
            <div class=\"form-actions-row\">
                <button  id=\"btn-submit-popupadd\" class=\"btn btn-success me-3 \" type=\"submit\">Valider</button>
                <button  class=\"btn btn-danger btn-close-popupadd\"  type=\"button\" >Annuler</button>
            </div>
        </div>
    </form>
";
        } else {
            // line 19
            yield "    aucun élément trouvé
";
        }
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  83 => 19,  71 => 9,  58 => 7,  54 => 6,  46 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("{% if subs %}
    <form class=\"form-ajax px-3 py-3\" action=\"{{ path('utilisateur_add_sub', {user: userId}) }}\" data-callback=\"loadSub\">
        <div class=\"input-group form-group w-50\" style=\"margin:0 auto\">
            <label class=\"me-2 col-form-label control-label\" for=\"user_type_sav\">Utilisateur</label>
            <select name=\"subordonnee\" class=\"form-control\">
                {% for sub in subs %}
                    <option value=\"{{ sub.id }}\">{{ sub.nom }} {{ sub.prenom }}</option>
                {% endfor %}
            </select>
        </div>
        <div class=\"form-group d-flex justify-content-center mt-4\">
            <div class=\"form-actions-row\">
                <button  id=\"btn-submit-popupadd\" class=\"btn btn-success me-3 \" type=\"submit\">Valider</button>
                <button  class=\"btn btn-danger btn-close-popupadd\"  type=\"button\" >Annuler</button>
            </div>
        </div>
    </form>
{% else %}
    aucun élément trouvé
{% endif %}", "configuration/_select_sub.html.twig", "/builds/dev/refonte_sav/templates/configuration/_select_sub.html.twig");
    }
}
