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

/* goal/desagregation_form.html.twig */
class __TwigTemplate_319c66d4b331c6ee578661adb2a3b0b0 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'],
            '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 "Gestion des désagrégations";
        yield from [];
    }

    // line 16
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 17
        yield "
    ";
        // line 18
        yield from $this->load("goal/desagregation_form.html.twig", 18, 820493827)->unwrap()->yield($context);
        // line 77
        yield "
";
        yield from [];
    }

    // line 80
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 81
        yield "\t<script type=\"text/javascript\" src=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.repeater/jquery.repeater.min.js"), "html", null, true);
        yield "\"></script>
\t<script type=\"text/javascript\" src=\"";
        // line 82
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("assets/js/jquery.repeater/repeater-init.js"), "html", null, true);
        yield "\"></script>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  109 => 82,  104 => 81,  97 => 80,  91 => 77,  89 => 18,  86 => 17,  79 => 16,  68 => 13,  64 => 11,  61 => 8,  59 => 7,  56 => 5,  54 => 4,  51 => 2,  49 => 1,  42 => 11,);
    }

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


/* goal/desagregation_form.html.twig */
class __TwigTemplate_319c66d4b331c6ee578661adb2a3b0b0___820493827 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 18
        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", 18);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 19
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(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 $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        yield "

                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
                        <label class=\"col-form-label\">Modalités</label>
                    </div>
                    <div class=\"col-sm-10\">
                        <div class=\"modalite-repeater form-group\">
                            <div data-repeater-list=\"modalites\">
                                ";
        // line 30
        if ((($context["desagregation"] ?? null) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, ($context["desagregation"] ?? null), "modalites", [], "any", false, false, false, 30)) > 0))) {
            // line 31
            yield "                                ";
            $context['_parent'] = $context;
            $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, ($context["desagregation"] ?? null), "modalites", [], "any", false, false, false, 31));
            foreach ($context['_seq'] as $context["_key"] => $context["modalite"]) {
                // line 32
                yield "                                <div data-repeater-item=\"\" class=\"row mb-3\">
                                            <div class=\"col-md-10\">
                                                <label>Libellé</label>
                                                <input type=\"text\"  name=\"name\" required=\"required\" class=\"form-control\" value=\"";
                // line 35
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["modalite"], "name", [], "any", false, false, false, 35), "html", null, true);
                yield "\">
                                            
                                            </div>
                                            <div class=\"col-md-2\" style=\"margin-top:30px;\">
                                            <button data-repeater-delete=\"\" class=\"btn btn-danger waves-effect waves-light\" type=\"button\">
                                                <i class=\"ti-close\">Supprimer</i>
                                            </button>
                                            
                                            </div>
                                </div>
                                ";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_key'], $context['modalite'], $context['_parent']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 46
            yield "                                ";
        } else {
            // line 47
            yield "                                <div data-repeater-item=\"\" class=\"row mb-3\">
                                            <div class=\"col-md-10\">
                                                <label>Nom</label>
                                                <input type=\"text\"  name=\"name\" required=\"required\" class=\"form-control\">
                                            
                                            </div>
                                            <div class=\"col-md-2\" style=\"margin-top:30px;\">
                                            <button data-repeater-delete=\"\" class=\"btn btn-danger waves-effect waves-light\" type=\"button\">
                                                <i class=\"ti-close\">Supprimer</i>
                                            </button>
                                            
                                            </div>
                                </div>
                                ";
        }
        // line 61
        yield "                            </div>
                            <button type=\"button\" data-repeater-create=\"\" class=\"btn btn-info waves-effect waves-light\">Ajouter une modalité
                            </button>
                        </div>
                    </div>
                </div>

                <div class=\"form-group row\">
                    <div class=\"col-sm-2\"><a href=\"";
        // line 69
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_desagregations");
        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 71
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
        yield "</button>
                    </div>
                </div>
            ";
        // line 74
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  275 => 74,  269 => 71,  262 => 69,  252 => 61,  236 => 47,  233 => 46,  216 => 35,  211 => 32,  206 => 31,  204 => 30,  192 => 21,  187 => 20,  180 => 19,  169 => 18,  109 => 82,  104 => 81,  97 => 80,  91 => 77,  89 => 18,  86 => 17,  79 => 16,  68 => 13,  64 => 11,  61 => 8,  59 => 7,  56 => 5,  54 => 4,  51 => 2,  49 => 1,  42 => 11,);
    }

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