<?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/indicatorspacialise.html.twig */
class __TwigTemplate_80125bf59ba3115945749fb0adf6a8c6 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'],
            'stylesheets' => [$this, 'block_stylesheets'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 1
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_DDD")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 2
            $context["extendedTemplate"] = "@AdminLTE/layout/ddd-layout.html.twig";
        } else {
            // line 4
            $context["extendedTemplate"] = "@AdminLTE/layout/communeodd-layout.html.twig";
        }
        // line 7
        yield from $this->getParent($context)->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 9
    /**
     * @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("Les indicateurs renseignables", [], "messages");
        yield from [];
    }

    // line 13
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 14
        yield "
";
        // line 15
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 16
            yield "        ";
            yield from $this->load("communes/indicatorspacialise.html.twig", 16, 1033321070)->unwrap()->yield($context);
            // line 25
            yield "    ";
        }
        // line 26
        yield "

    ";
        // line 28
        yield from $this->load("communes/indicatorspacialise.html.twig", 28, 1953155632)->unwrap()->yield($context);
        // line 59
        yield "
    
<h3>Les indicateurs renseignables en lien avec les cibles spatialisées </h3>

    

    ";
        // line 65
        yield from $this->load("communes/indicatorspacialise.html.twig", 65, 147318510)->unwrap()->yield($context);
        yield from [];
    }

    // line 98
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 99
        yield "    <script>
        \$(function () {
            \$(\"#indicatorTable\").DataTable({
                \"pageLength\": 5
            });
        });
    </script>

    <script src=\"";
        // line 107
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables/jquery.dataTables.js"), "html", null, true);
        yield "\"></script>
    <script src=\"";
        // line 108
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/datatables-bs4/js/dataTables.bootstrap4.js"), "html", null, true);
        yield "\"></script>
";
        yield from [];
    }

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

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  145 => 112,  138 => 111,  131 => 108,  127 => 107,  117 => 99,  110 => 98,  105 => 65,  97 => 59,  95 => 28,  91 => 26,  88 => 25,  85 => 16,  83 => 15,  80 => 14,  73 => 13,  62 => 9,  58 => 7,  55 => 4,  52 => 2,  50 => 1,  43 => 7,);
    }

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


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

    // line 17
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 18
        yield "            <div class=\"text-right\">
                <a href=\"";
        // line 19
        yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_indicator_new");
        yield "\" class=\"btn btn-primary text-right\">
                    <i class=\"fa fa-plus\"></i> ";
        // line 20
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("indicator.add", [], "messages");
        // line 21
        yield "                </a>
            </div>
            ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  233 => 21,  231 => 20,  227 => 19,  224 => 18,  217 => 17,  206 => 16,  145 => 112,  138 => 111,  131 => 108,  127 => 107,  117 => 99,  110 => 98,  105 => 65,  97 => 59,  95 => 28,  91 => 26,  88 => 25,  85 => 16,  83 => 15,  80 => 14,  73 => 13,  62 => 9,  58 => 7,  55 => 4,  52 => 2,  50 => 1,  43 => 7,);
    }

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


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

    // line 29
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 30
        yield "            <table id=\"indicatorTable\" class=\"table table-striped\">
            <thead>
                <th>";
        // line 32
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.code", [], "messages");
        yield "</th>
                <th>";
        // line 33
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.name", [], "messages");
        yield "</th>
                <th>";
        // line 34
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("indicator.target", [], "messages");
        yield "</th>
                ";
        // line 35
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 36
            yield "                    <th style=\"width: 100px\"></th>
                ";
        }
        // line 38
        yield "            </thead>
            <tbody>
            ";
        // line 40
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["allindicators"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["indicator"]) {
            // line 41
            yield "                <tr>
                    <td>";
            // line 42
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "code", [], "any", false, false, false, 42), "html", null, true);
            yield "</td>
                    <td>";
            // line 43
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "name", [], "any", false, false, false, 43), "html", null, true);
            yield "</td>
                    <td>";
            // line 44
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "target", [], "any", false, false, false, 44), "code", [], "any", false, false, false, 44), "html", null, true);
            yield " ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "target", [], "any", false, false, false, 44), "name", [], "any", false, false, false, 44), "html", null, true);
            yield "</td>
                    ";
            // line 45
            if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 46
                yield "                    <td class=\"text-center\">
                        <div class=\"btn-group\">
                            <a href=\"";
                // line 48
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_indicator", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 48)]), "html", null, true);
                yield "\" class=\"btn btn-sm btn-default\" role=\"button\" aria-pressed=\"true\">";
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.update", [], "messages");
                yield "</a>
                        </div>
                    </td>
                    ";
            }
            // line 52
            yield "                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['indicator'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 54
        yield "            </tbody>
            </table>
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  380 => 54,  373 => 52,  364 => 48,  360 => 46,  358 => 45,  352 => 44,  348 => 43,  344 => 42,  341 => 41,  337 => 40,  333 => 38,  329 => 36,  327 => 35,  323 => 34,  319 => 33,  315 => 32,  311 => 30,  304 => 29,  293 => 28,  233 => 21,  231 => 20,  227 => 19,  224 => 18,  217 => 17,  206 => 16,  145 => 112,  138 => 111,  131 => 108,  127 => 107,  117 => 99,  110 => 98,  105 => 65,  97 => 59,  95 => 28,  91 => 26,  88 => 25,  85 => 16,  83 => 15,  80 => 14,  73 => 13,  62 => 9,  58 => 7,  55 => 4,  52 => 2,  50 => 1,  43 => 7,);
    }

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


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

    // line 66
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 67
        yield "            <table id=\"indicatorTable\" class=\"table table-striped\">
            <thead>
                <th>";
        // line 69
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.code", [], "messages");
        yield "</th>
                <th>";
        // line 70
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.name", [], "messages");
        yield "</th>
                <th>";
        // line 71
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("indicator.target", [], "messages");
        yield "</th>
                ";
        // line 72
        if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 73
            yield "                    <th style=\"width: 100px\"></th>
                ";
        }
        // line 75
        yield "            </thead>
            <tbody>
            ";
        // line 77
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable(($context["indicators"] ?? null));
        foreach ($context['_seq'] as $context["_key"] => $context["indicator"]) {
            // line 78
            yield "                <tr>
                    <td>";
            // line 79
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "code", [], "any", false, false, false, 79), "html", null, true);
            yield "</td>
                    <td>";
            // line 80
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "name", [], "any", false, false, false, 80), "html", null, true);
            yield "</td>
                    <td>";
            // line 81
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "target", [], "any", false, false, false, 81), "code", [], "any", false, false, false, 81), "html", null, true);
            yield " ";
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "target", [], "any", false, false, false, 81), "name", [], "any", false, false, false, 81), "html", null, true);
            yield "</td>
                    ";
            // line 82
            if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 83
                yield "                    <td class=\"text-center\">
                        <div class=\"btn-group\">
                            <a href=\"";
                // line 85
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_indicator", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["indicator"], "id", [], "any", false, false, false, 85)]), "html", null, true);
                yield "\" class=\"btn btn-sm btn-default\" role=\"button\" aria-pressed=\"true\">";
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.update", [], "messages");
                yield "</a>
                        </div>
                    </td>
                    ";
            }
            // line 89
            yield "                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['indicator'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 91
        yield "            </tbody>
            </table>
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  527 => 91,  520 => 89,  511 => 85,  507 => 83,  505 => 82,  499 => 81,  495 => 80,  491 => 79,  488 => 78,  484 => 77,  480 => 75,  476 => 73,  474 => 72,  470 => 71,  466 => 70,  462 => 69,  458 => 67,  451 => 66,  440 => 65,  380 => 54,  373 => 52,  364 => 48,  360 => 46,  358 => 45,  352 => 44,  348 => 43,  344 => 42,  341 => 41,  337 => 40,  333 => 38,  329 => 36,  327 => 35,  323 => 34,  319 => 33,  315 => 32,  311 => 30,  304 => 29,  293 => 28,  233 => 21,  231 => 20,  227 => 19,  224 => 18,  217 => 17,  206 => 16,  145 => 112,  138 => 111,  131 => 108,  127 => 107,  117 => 99,  110 => 98,  105 => 65,  97 => 59,  95 => 28,  91 => 26,  88 => 25,  85 => 16,  83 => 15,  80 => 14,  73 => 13,  62 => 9,  58 => 7,  55 => 4,  52 => 2,  50 => 1,  43 => 7,);
    }

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