<?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/indice.html.twig */
class __TwigTemplate_945d9095673c19e9a5349ea18405ee77 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 = [
            'indice_model_row' => [$this, 'block_indice_model_row'],
        ];
    }

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

    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_indice_model_row(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 2
        yield "
    <tr class=\"indice\" ";
        // line 3
        yield from         $this->unwrap()->yieldBlock("widget_attributes", $context, $blocks);
        yield ">
        <td>
            <div class=\"row mt-2 mb-2\">
                <div class=\"col-2\">";
        // line 6
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["indicator"] ?? null), "target", [], "any", false, false, false, 6), "html", null, true);
        yield "</div>
                <div class=\"col-3\">";
        // line 7
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["indicator"] ?? null), "html", null, true);
        yield "</div>
                <div class=\"col-6\">
                    <div class=\"col-4 float-left\">";
        // line 9
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value", [], "any", false, false, false, 9), 'widget');
        yield "</div>
                    <div class=\"col-4 float-left text-center\">";
        // line 10
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["indicator"] ?? null), "maxValue", [], "any", false, false, false, 10), "html", null, true);
        yield "</div>
                    <div class=\"col-4 float-right text-center\">";
        // line 11
        yield "</div>
                    <div class=\"col-12 float-left mt-2\">";
        // line 12
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "observation", [], "any", false, false, false, 12), 'widget');
        yield "</div>
                </div>
                
                <!--div class=\"col-1 text-center\">
                ";
        // line 19
        yield "                </div-->
                <div class=\"col-1 text-center\">
                ";
        // line 21
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 22
            yield "                    <button type=\"submit\" class=\"btn btn-block btn-primary\"><i class=\"fas fa-share-square\"></i></button><br/>
                    ";
            // line 23
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "treated", [], "any", false, false, false, 23), 'widget', ["attr" => ["onchange" => "treatedChange(this.closest(\"tr\").id)"]]);
            yield "
                ";
        }
        // line 25
        yield "                </div>
            </div>

        </td>
    </tr>
";
        yield from [];
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  104 => 25,  99 => 23,  96 => 22,  94 => 21,  90 => 19,  83 => 12,  80 => 11,  76 => 10,  72 => 9,  67 => 7,  63 => 6,  57 => 3,  54 => 2,  43 => 1,);
    }

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