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

/* clients/informations_technique/_equipement_alimentation.html.twig */
class __TwigTemplate_83971b33efc4ab3ccb8ca036a9e508bd4291bf92cb6bd96923f96627739d39e7 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", "clients/informations_technique/_equipement_alimentation.html.twig"));

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

        // line 1
        yield "
";
        // line 2
        if ((array_key_exists("affichage", $context) && (0 !== CoreExtension::compare((isset($context["affichage"]) || array_key_exists("affichage", $context) ? $context["affichage"] : (function () { throw new RuntimeError('Variable "affichage" does not exist.', 2, $this->source); })()), "client")))) {
            // line 3
            yield "    <input style=\"width:100px\" class=\"form-control\" disabled value=\"";
            ((((isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 3, $this->source); })()) && CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 3, $this->source); })()), "equipementAlimentation", [], "any", false, false, false, 3))) ? (yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 3, $this->source); })()), "equipementAlimentation", [], "any", false, false, false, 3), "libelle", [], "any", false, false, false, 3), "html", null, true)) : (yield ""));
            yield "\">
";
        } else {
            // line 5
            yield "    <select name=\"equipement_alimentation-";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 5, $this->source); })()), "id", [], "any", false, false, false, 5), "html", null, true);
            yield "\" data-disable-on-view=\"\" style=\"width:100px\" ";
            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.', 5, $this->source); })()), "html", null, true);
            yield " class=\"form-control\"  form=\"form_client_update\">
        <option value=\"\" ";
            // line 6
            yield ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 6, $this->source); })()), "equipementAlimentation", [], "any", false, false, false, 6)) ? ("") : ("selected"));
            yield "></option>
        ";
            // line 7
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable((isset($context["equipementAlimentations"]) || array_key_exists("equipementAlimentations", $context) ? $context["equipementAlimentations"] : (function () { throw new RuntimeError('Variable "equipementAlimentations" does not exist.', 7, $this->source); })()));
            foreach ($context['_seq'] as $context["_key"] => $context["equipementAlimentation"]) {
                // line 8
                yield "            ";
                $context["selected"] = (((CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 8, $this->source); })()), "equipementAlimentation", [], "any", false, false, false, 8) && (0 === CoreExtension::compare(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["equipement"]) || array_key_exists("equipement", $context) ? $context["equipement"] : (function () { throw new RuntimeError('Variable "equipement" does not exist.', 8, $this->source); })()), "equipementAlimentation", [], "any", false, false, false, 8), "id", [], "any", false, false, false, 8), CoreExtension::getAttribute($this->env, $this->source, $context["equipementAlimentation"], "id", [], "any", false, false, false, 8))))) ? ("selected") : (""));
                // line 9
                yield "            <option value=\"";
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["equipementAlimentation"], "id", [], "any", false, false, false, 9), "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(CoreExtension::getAttribute($this->env, $this->source, $context["equipementAlimentation"], "libelle", [], "any", false, false, false, 9), "html", null, true);
                yield "</option>
        ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['equipementAlimentation'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 11
            yield "    </select>
";
        }
        
        $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName()
    {
        return "clients/informations_technique/_equipement_alimentation.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  86 => 11,  73 => 9,  70 => 8,  66 => 7,  62 => 6,  55 => 5,  49 => 3,  47 => 2,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("
{% if affichage is defined and affichage != 'client' %}
    <input style=\"width:100px\" class=\"form-control\" disabled value=\"{{  equipement and equipement.equipementAlimentation ? equipement.equipementAlimentation.libelle }}\">
{% else %}
    <select name=\"equipement_alimentation-{{ equipement.id }}\" data-disable-on-view=\"\" style=\"width:100px\" {{ disabled }} class=\"form-control\"  form=\"form_client_update\">
        <option value=\"\" {{ equipement.equipementAlimentation ? '' : 'selected' }}></option>
        {% for equipementAlimentation in equipementAlimentations %}
            {% set selected =  (equipement.equipementAlimentation and equipement.equipementAlimentation.id == equipementAlimentation.id) ? 'selected' : '' %}
            <option value=\"{{ equipementAlimentation.id }}\" {{ selected }}>{{ equipementAlimentation.libelle }}</option>
        {% endfor %}
    </select>
{% endif %}", "clients/informations_technique/_equipement_alimentation.html.twig", "/builds/dev/refonte_sav/templates/clients/informations_technique/_equipement_alimentation.html.twig");
    }
}
