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

/* agenda2063/indicateur_form.html.twig */
class __TwigTemplate_fad98059cddf31933f28bf6158bcf482 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'],
            'stylesheets' => [$this, 'block_stylesheets'],
            'page_content' => [$this, 'block_page_content'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 11
        return $this->load(($context["extendedTemplate"] ?? null), 11);
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 1), "get", ["_application"], "method", false, false, false, 1) == 0)) {
            // line 2
            $context["extendedTemplate"] = "@AdminLTE/layout/mesodd-layout.html.twig";
        }
        // line 4
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 4), "get", ["_application"], "method", false, false, false, 4) == 1)) {
            // line 5
            $context["extendedTemplate"] = "@AdminLTE/layout/suiodd-layout.html.twig";
        }
        // line 7
        if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 7), "get", ["_application"], "method", false, false, false, 7) == 2)) {
            // line 8
            $context["extendedTemplate"] = "@AdminLTE/layout/cfgodd-layout.html.twig";
        }
        // line 11
        yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 13
    /**
     * @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("indicator.title", [], "messages");
        yield from [];
    }

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

    // line 19
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 20
        yield "    ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        yield "
        ";
        // line 21
        yield from $this->load("agenda2063/indicateur_form.html.twig", 21, "158344986")->unwrap()->yield($context);
        // line 61
        yield "
        ";
        // line 62
        yield from $this->load("agenda2063/indicateur_form.html.twig", 62, "23322046")->unwrap()->yield($context);
        // line 87
        yield "
        ";
        // line 88
        yield from $this->load("agenda2063/indicateur_form.html.twig", 88, "1779854586")->unwrap()->yield($context);
        // line 98
        yield "    ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "



";
        yield from [];
    }

    // line 104
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 105
        yield "    <script>
        let \$code = \$('#indicator_code');
        let \$name = \$('#indicator_name');
        let \$goal = \$('#indicator_goal');

        \$goal.change(function() {
            let \$form = \$goal.closest('form');

            let data = {};
            data[\$code.attr('name')] = \$code.val();
            data[\$name.attr('name')] = \$name.val();
            data[\$goal.attr('name')] = \$goal.val();

            \$.ajax({
                url: \$form.attr('action'),
                type: \$form.attr('method'),
                data: data,
                success: function(html) {
                    \$('#indicator_target').replaceWith(
                        \$(html).find('#indicator_target')
                    );
                }
            });
        });
    </script>

    <script src=\"";
        // line 131
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/select2.min.js"), "html", null, true);
        yield "\"></script>
<script>
\$(document).ready(function() {
    \$('.select2').select2();
});
</script>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  165 => 131,  137 => 105,  130 => 104,  119 => 98,  117 => 88,  114 => 87,  112 => 62,  109 => 61,  107 => 21,  102 => 20,  95 => 19,  87 => 16,  80 => 15,  69 => 13,  65 => 11,  62 => 8,  60 => 7,  57 => 5,  55 => 4,  52 => 2,  50 => 1,  43 => 11,);
    }

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


/* agenda2063/indicateur_form.html.twig */
class __TwigTemplate_fad98059cddf31933f28bf6158bcf482___158344986 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 21
        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", 21);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 22
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 23
        yield "                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 24
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.code", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 26
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "code", [], "any", false, false, false, 26), 'widget');
        yield "
                        </div>
                    </div>
                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 30
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.name", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 32
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "name", [], "any", false, false, false, 32), 'widget');
        yield "
                        </div>
                    </div>
                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 36
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.aspiration", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 38
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "aspiration", [], "any", false, false, false, 38), 'widget');
        yield "
                        </div>
                    </div>
                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 42
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.objectif", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 44
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "objectif", [], "any", false, false, false, 44), 'widget');
        yield "
                        </div>
                    </div>
                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 48
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.domaine", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 50
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "domaine", [], "any", false, false, false, 50), 'widget');
        yield "
                        </div>
                    </div>
                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 54
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.target", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 56
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "cible", [], "any", false, false, false, 56), 'widget');
        yield "
                        </div>
                    </div>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  316 => 56,  311 => 54,  304 => 50,  299 => 48,  292 => 44,  287 => 42,  280 => 38,  275 => 36,  268 => 32,  263 => 30,  256 => 26,  251 => 24,  248 => 23,  241 => 22,  230 => 21,  165 => 131,  137 => 105,  130 => 104,  119 => 98,  117 => 88,  114 => 87,  112 => 62,  109 => 61,  107 => 21,  102 => 20,  95 => 19,  87 => 16,  80 => 15,  69 => 13,  65 => 11,  62 => 8,  60 => 7,  57 => 5,  55 => 4,  52 => 2,  50 => 1,  43 => 11,);
    }

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


