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

/* suivi_ind/suivi_form.html.twig */
class __TwigTemplate_68a41526b959eb40f2019ecd02a50355 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'],
            'stylesheets' => [$this, 'block_stylesheets'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/layout/suiodd-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;
        // line 4
        yield "\t";
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("suivi.indicateur.edit", [], "messages");
        yield from [];
    }

    // line 8
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 9
        yield "\t";
        yield from $this->load("suivi_ind/suivi_form.html.twig", 9, "94487700")->unwrap()->yield($context);
        // line 45
        yield "

\t";
        // line 47
        yield from $this->load("suivi_ind/suivi_form.html.twig", 47, "866018541")->unwrap()->yield($context);
        // line 64
        yield "    ";
        if ((($tmp = ($context["show"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 65
            yield "    ";
            yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
            yield "
\t<div class=\"alert alert-primary alert-dismissible fade show\" role=\"alert\">
        ";
            // line 67
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["msgvaleur"] ?? null), "html", null, true);
            yield "
    </div>
\t<div class=\"card card-primary\">
\t\t<div class=\"card-body\">
\t\t\t<div class=\"form-group row\">
\t\t\t\t<label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_value\">";
            // line 72
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Valeurs", [], "messages");
            yield "</label>
\t\t\t\t";
            // line 73
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(range(4, 0));
            foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
                // line 74
                yield "\t\t\t\t\t<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>
\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['i'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 76
            yield "
\t\t\t\t<label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_value\"></label>
\t\t\t\t<div class=\"col-2 float-left\">";
            // line 78
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value4", [], "any", false, false, false, 78), 'widget');
            yield "</div>
\t\t\t\t<div class=\"col-2 float-left\">";
            // line 79
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value3", [], "any", false, false, false, 79), 'widget');
            yield "</div>
\t\t\t\t<div class=\"col-2 float-left\">";
            // line 80
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value2", [], "any", false, false, false, 80), 'widget');
            yield "</div>
\t\t\t\t<div class=\"col-2 float-left\">";
            // line 81
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "value1", [], "any", false, false, false, 81), 'widget');
            yield "</div>
\t\t\t\t<div class=\"col-2 float-left\">";
            // line 82
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "recValue", [], "any", false, false, false, 82), 'widget');
            yield "</div>
\t\t\t</div>

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

\t\t\t<div class=\"form-group row\">
\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t<a href=\"";
            // line 89
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_suiviIND", ["id" => CoreExtension::getAttribute($this->env, $this->source, 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, 89), "target", [], "any", false, false, false, 89), "goal", [], "any", false, false, false, 89), "id", [], "any", false, false, false, 89)]), "html", null, true);
            yield "\" class=\"btn btn-block btn-default\">";
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.cancel", [], "messages");
            yield "</a>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-sm-offset-2 col-sm-10\">
\t\t\t\t\t<button type=\"submit\" class=\"btn btn-block btn-primary\" ";
            // line 92
            yield (((($tmp = ($context["etat0"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("") : ("disabled"));
            yield ">";
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
            yield "</button>
\t\t\t\t</div>
\t\t\t</div>
\t\t</div>
\t</div>
\t";
            // line 97
            yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
            yield "
    ";
        }
        yield from [];
    }

    // line 101
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_stylesheets(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 102
        yield "\t<link rel=\"stylesheet\" href=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/summernote/summernote-bs4.min.css"), "html", null, true);
        yield "\">
";
        yield from [];
    }

    // line 105
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 106
        yield "\t<script src=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/summernote/summernote-bs4.js"), "html", null, true);
        yield "\"></script>
\t<script>
\t\t\$(function () { // Add text editor
\t\t\t\$('#suivi_ind_model_new_observation').summernote({height: 200})
\t\t\t})
\t</script>

";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  198 => 106,  191 => 105,  183 => 102,  176 => 101,  168 => 97,  158 => 92,  150 => 89,  143 => 85,  137 => 82,  133 => 81,  129 => 80,  125 => 79,  121 => 78,  117 => 76,  108 => 74,  104 => 73,  100 => 72,  92 => 67,  86 => 65,  83 => 64,  81 => 47,  77 => 45,  74 => 9,  67 => 8,  61 => 4,  54 => 3,  43 => 1,);
    }

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


/* suivi_ind/suivi_form.html.twig */
class __TwigTemplate_68a41526b959eb40f2019ecd02a50355___94487700 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 = [
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 9
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

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

    // line 10
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 11
        yield "\t\t\t<div class=\"form-group row\">
\t\t\t\t<label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_indicator\">";
        // line 12
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.indicator", [], "messages");
        yield "</label>
\t\t\t\t<div class=\"col-sm-offset-2 col-sm-10\">";
        // line 13
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["model"] ?? null), "indicator", [], "any", false, false, false, 13), "html", null, true);
        yield "
\t\t\t\t\t";
        // line 14
        if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["model"] ?? null), "indicator", [], "any", false, false, false, 14), "unity", [], "any", false, false, false, 14)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 15
            yield "\t\t\t\t\t\t(";
            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, 15), "unity", [], "any", false, false, false, 15), "html", null, true);
            yield ")
\t\t\t\t\t";
        }
        // line 17
        yield "\t\t\t\t</div>

