<?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/_fluide.html.twig */
class __TwigTemplate_999b94f514582bfcda161e10708b1bcaa4a5c8ab7d95ccd8c9277577a8d622d7 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/_fluide.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/_fluide.html.twig"));

        // line 1
        yield "<label style=\"width:70px;line-height:normal\" class=\"me-1\">Fluide<br>frigorigène</label>

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

        
        $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);

        return; yield '';
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo()
    {
        return array (  87 => 12,  74 => 10,  71 => 9,  67 => 8,  63 => 7,  56 => 6,  50 => 4,  48 => 3,  44 => 1,);
    }

    public function getSourceContext()
    {
        return new Source("<label style=\"width:70px;line-height:normal\" class=\"me-1\">Fluide<br>frigorigène</label>

{% if affichage is defined and affichage != 'client' %}
    <input style=\"width:61px\" class=\"form-control\" disabled value=\"{{  equipement and equipement.equipementFluide ? equipement.equipementFluide.libelle }}\">
{% else %}
    <select name=\"equipement_fluide-{{ equipement.id }}\" data-disable-on-view=\"\" style=\"width:61px\" {{ disabled }} class=\"form-control\"  form=\"form_client_update\">
        <option value=\"\" {{ equipement.equipementFluide ? '' : 'selected' }}></option>
        {% for equipement_fluide in equipementFluides %}
            {% set selected =  (equipement.equipementFluide and equipement.equipementFluide.id == equipement_fluide.id) ? 'selected' : '' %}
            <option value=\"{{ equipement_fluide.id }}\" {{ selected }}>{{ equipement_fluide.libelle }}</option>
        {% endfor %}
    </select>
{% endif %}", "clients/informations_technique/_fluide.html.twig", "/builds/dev/refonte_sav/templates/clients/informations_technique/_fluide.html.twig");
    }
}
