<?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/chargement_actions.html.twig */
class __TwigTemplate_a9978bca3d2bd17035f178f3bba5fee6 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'],
        ];
    }

    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 "Chargement des normes d'actions";
        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 "            ";
        if ((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 8
            yield "            ";
            yield from $this->load("communes/chargement_actions.html.twig", 8, 1991683869)->unwrap()->yield($context);
            // line 36
            yield "            ";
        }
        // line 37
        yield "
        ";
        // line 38
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), ($context["activities"] ?? null)) > 0)) {
            // line 39
            yield "        ";
            yield from $this->load("communes/chargement_actions.html.twig", 39, 1812207565)->unwrap()->yield($context);
            // line 126
            yield "
        ";
        } else {
            // line 128
            yield "            <div class=\"alert alert-info\">Vous n'avez chargé aucune action pour votre commune </div>
        ";
        }
        // line 130
        yield "    
        <!-- Import Modal -->
        <div class=\"modal fade\" id=\"importModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\" aria-hidden=\"true\">
            <div class=\"modal-dialog modal-lg\">
                <div class=\"modal-content\">
                    <div class=\"modal-header\">
                        <h5 class=\"modal-title h4\" id=\"myLargeModalLabel\">Importation des normes d'action de ";
        // line 136
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 136), "get", ["_year"], "method", false, false, false, 136), "html", null, true);
        yield "</h5>
                        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
                        <span aria-hidden=\"true\">&times;</span>
                        </button>
                    </div>
                    <form action=\"";
        // line 141
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_commune_actions_import");
        yield "\" method=\"POST\" role=\"form\" accept-charset=\"UTF-8\" enctype=\"multipart/form-data\">
                    <div class=\"modal-body\">
                            <div class=\"form-group\">
                                <label for=\"recipient-name\" class=\"col-form-label\">Fichier Excel</label>
                                <input type=\"file\" class=\"form-control\" name=\"fichier\" required=\"required\" value=\"Importer\" accept=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel\"/> 
                            </div>
                    </div>
                    <div class=\"modal-footer\">
                        <button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">Annuler</button>
                        <button type=\"submit\" class=\"btn btn-success\">Importer</button>
                    </div>
                    </form>
                </div>
            </div>   
        </div>

        <!-- Valide Modal -->
        <div class=\"modal fade\" id=\"valideModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"myLargeModalLabel\" aria-hidden=\"true\">
            <div class=\"modal-dialog modal-lg\">
                <div class=\"modal-content\">
                    <div class=\"modal-header\">
                        <h5 class=\"modal-title h4\" id=\"myLargeModalLabel\">";
        // line 162
        yield (((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FOCAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("Soumission") : ("Validation"));
        yield " des données de ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["app"] ?? null), "session", [], "any", false, false, false, 162), "get", ["_year"], "method", false, false, false, 162), "html", null, true);
        yield "</h5>
                        <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
                        <span aria-hidden=\"true\">&times;</span>
                        </button>
                    </div>
                    <form action=\"";
        // line 167
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_commune_validation");
        yield "\" method=\"post\" enctype=\"multipart/form-data\">
                    <div class=\"modal-body\">
                           Vous êtes sur le point de ";
        // line 169
        yield (((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FOCAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("soumettre") : ("valider"));
        yield " vos données. Vous ne pouvez plus les modifier.
                    </div>
                    <div class=\"modal-footer\">
                        <button type=\"button\" class=\"btn btn-primary\" data-dismiss=\"modal\">Annuler</button>
                        <button type=\"submit\" class=\"btn btn-success\">";
        // line 173
        yield (((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_FOCAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("Soumettre") : ("Valider"));
        yield "</button>
                    </div>
                    </form>
                </div>
            </div>   
        </div>

";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  157 => 173,  150 => 169,  145 => 167,  135 => 162,  111 => 141,  103 => 136,  95 => 130,  91 => 128,  87 => 126,  84 => 39,  82 => 38,  79 => 37,  76 => 36,  73 => 8,  70 => 7,  63 => 6,  52 => 3,  41 => 1,);
    }

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


/* communes/chargement_actions.html.twig */
class __TwigTemplate_a9978bca3d2bd17035f178f3bba5fee6___1991683869 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 "                    <div class=\"row\">
                        <div class=\"col-sm-6\">
                            <div class=\"text-left\">
                                ";
        // line 13
        if ((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 14
            yield "                                <a href=\"";
            yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_commune_actions_format");
            yield "\" class=\"mb-2 mr-2 btn-shadow  btn btn-primary text-right ";
            yield (((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("") : ("disabled"));
            yield "\">
                                    <i class=\"fa fa-save\"></i> ";
            // line 15
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("chargement.vide", [], "messages");
            // line 16
            yield "                                </a>
                                 ";
        }
        // line 18
        yield "                            </div>
                        </div>
                        <div class=\"col-sm-6\">
                            <div class=\"text-right\">
                                ";
        // line 22
        if ((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 23
            yield "                                    <a href=\"";
            yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_actions_new");
            yield "\" class=\"mb-2 mr-2 btn-shadow  btn btn-info text-right ";
            yield (((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("") : ("disabled"));
            yield "\">
                                        <i class=\"fa fa-plus\"></i> Nouveau
                                    </a>
                                    <button type=\"button\" class=\"mb-2 mr-2 btn-shadow  btn btn-success text-right ";
            // line 26
            yield (((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("") : ("disabled"));
            yield "\" data-toggle=\"modal\" data-target=\"#importModal\">
                                        <i class=\"fa fa-file-import\"></i> ";
            // line 27
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("chargement.import", [], "messages");
            // line 28
            yield "                                    </button>
                                ";
        }
        // line 30
        yield "                            </div>
                            </div>
                        </div>
                    </div>
                ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  288 => 30,  284 => 28,  282 => 27,  278 => 26,  269 => 23,  267 => 22,  261 => 18,  257 => 16,  255 => 15,  248 => 14,  246 => 13,  241 => 10,  234 => 9,  223 => 8,  157 => 173,  150 => 169,  145 => 167,  135 => 162,  111 => 141,  103 => 136,  95 => 130,  91 => 128,  87 => 126,  84 => 39,  82 => 38,  79 => 37,  76 => 36,  73 => 8,  70 => 7,  63 => 6,  52 => 3,  41 => 1,);
    }

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


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

    // line 40
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 41
        yield "                <table id=\"suiviPTATable\" class=\"table table-striped\">
                <thead>
                    <th>
                        <div class=\"row mt-2 mb-2\">
                            <div class=\"col-3\">Norme d'action</div>
                            <div class=\"col-3\">Action</div>
                            <div class=\"col-4\">
                                <div class=\"col-5 float-left text-center\">";
        // line 48
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.expectedCost", [], "messages");
        yield "</div>
                                <div class=\"col-5 float-left text-center\">";
        // line 49
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.realizedCost", [], "messages");
        yield "</div>
                            </div>
                            <div class=\"col-1 text-center\"> Taux (%)</div>
                            ";
        // line 52
        if ((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 53
            yield "                                <div class=\"col-1 text-center\"></div>
                            ";
        }
        // line 55
        yield "                        </div>
                    </th>
                </thead>
                ";
        // line 58
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["activities"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["activity"]) {
            // line 59
            yield "                <tr>
                    <td>
                        <div class=\"row mt-2\">
                            <div class=\"col-3\">";
            // line 62
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "norme", [], "any", false, false, false, 62), "name", [], "any", false, false, false, 62), "html", null, true);
            yield "</div>
                            <div class=\"col-3\">";
            // line 63
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "action", [], "any", false, false, false, 63), "html", null, true);
            yield "</div>
                            <div class=\"col-4\">
                                <div class=\"col-5 float-left text-center\"><b>";
            // line 65
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "prevu", [], "any", false, false, false, 65), "html", null, true);
            yield "</b></div>
                                <div class=\"col-5 float-left text-center\">";
            // line 66
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "realise", [], "any", false, false, false, 66), "html", null, true);
            yield "</div>
                            </div>

                            <div class=\"col-1 float-left text-center\">";
            // line 69
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "tef", [], "any", false, false, false, 69), "html", null, true);
            yield "</div>
                            
                            ";
            // line 71
            if ((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 72
                yield "                            <div class=\"col-1 text-center\">

                                <div class=\"btn-group\">
                                    <a href=\"";
                // line 75
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_actions_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "id", [], "any", false, false, false, 75)]), "html", null, true);
                yield "\" class=\"btn btn-sm btn-secondary\">";
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.update", [], "messages");
                yield "</a>
                                    
                                    <button type=\"button\" class=\"btn btn-sm btn-default dropdown-toggle\" data-toggle=\"dropdown\">
                                        <span class=\"caret\"></span>
                                        <span class=\"sr-only\">Toggle Dropdown</span>
                                    </button>
                                    <div class=\"dropdown-menu\" role=\"menu\">
                                        <a class=\"dropdown-item\" href=\"#\" data-toggle=\"modal\" data-target=\"#modal-delete-";
                // line 82
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "id", [], "any", false, false, false, 82), "html", null, true);
                yield "\">";
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.delete", [], "messages");
                yield "</a>
                                    </div>
        
                                    <div class=\"modal fade\" id=\"modal-delete-";
                // line 85
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "id", [], "any", false, false, false, 85), "html", null, true);
                yield "\">
                                        <div class=\"modal-dialog\">
                                            <div class=\"modal-content\">
                                                <div class=\"modal-header\">
                                                    <h5 class=\"modal-title\">Voulez-vous vraiment supprimer cette action?</h5>
                                                    <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
                                                        <span aria-hidden=\"true\">&times;</span>
                                                    </button>
                                                </div>
                                                <div class=\"modal-body\">
                                                    <b>";
                // line 95
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "norme", [], "any", false, false, false, 95), "name", [], "any", false, false, false, 95), "html", null, true);
                yield "</b>
                                                </div>
                                                <div class=\"modal-footer justify-content-between\">
                                                    <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">";
                // line 98
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.no", [], "messages");
                yield "</button>
                                                    <a href=\"";
                // line 99
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_commune_action_delete", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "id", [], "any", false, false, false, 99)]), "html", null, true);
                yield "\" class=\"btn btn-danger\">";
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.yes", [], "messages");
                yield "</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    
                                </div>
                            </div>
                            ";
            }
            // line 108
            yield "
                        </div>
                        <div class=\"row mb-2\">
                                <div class=\"col-6 float-left\"><hr>
                                    <u>";
            // line 112
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.observations", [], "messages");
            yield "</u>: 
                                    <i>";
            // line 113
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "observation", [], "any", false, false, false, 113), "html", null, true);
            yield "</i>
                                </div>
                                <div class=\"col-6 float-left\"><hr>
                                    <u>";
            // line 116
            yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.constraints", [], "messages");
            yield "</u>: 
                                    <i>";
            // line 117
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["activity"], "contraintes", [], "any", false, false, false, 117), "html", null, true);
            yield "</i>
                                </div>
                        </div>
                    </td>
                </tr>
                ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['activity'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 123
        yield "                </table>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  527 => 123,  515 => 117,  511 => 116,  505 => 113,  501 => 112,  495 => 108,  481 => 99,  477 => 98,  471 => 95,  458 => 85,  450 => 82,  438 => 75,  433 => 72,  431 => 71,  426 => 69,  420 => 66,  416 => 65,  411 => 63,  407 => 62,  402 => 59,  398 => 58,  393 => 55,  389 => 53,  387 => 52,  381 => 49,  377 => 48,  368 => 41,  361 => 40,  350 => 39,  288 => 30,  284 => 28,  282 => 27,  278 => 26,  269 => 23,  267 => 22,  261 => 18,  257 => 16,  255 => 15,  248 => 14,  246 => 13,  241 => 10,  234 => 9,  223 => 8,  157 => 173,  150 => 169,  145 => 167,  135 => 162,  111 => 141,  103 => 136,  95 => 130,  91 => 128,  87 => 126,  84 => 39,  82 => 38,  79 => 37,  76 => 36,  73 => 8,  70 => 7,  63 => 6,  52 => 3,  41 => 1,);
    }

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