/* agenda2063/indicateur_form.html.twig */
class __TwigTemplate_fad98059cddf31933f28bf6158bcf482___23322046 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_title' => [$this, 'block_box_title'],
            'box_body' => [$this, 'block_box_body'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 62
        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", 62);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 63
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        yield " 
            <h4>Choix de l'indicateur ODD correspondant</h4>
            ";
        yield from [];
    }

    // line 66
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 67
        yield "                <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 68
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.goal", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 70
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "goal", [], "any", false, false, false, 70), 'widget');
        yield "
                        </div>
                </div>
                <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 74
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.target", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 76
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "target", [], "any", false, false, false, 76), 'widget');
        yield "
                        </div>
                </div>
                <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-2\">";
        // line 80
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.indicator", [], "messages");
        yield "</label>
                        <div class=\"col-sm-10\">
                            ";
        // line 82
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "indicateur2030", [], "any", false, false, false, 82), 'widget');
        yield "
                        </div>
                </div>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  442 => 82,  437 => 80,  430 => 76,  425 => 74,  418 => 70,  413 => 68,  410 => 67,  403 => 66,  390 => 63,  379 => 62,  316 => 56,  311 => 54,  304 => 50,  299 => 48,  292 => 44,  287 => 42,  280 => 38,  275 => 36,  268 => 32,  263 => 30,  256 => 26,  251 => 24,  248 => 23,  241 => 22,  230 => 21,  165 => 131,  137 => 105,  130 => 104,  119 => 98,  117 => 88,  114 => 87,  112 => 62,  109 => 61,  107 => 21,  102 => 20,  95 => 19,  87 => 16,  80 => 15,  69 => 13,  65 => 11,  62 => 8,  60 => 7,  57 => 5,  55 => 4,  52 => 2,  50 => 1,  43 => 11,);
    }

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


/* agenda2063/indicateur_form.html.twig */
class __TwigTemplate_fad98059cddf31933f28bf6158bcf482___1779854586 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 88
        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", 88);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 89
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 90
        yield "                    <div class=\"form-group row\">
                        <div class=\"col-sm-2\"><a href=\"";
        // line 91
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_indicateurs");
        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\" name='save' value=\"save\" class=\"btn btn-block btn-primary\">";
        // line 93
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
        yield "</button>
                        </div>
                    </div>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  532 => 93,  525 => 91,  522 => 90,  515 => 89,  504 => 88,  442 => 82,  437 => 80,  430 => 76,  425 => 74,  418 => 70,  413 => 68,  410 => 67,  403 => 66,  390 => 63,  379 => 62,  316 => 56,  311 => 54,  304 => 50,  299 => 48,  292 => 44,  287 => 42,  280 => 38,  275 => 36,  268 => 32,  263 => 30,  256 => 26,  251 => 24,  248 => 23,  241 => 22,  230 => 21,  165 => 131,  137 => 105,  130 => 104,  119 => 98,  117 => 88,  114 => 87,  112 => 62,  109 => 61,  107 => 21,  102 => 20,  95 => 19,  87 => 16,  80 => 15,  69 => 13,  65 => 11,  62 => 8,  60 => 7,  57 => 5,  55 => 4,  52 => 2,  50 => 1,  43 => 11,);
    }

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