<?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;
use Twig\TemplateWrapper;

/* form/notation.html.twig */
class __TwigTemplate_a2257852cc8668a09c3ded2e93d3cfaf extends Template
{
    private Source $source;
    /**
     * @var array<string, Template>
     */
    private array $macros = [];

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

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

        $this->parent = false;

        $this->blocks = [
            'notation_model_row' => [$this, 'block_notation_model_row'],
        ];
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        yield from $this->unwrap()->yieldBlock('notation_model_row', $context, $blocks);
        yield from [];
    }

    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_notation_model_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 2
        yield "
    <tr class=\"notation\" ";
        // line 3
        yield from         $this->unwrap()->yieldBlock("widget_attributes", $context, $blocks);
        yield ">
        <td>
            <div class=\"row mt-2\">
                ";
        // line 6
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "targetRate", [], "any", false, false, false, 6), 'widget');
        yield "
                ";
        // line 7
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "locationRate", [], "any", false, false, false, 7), 'widget');
        yield "
                <div class=\"col-2\">";
        // line 8
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "nature", [], "any", false, false, false, 8), 'widget', ["attr" => ["onchange" => "calculTargetRate(this.closest(\"tr\").id)"]]);
        yield "</div>
                <div class=\"col-6 p-0\">
                    <div class=\"col-6 float-left\">";
        // line 10
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "goal", [], "any", false, false, false, 10), 'widget', ["attr" => ["onchange" => "goalChange(this.closest(\"tr\").id, this.id)"]]);
        yield "</div>
                    <div class=\"col-6 float-right\">";
        // line 11
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "target", [], "any", false, false, false, 11), 'widget', ["attr" => ["onchange" => "goalChange(this.closest(\"tr\").id, this.id)"]]);
        yield "</div>
                </div>
                <div class=\"col-3\">";
        // line 13
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "locationType", [], "any", false, false, false, 13), 'widget', ["attr" => ["onchange" => "locationTypeChange(this.closest(\"tr\").id)"]]);
        yield "</div>
                <div class=\"col-1\">
                    ";
        // line 15
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "sensitivity", [], "any", false, false, false, 15), 'widget');
        yield "
                    ";
        // line 16
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "sensHtml", [], "any", false, false, false, 16), 'widget');
        yield "
                </div>
            </div>

            <div class=\"row mt-2 mb-2\">
                <div class=\"col-2 activity-col\" data-id=\"";
        // line 21
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["activity"] ?? null), "id", [], "any", false, false, false, 21), "html", null, true);
        yield "\">";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["activity"] ?? null), "html", null, true);
        yield "</div>
                <div class=\"col-6\">";
        // line 22
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "indicators", [], "any", false, false, false, 22), 'widget', ["attr" => ["onchange" => "calculTargetRate(this.closest(\"tr\").id, this.id)"]]);
        yield "</div>
                ";
        // line 23
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["activity"] ?? null), "action", [], "any", false, false, false, 23), "programm", [], "any", false, false, false, 23), "ministry", [], "any", false, false, false, 23)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 24
            yield "                    <div class=\"col-3\">
                        <div id=\"";
            // line 25
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "communes", [], "any", false, false, false, 25), "vars", [], "any", false, false, false, 25), "id", [], "any", false, false, false, 25), "html", null, true);
            yield "_div\">";
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "communes", [], "any", false, false, false, 25), 'widget', ["attr" => ["onchange" => "calculLocationRate(this.closest(\"tr\").id)"]]);
            yield "</div>
                        <div id=\"";
            // line 26
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "postes", [], "any", false, false, false, 26), "vars", [], "any", false, false, false, 26), "id", [], "any", false, false, false, 26), "html", null, true);
            yield "_div\">";
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "postes", [], "any", false, false, false, 26), 'widget', ["attr" => ["onchange" => "calculLocationRate(this.closest(\"tr\").id)"]]);
            yield "</div>
                    </div>
                ";
        } else {
            // line 29
            yield "                    <div class=\"col-3\">
                        <div id=\"";
            // line 30
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "arrondissements", [], "any", false, false, false, 30), "vars", [], "any", false, false, false, 30), "id", [], "any", false, false, false, 30), "html", null, true);
            yield "_div\">";
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "arrondissements", [], "any", false, false, false, 30), 'widget', ["attr" => ["onchange" => "calculLocationRate(this.closest(\"tr\").id)"]]);
            yield "</div>
                    </div>
                ";
        }
        // line 33
        yield "                <div class=\"col-1 text-center\">
                ";
        // line 34
        if (($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER") || $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD"))) {
            // line 35
            yield "                    ";
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "treated", [], "any", false, false, false, 35), 'widget', ["attr" => ["onchange" => "treatedChange(this.closest(\"tr\").id)"]]);
            yield "
                    <br/>
                    <button type=\"submit\" class=\"btn btn-block btn-primary\"><i class=\"fas fa-share-square\"></i></button>
                ";
        }
        // line 39
        yield "                </div>
            </div>
        </td>
    </tr>
";
        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "form/notation.html.twig";
    }

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  155 => 39,  147 => 35,  145 => 34,  142 => 33,  134 => 30,  131 => 29,  123 => 26,  117 => 25,  114 => 24,  112 => 23,  108 => 22,  102 => 21,  94 => 16,  90 => 15,  85 => 13,  80 => 11,  76 => 10,  71 => 8,  67 => 7,  63 => 6,  57 => 3,  54 => 2,  43 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("", "form/notation.html.twig", "/var/www/html/templates/form/notation.html.twig");
    }
}
