<?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/norme_new.html.twig */
class __TwigTemplate_9fabf8d45a62497c3d52f064665117f3 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 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("norme.title", [], "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 "
    ";
        // line 8
        yield from $this->load("communes/norme_new.html.twig", 8, "270007166")->unwrap()->yield($context);
        // line 106
        yield "
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  94 => 111,  89 => 110,  82 => 109,  76 => 106,  74 => 8,  71 => 7,  64 => 6,  53 => 3,  42 => 1,);
    }

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


/* communes/norme_new.html.twig */
class __TwigTemplate_9fabf8d45a62497c3d52f064665117f3___270007166 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 8
        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", 8);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 9
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 10
        yield "            ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        yield "
                <div class=\"form-group row\">
                    <label class=\"col-form-label col-sm-2\">Code</label>
                    <div class=\"col-sm-10\">
                        ";
        // line 14
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "code", [], "any", false, false, false, 14), 'widget');
        yield "
                    </div>
                </div>
                <div class=\"form-group row\">
                    <label class=\"col-form-label col-sm-2\">Désignation</label>
                    <div class=\"col-sm-10\">
                        ";
        // line 20
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "libelle", [], "any", false, false, false, 20), 'widget');
        yield "
                    </div>
                </div>
                <div class=\"form-group row\">
                    <label class=\"col-form-label col-sm-2\">Coût</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), "cout", [], "any", false, false, false, 26), 'widget');
        yield "
                    </div>
                </div>
                <div class=\"form-group row\">
                    <label class=\"col-form-label col-sm-2\">Niveau de réalisation</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), "niveau", [], "any", false, false, false, 32), 'widget');
        yield "
                    </div>
                </div>
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
                        <label class=\"col-form-label\">Réalisations phares</label>
                    </div>
                    <div class=\"col-sm-10\">
                        <div class=\"realisation-repeater form-group\">
                            <div data-repeater-list=\"realisations\">
                                <div data-repeater-item=\"\" class=\"row mb-3\">
                                    <div class=\"col-md-12\">
                                        <div class=\"row mb-2\">
                                            <div class=\"col-md-3\">
                                                <label>Code réalisation</label>
                                                <input type=\"text\"  name=\"coderealisation\" required=\"required\" class=\"form-control\">
                                            </div>
                                            <div class=\"col-md-9\">
                                                <label>Désignation réalisation</label>
                                                <input type=\"text\"  name=\"namerealisation\" required=\"required\" class=\"form-control\">
                                            </div>
                                        </div>
                                            <button data-repeater-delete=\"\" class=\"btn btn-danger waves-effect waves-light\" type=\"button\">
                                                <i class=\"ti-close\">Supprimer cette réalisation</i>
                                            </button>
                                        <hr>
                                    </div>
                                </div>
                            </div>
                            <button type=\"button\" data-repeater-create=\"\" class=\"btn btn-info waves-effect waves-light\">Ajouter une nouvelle réalisation
                            </button>
                        </div>
                    </div>
                </div>
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
                        <label class=\"col-form-label\">Projets à fort impact ODD</label>
                    </div>
                    <div class=\"col-sm-10\">
                        <div class=\"projet-repeater form-group\">
                            <div data-repeater-list=\"projets\">
                                <div data-repeater-item=\"\" class=\"row mb-3\">
                                    <div class=\"col-md-12\">
                                        <div class=\"row mb-2\">
                                            <div class=\"col-md-3\">
                                                <label>Code projet</label>
                                                <input type=\"text\"  name=\"codeprojet\" required=\"required\" class=\"form-control\">
                                            </div>
                                            <div class=\"col-md-9\">
                                                <label>Désignation projet</label>
                                                <input type=\"text\"  name=\"nameprojet\" required=\"required\" class=\"form-control\">
                                            </div>
                                        </div>
                                            <button data-repeater-delete=\"\" class=\"btn btn-danger waves-effect waves-light\" type=\"button\">
                                                <i class=\"ti-close\">Supprimer ce projet</i>
                                            </button>
                                        <hr>
                                    </div>
                                </div>
                            </div>
                            <button type=\"button\" data-repeater-create=\"\" class=\"btn btn-info waves-effect waves-light\">Ajouter un nouveau projet
                            </button>
                        </div>
                    </div>
                </div>
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\"><a href=\"";
        // line 98
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_commune_normes");
        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 100
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
        yield "</button>
                    </div>
                </div>
            ";
        // line 103
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  289 => 103,  283 => 100,  276 => 98,  207 => 32,  198 => 26,  189 => 20,  180 => 14,  172 => 10,  165 => 9,  154 => 8,  94 => 111,  89 => 110,  82 => 109,  76 => 106,  74 => 8,  71 => 7,  64 => 6,  53 => 3,  42 => 1,);
    }

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