<?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/goal_form.html.twig */
class __TwigTemplate_128de43e3d563ac5b9fed41b621fcd00 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 $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("goal.title", [], "messages");
        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/goal_form.html.twig", 18, 1597748549)->unwrap()->yield($context);
        // line 73
        yield "
";
        yield from [];
    }

    // line 76
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 77
        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 78
        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/goal_form.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  109 => 78,  104 => 77,  97 => 76,  91 => 73,  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/goal_form.html.twig", "/var/www/html/templates/goal/goal_form.html.twig");
    }
}


/* goal/goal_form.html.twig */
class __TwigTemplate_128de43e3d563ac5b9fed41b621fcd00___1597748549 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\">Alignement avec l'Agenda 2063</label>
                    </div>
                    <div class=\"col-sm-10\">
                        <div class=\"aspiration-repeater form-group\">
                            <div data-repeater-list=\"alignements\">
                                <div data-repeater-item=\"\" class=\"row mb-3\">
                                    <div class=\"col-md-12\">
                                        <div class=\"row mb-2\">
                                            <div class=\"col-md-8\">
                                                <label>Aspiration</label>
                                                <select name=\"alignement\" required=\"required\" class=\"form-control\">
                                                    <option value=\"\">Sélectionnez une aspiration</option>
                                                    ";
        // line 37
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["goals"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["g"]) {
            // line 38
            yield "                                                        <option value=\"";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["g"], "id", [], "any", false, false, false, 38), "html", null, true);
            yield "\">Aspiration ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["g"], "code", [], "any", false, false, false, 38), "html", null, true);
            yield " : ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["g"], "name", [], "any", false, false, false, 38), "html", null, true);
            yield "</option>
                                                    ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['g'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 40
        yield "                                                </select>
                                            </div>
                                            <div class=\"col-md-4\">
                                                <label>Lien</label>
                                                <select name=\"lien\" required=\"required\" class=\"form-control\">
                                                    <option value=\"\">Sélectionnez un lien</option>
                                                    <option value=\"Faible\">Faible</option>
                                                    <option value=\"Fort\">Fort</option>
                                                </select>
                                            </div>
                                        </div>
                                            <button data-repeater-delete=\"\" class=\"btn btn-danger waves-effect waves-light\" type=\"button\">
                                                <i class=\"ti-close\">Supprimer cette aspiration</i>
                                            </button>
                                        <hr>
                                    </div>
                                </div>
                            </div>
                            <button type=\"button\" data-repeater-create=\"\" class=\"btn btn-info waves-effect waves-light\">Ajouter une aspiration
                            </button>
                        </div>
                    </div>
                </div>

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

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  268 => 70,  262 => 67,  255 => 65,  228 => 40,  215 => 38,  211 => 37,  192 => 21,  187 => 20,  180 => 19,  169 => 18,  109 => 78,  104 => 77,  97 => 76,  91 => 73,  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/goal_form.html.twig", "/var/www/html/templates/goal/goal_form.html.twig");
    }
}
