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

/* communes/suivi_edit.html.twig */
class __TwigTemplate_f021460da00ca6daab791107ccb39bc1 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->blocks = [
            'page_title' => [$this, 'block_page_title'],
            'page_content' => [$this, 'block_page_content'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "@AdminLTE/layout/communeodd-layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/layout/communeodd-layout.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 3
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("suivi.indicateur.edit", [], "messages");
        yield from [];
    }

    // line 6
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 7
        yield "    <div class=\"card card-primary\">
        ";
        // line 8
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        yield "
            <div class=\"card-body\">    
                <div class=\"form-group row\">
                    <label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_target\">";
        // line 11
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.goal", [], "messages");
        yield "</label>
                    <div class=\"col-sm-offset-2 col-sm-10\">";
        // line 12
        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["model"] ?? null), "indicator", [], "any", false, false, false, 12), "target", [], "any", false, false, false, 12), "goal", [], "any", false, false, false, 12), "html", null, true);
        yield "</div>
                </div>
                <div class=\"form-group row\">
                    <label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_target\">";
        // line 15
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.target", [], "messages");
        yield "</label>
                    <div class=\"col-sm-offset-2 col-sm-10\">";
        // line 16
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["model"] ?? null), "indicator", [], "any", false, false, false, 16), "target", [], "any", false, false, false, 16), "html", null, true);
        yield "</div>
                </div>
                <div class=\"form-group row\">
                    <label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_indicator\">";
        // line 19
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.indicator", [], "messages");
        yield "</label>
                    <div class=\"col-sm-offset-2 col-sm-10\">";
        // line 20
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["model"] ?? null), "indicator", [], "any", false, false, false, 20), "html", null, true);
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["model"] ?? null), "indicator", [], "any", false, false, false, 20), "unity", [], "any", false, false, false, 20)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            yield " (";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["model"] ?? null), "indicator", [], "any", false, false, false, 20), "unity", [], "any", false, false, false, 20), "html", null, true);
            yield ")";
        }
        yield "</div>
                </div>
                 
                <div class=\"form-group row\">
                    <label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_value\">";
        // line 24
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Valeurs", [], "messages");
        yield "</label>
                    ";
        // line 25
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
        foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
            // line 26
            yield "                        <label class=\"col-form-label col-sm-2 text-center\">";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((($context["year"] ?? null) - $context["i"]), "html", null, true);
            yield "</label>
                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 28
        yield "                    
                    <label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_value\"></label>
                    <div class=\"col-2 float-left\">";
        // line 30
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value4", [], "any", false, false, false, 30), 'widget');
        yield "</div>
                    <div class=\"col-2 float-left\">";
        // line 31
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value3", [], "any", false, false, false, 31), 'widget');
        yield "</div>
                    <div class=\"col-2 float-left\">";
        // line 32
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value2", [], "any", false, false, false, 32), 'widget');
        yield "</div>
                    <div class=\"col-2 float-left\">";
        // line 33
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value1", [], "any", false, false, false, 33), 'widget');
        yield "</div>
                    <div class=\"col-2 float-left\">";
        // line 34
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "recValue", [], "any", false, false, false, 34), 'widget');
        yield "</div>
                </div>

                ";
        // line 37
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "observation", [], "any", false, false, false, 37), 'row');
        yield "
                ";
        // line 38
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "source", [], "any", false, false, false, 38), 'row');
        yield "

                <div class=\"form-group row\">
                    <div class=\"col-sm-2\"><a href=\"";
        // line 41
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_commune_suivi_indicateur");
        yield "\" class=\"btn btn-block btn-default\">";
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.cancel", [], "messages");
        yield "</a></div>
                    <div class=\"col-sm-offset-2 col-sm-10\">
                        <button type=\"submit\" class=\"btn btn-block btn-primary\">";
        // line 43
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
        yield "</button>
                    </div>
                </div>

            </div>
        ";
        // line 48
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "
    </div>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  183 => 48,  175 => 43,  168 => 41,  162 => 38,  158 => 37,  152 => 34,  148 => 33,  144 => 32,  140 => 31,  136 => 30,  132 => 28,  123 => 26,  119 => 25,  115 => 24,  103 => 20,  99 => 19,  93 => 16,  89 => 15,  83 => 12,  79 => 11,  73 => 8,  70 => 7,  63 => 6,  52 => 3,  41 => 1,);
    }

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