\t\t\t\t<label class=\"col-sm-2\" for=\"suivi_pta_model_value\"></label>
\t\t\t\t<label class=\"col-sm-2 text-center\">";
        // line 20
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("indicator.minValue", [], "messages");
        yield "</label>
\t\t\t\t<label class=\"col-sm-2 text-center\">";
        // line 21
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("indicator.maxValue", [], "messages");
        yield "</label>
\t\t\t\t<label class=\"col-sm-2 text-center\">";
        // line 22
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("indicator.refValue", [], "messages");
        yield "</label>
\t\t\t\t<label class=\"col-sm-2 text-center\">";
        // line 23
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("indicator.refYear", [], "messages");
        yield "</label>
\t\t\t\t<label class=\"col-sm-2 text-center\">";
        // line 24
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.unity", [], "messages");
        yield "</label>

\t\t\t\t<label class=\"col-form-label col-sm-2\" for=\"suivi_pta_model_value\"></label>
                <div class=\"col-2 float-left\">
                    <input type=\"text\" disabled=\"disabled\" required=\"required\" class=\"text-right form-control\" value=\"";
        // line 28
        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, 28), "minValue", [], "any", false, false, false, 28), "html", null, true);
        yield "\">
                </div>
                <div class=\"col-2 float-left\">
                    <input type=\"text\" disabled=\"disabled\" required=\"required\" class=\"text-right form-control\" value=\"";
        // line 31
        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, 31), "maxValue", [], "any", false, false, false, 31), "html", null, true);
        yield "\">
                </div>
                <div class=\"col-2 float-left\">
                    <input type=\"text\" disabled=\"disabled\" required=\"required\" class=\"text-right form-control\" value=\"";
        // line 34
        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, 34), "refValue", [], "any", false, false, false, 34), "html", null, true);
        yield "\">
                </div>
                <div class=\"col-2 float-left\">
                    <input type=\"text\" disabled=\"disabled\" required=\"required\" class=\"text-right form-control\" value=\"";
        // line 37
        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, 37), "refYear", [], "any", false, false, false, 37), "html", null, true);
        yield "\">
                </div>
                <div class=\"col-2 float-left\">
                    <input type=\"text\" disabled=\"disabled\" required=\"required\" class=\"text-right form-control\" value=\"";
        // line 40
        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, 40), "unity", [], "any", false, false, false, 40), "html", null, true);
        yield "\">
                </div>
\t\t\t</div>
\t\t";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  354 => 40,  348 => 37,  342 => 34,  336 => 31,  330 => 28,  323 => 24,  319 => 23,  315 => 22,  311 => 21,  307 => 20,  302 => 17,  296 => 15,  294 => 14,  290 => 13,  286 => 12,  283 => 11,  276 => 10,  265 => 9,  198 => 106,  191 => 105,  183 => 102,  176 => 101,  168 => 97,  158 => 92,  150 => 89,  143 => 85,  137 => 82,  133 => 81,  129 => 80,  125 => 79,  121 => 78,  117 => 76,  108 => 74,  104 => 73,  100 => 72,  92 => 67,  86 => 65,  83 => 64,  81 => 47,  77 => 45,  74 => 9,  67 => 8,  61 => 4,  54 => 3,  43 => 1,);
    }

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


/* suivi_ind/suivi_form.html.twig */
class __TwigTemplate_68a41526b959eb40f2019ecd02a50355___866018541 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 = [
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 47
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

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

    // line 48
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 49
        yield "\t\t\t";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["formdesagregation"] ?? null), 'form_start');
        yield "
\t\t\t<div class=\"row\">
\t\t\t\t<div class=\"col-sm-2\">
\t\t\t\t\t<label class=\"col-form-label\">";
        // line 52
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.desagregation", [], "messages");
        yield "</label>
\t\t\t\t</div>
\t\t\t\t<div class=\"col-sm-5\">
\t\t\t\t\t";
        // line 55
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["formdesagregation"] ?? null), "desagregation", [], "any", false, false, false, 55), 'widget');
        yield "
\t\t\t\t</div>
\t\t\t\t<div class=\"col-sm-5\">
\t\t\t\t\t";
        // line 58
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["formdesagregation"] ?? null), "modalite", [], "any", false, false, false, 58), 'widget');
        yield "
\t\t\t\t</div>
\t\t\t</div>
\t\t\t";
        // line 61
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["formdesagregation"] ?? null), 'form_end');
        yield "
\t\t";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  459 => 61,  453 => 58,  447 => 55,  441 => 52,  434 => 49,  427 => 48,  416 => 47,  354 => 40,  348 => 37,  342 => 34,  336 => 31,  330 => 28,  323 => 24,  319 => 23,  315 => 22,  311 => 21,  307 => 20,  302 => 17,  296 => 15,  294 => 14,  290 => 13,  286 => 12,  283 => 11,  276 => 10,  265 => 9,  198 => 106,  191 => 105,  183 => 102,  176 => 101,  168 => 97,  158 => 92,  150 => 89,  143 => 85,  137 => 82,  133 => 81,  129 => 80,  125 => 79,  121 => 78,  117 => 76,  108 => 74,  104 => 73,  100 => 72,  92 => 67,  86 => 65,  83 => 64,  81 => 47,  77 => 45,  74 => 9,  67 => 8,  61 => 4,  54 => 3,  43 => 1,);
    }

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