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

/* agent/_affectation_temps_travail.html.twig */
class __TwigTemplate_46546a9795471311c7f9413d53b902dc7009a489ed46e8204099d834bcce9411 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", "agent/_affectation_temps_travail.html.twig"));

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

        // line 1
        yield "<div class=\" d-flex align-items-center me-3\" style=\"margin-bottom: 5px;\">
    <label class=\"me-3 ";
        // line 2
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("classLabel", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["classLabel"]) || array_key_exists("classLabel", $context) ? $context["classLabel"] : (function () { throw new RuntimeError('Variable "classLabel" does not exist.', 2, $this->source); })()), "")) : ("")), "html", null, true);
        yield "\">Temps de travail</label>
    ";
        // line 3
        if ((0 === CoreExtension::compare((isset($context["type"]) || array_key_exists("type", $context) ? $context["type"] : (function () { throw new RuntimeError('Variable "type" does not exist.', 3, $this->source); })()), "show"))) {
            // line 4
            yield "        <input type=\"text\"  ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["disabled"]) || array_key_exists("disabled", $context) ? $context["disabled"] : (function () { throw new RuntimeError('Variable "disabled" does not exist.', 4, $this->source); })()), "html", null, true);
            yield " class=\"form-control\" style=\"width:80px;\" value=\"";
            (((isset($context["affectation"]) || array_key_exists("affectation", $context) ? $context["affectation"] : (function () { throw new RuntimeError('Variable "affectation" does not exist.', 4, $this->source); })())) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["affectation"]) || array_key_exists("affectation", $context) ? $context["affectation"] : (function () { throw new RuntimeError('Variable "affectation" does not exist.', 4, $this->source); })()), "tempsTravail", [], "any", false, false, false, 4), "html", null, true)) : (yield ""));
            yield "%\">
    ";
        } else {
            // line 6
            yield "        <select name=\"temps_travail\" id=\"affectation_temps_travail\" style=\"width:80px;\" class=\"form-control bg-grey\" id=\"affectation_temps\">
            ";
            // line 7
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable([100, 90, 80, 70, 60, 50, 40, 30, 20, 10, 0]);
            foreach ($context['_seq'] as $context["_key"] => $context["temp"]) {
                // line 8
                yield "                ";
                $context["selected"] = ((((isset($context["hasNext"]) || array_key_exists("hasNext", $context) ? $context["hasNext"] : (function () { throw new RuntimeError('Variable "hasNext" does not exist.', 8, $this->source); })()) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["agent"]) || array_key_exists("agent", $context) ? $context["agent"] : (function () { throw new RuntimeError('Variable "agent" does not exist.', 8, $this->source); })()), "nextAffectation", [], "any", false, false, false, 8), "tempsTravail", [], "any", false, false, false, 8), $context["temp"])))) ? ("selected") : (""));
                // line 9
                yield "                <option value=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["temp"], "html", null, true);
                yield "\" ";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["selected"]) || array_key_exists("selected", $context) ? $context["selected"] : (function () { throw new RuntimeError('Variable "selected" does not exist.', 9, $this->source); })()), "html", null, true);
                yield ">";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["temp"], "html", null, true);
                yield "%</option>
            ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['temp'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 11
            yield "        </select>
    ";
        }
        // line 13
        yield "</div>";
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  88 => 13,  84 => 11,  71 => 9,  68 => 8,  64 => 7,  61 => 6,  53 => 4,  51 => 3,  47 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<div class=\" d-flex align-items-center me-3\" style=\"margin-bottom: 5px;\">
    <label class=\"me-3 {{ classLabel|default('') }}\">Temps de travail</label>
    {% if type == 'show' %}
        <input type=\"text\"  {{ disabled }} class=\"form-control\" style=\"width:80px;\" value=\"{{ affectation ? affectation.tempsTravail : '' }}%\">
    {% else %}
        <select name=\"temps_travail\" id=\"affectation_temps_travail\" style=\"width:80px;\" class=\"form-control bg-grey\" id=\"affectation_temps\">
            {% for temp in [100, 90,80,70,60,50,40,30,20,10,0] %}
                {% set selected =  (hasNext and agent.nextAffectation.tempsTravail == temp) ? 'selected' : '' %}
                <option value=\"{{ temp }}\" {{ selected }}>{{ temp }}%</option>
            {% endfor %}
        </select>
    {% endif %}
</div>", "agent/_affectation_temps_travail.html.twig", "/builds/dev/refonte_sav/templates/agent/_affectation_temps_travail.html.twig");
    }
}
