<?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/deptargetspacialise.html.twig */
class __TwigTemplate_0850958ff2273aba5f82781253668c39 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((isset($context["extendedTemplate"]) || array_key_exists("extendedTemplate", $context) ? $context["extendedTemplate"] : (function () { throw new RuntimeError('Variable "extendedTemplate" does not exist.', 7, $this->source); })()), 7);
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "communes/deptargetspacialise.html.twig"));

        // 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));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 9
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_title"));

        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Liste des cibles spatialisées par commune", [], "messages");
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 12
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_page_content(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "page_content"));

        // line 13
        yield "
    ";
        // line 14
        yield from $this->load("communes/deptargetspacialise.html.twig", 14, "1871851058")->unwrap()->yield($context);
        // line 29
        yield "
   ";
        // line 30
        if ((Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["targets"]) || array_key_exists("targets", $context) ? $context["targets"] : (function () { throw new RuntimeError('Variable "targets" does not exist.', 30, $this->source); })())) > 0)) {
            yield " 
    ";
            // line 31
            yield from $this->load("communes/deptargetspacialise.html.twig", 31, "199340948")->unwrap()->yield($context);
            // line 52
            yield "    ";
        }
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 55
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));

        // line 56
        yield "    <script>
        \$(function () {
            \$(\"#targetTable\").DataTable({
                \"pageLength\": 25
            });
        });
    </script>

    <script src=\"";
        // line 64
        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 65
        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>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

    // line 68
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_stylesheets(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));

        // line 69
        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 "\">
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  162 => 69,  152 => 68,  142 => 65,  138 => 64,  128 => 56,  118 => 55,  109 => 52,  107 => 31,  103 => 30,  100 => 29,  98 => 14,  95 => 13,  85 => 12,  68 => 9,  61 => 7,  58 => 4,  55 => 2,  53 => 1,  43 => 7,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% if is_granted('ROLE_DDD') %}
    {% set extendedTemplate = '@AdminLTE/layout/ddd-layout.html.twig' %}
{% else %}
    {% set extendedTemplate = '@AdminLTE/layout/communeodd-layout.html.twig' %}
{% endif %}

{% extends extendedTemplate %}

{% block page_title %}{% trans %}Liste des cibles spatialisées par commune{% endtrans %}{% endblock %}


{% block page_content %}

    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
\t\t\t\t\t    <label class=\"col-form-label\">{% trans %}basics.commune{% endtrans %}</label>
\t\t\t\t    </div>
                    <div class=\"col-10 col-sm-10 col-md-10\">
                        {{ form_widget(form.commune) }}
                    </div>
                </div>
                
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

   {% if targets|length > 0 %} 
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            <table id=\"targetTable\" class=\"table table-striped\">
            <thead>
                <th>{% trans %}basics.code{% endtrans %}</th>
                <th>{% trans %}basics.name{% endtrans %}</th>
                <th>{% trans %}target.goal{% endtrans %}</th>
            </thead>
            <tbody>
            {% for target in targets %}
                <tr>
                    <td>{{ target.code }}</td>
                    <td>{{ target.name }}</td>
                    <td>{{ target.goal.name }}</td>
                </tr>
            {% endfor %}
            </tbody>
            </table>
        {% endblock %}
        
    {% endembed %}
    {% endif %}
{% endblock %}

{% block javascripts %}
    <script>
        \$(function () {
            \$(\"#targetTable\").DataTable({
                \"pageLength\": 25
            });
        });
    </script>

    <script src=\"{{ asset('plugins/datatables/jquery.dataTables.js') }}\"></script>
    <script src=\"{{ asset('plugins/datatables-bs4/js/dataTables.bootstrap4.js') }}\"></script>
{% endblock %}

{% block stylesheets %}
    <link rel=\"stylesheet\" href=\"{{ asset('plugins/datatables-bs4/css/dataTables.bootstrap4.css') }}\">
{% endblock %}", "communes/deptargetspacialise.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/communes/deptargetspacialise.html.twig");
    }
}


/* communes/deptargetspacialise.html.twig */
class __TwigTemplate_0850958ff2273aba5f82781253668c39___1871851058 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 14
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "communes/deptargetspacialise.html.twig"));

        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 14);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 15
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "box_body"));

        // line 16
        yield "            ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 16, $this->source); })()), 'form_start');
        yield "
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
\t\t\t\t\t    <label class=\"col-form-label\">";
        // line 19
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.commune", [], "messages");
        yield "</label>
\t\t\t\t    </div>
                    <div class=\"col-10 col-sm-10 col-md-10\">
                        ";
        // line 22
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 22, $this->source); })()), "commune", [], "any", false, false, false, 22), 'widget');
        yield "
                    </div>
                </div>
                
            ";
        // line 26
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 26, $this->source); })()), 'form_end');
        yield "    
        ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  342 => 26,  335 => 22,  329 => 19,  322 => 16,  312 => 15,  295 => 14,  162 => 69,  152 => 68,  142 => 65,  138 => 64,  128 => 56,  118 => 55,  109 => 52,  107 => 31,  103 => 30,  100 => 29,  98 => 14,  95 => 13,  85 => 12,  68 => 9,  61 => 7,  58 => 4,  55 => 2,  53 => 1,  43 => 7,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% if is_granted('ROLE_DDD') %}
    {% set extendedTemplate = '@AdminLTE/layout/ddd-layout.html.twig' %}
{% else %}
    {% set extendedTemplate = '@AdminLTE/layout/communeodd-layout.html.twig' %}
{% endif %}

{% extends extendedTemplate %}

{% block page_title %}{% trans %}Liste des cibles spatialisées par commune{% endtrans %}{% endblock %}


{% block page_content %}

    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
\t\t\t\t\t    <label class=\"col-form-label\">{% trans %}basics.commune{% endtrans %}</label>
\t\t\t\t    </div>
                    <div class=\"col-10 col-sm-10 col-md-10\">
                        {{ form_widget(form.commune) }}
                    </div>
                </div>
                
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

   {% if targets|length > 0 %} 
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            <table id=\"targetTable\" class=\"table table-striped\">
            <thead>
                <th>{% trans %}basics.code{% endtrans %}</th>
                <th>{% trans %}basics.name{% endtrans %}</th>
                <th>{% trans %}target.goal{% endtrans %}</th>
            </thead>
            <tbody>
            {% for target in targets %}
                <tr>
                    <td>{{ target.code }}</td>
                    <td>{{ target.name }}</td>
                    <td>{{ target.goal.name }}</td>
                </tr>
            {% endfor %}
            </tbody>
            </table>
        {% endblock %}
        
    {% endembed %}
    {% endif %}
{% endblock %}

{% block javascripts %}
    <script>
        \$(function () {
            \$(\"#targetTable\").DataTable({
                \"pageLength\": 25
            });
        });
    </script>

    <script src=\"{{ asset('plugins/datatables/jquery.dataTables.js') }}\"></script>
    <script src=\"{{ asset('plugins/datatables-bs4/js/dataTables.bootstrap4.js') }}\"></script>
{% endblock %}

{% block stylesheets %}
    <link rel=\"stylesheet\" href=\"{{ asset('plugins/datatables-bs4/css/dataTables.bootstrap4.css') }}\">
{% endblock %}", "communes/deptargetspacialise.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/communes/deptargetspacialise.html.twig");
    }
}


/* communes/deptargetspacialise.html.twig */
class __TwigTemplate_0850958ff2273aba5f82781253668c39___199340948 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 31
        return "@AdminLTE/Widgets/box-widget.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "communes/deptargetspacialise.html.twig"));

        $this->parent = $this->load("@AdminLTE/Widgets/box-widget.html.twig", 31);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 32
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "box_body"));

        // line 33
        yield "            <table id=\"targetTable\" class=\"table table-striped\">
            <thead>
                <th>";
        // line 35
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.code", [], "messages");
        yield "</th>
                <th>";
        // line 36
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.name", [], "messages");
        yield "</th>
                <th>";
        // line 37
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("target.goal", [], "messages");
        yield "</th>
            </thead>
            <tbody>
            ";
        // line 40
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["targets"]) || array_key_exists("targets", $context) ? $context["targets"] : (function () { throw new RuntimeError('Variable "targets" does not exist.', 40, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["target"]) {
            // line 41
            yield "                <tr>
                    <td>";
            // line 42
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["target"], "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["target"], "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["target"], "goal", [], "any", false, false, false, 44), "name", [], "any", false, false, false, 44), "html", null, true);
            yield "</td>
                </tr>
            ";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['target'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 47
        yield "            </tbody>
            </table>
        ";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  543 => 47,  534 => 44,  530 => 43,  526 => 42,  523 => 41,  519 => 40,  513 => 37,  509 => 36,  505 => 35,  501 => 33,  491 => 32,  474 => 31,  342 => 26,  335 => 22,  329 => 19,  322 => 16,  312 => 15,  295 => 14,  162 => 69,  152 => 68,  142 => 65,  138 => 64,  128 => 56,  118 => 55,  109 => 52,  107 => 31,  103 => 30,  100 => 29,  98 => 14,  95 => 13,  85 => 12,  68 => 9,  61 => 7,  58 => 4,  55 => 2,  53 => 1,  43 => 7,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% if is_granted('ROLE_DDD') %}
    {% set extendedTemplate = '@AdminLTE/layout/ddd-layout.html.twig' %}
{% else %}
    {% set extendedTemplate = '@AdminLTE/layout/communeodd-layout.html.twig' %}
{% endif %}

{% extends extendedTemplate %}

{% block page_title %}{% trans %}Liste des cibles spatialisées par commune{% endtrans %}{% endblock %}


{% block page_content %}

    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            {{ form_start(form) }}
                <div class=\"form-group row\">
                    <div class=\"col-sm-2\">
\t\t\t\t\t    <label class=\"col-form-label\">{% trans %}basics.commune{% endtrans %}</label>
\t\t\t\t    </div>
                    <div class=\"col-10 col-sm-10 col-md-10\">
                        {{ form_widget(form.commune) }}
                    </div>
                </div>
                
            {{ form_end(form) }}    
        {% endblock %}
    {% endembed %}

   {% if targets|length > 0 %} 
    {% embed '@AdminLTE/Widgets/box-widget.html.twig' %}
        {% block box_body %}
            <table id=\"targetTable\" class=\"table table-striped\">
            <thead>
                <th>{% trans %}basics.code{% endtrans %}</th>
                <th>{% trans %}basics.name{% endtrans %}</th>
                <th>{% trans %}target.goal{% endtrans %}</th>
            </thead>
            <tbody>
            {% for target in targets %}
                <tr>
                    <td>{{ target.code }}</td>
                    <td>{{ target.name }}</td>
                    <td>{{ target.goal.name }}</td>
                </tr>
            {% endfor %}
            </tbody>
            </table>
        {% endblock %}
        
    {% endembed %}
    {% endif %}
{% endblock %}

{% block javascripts %}
    <script>
        \$(function () {
            \$(\"#targetTable\").DataTable({
                \"pageLength\": 25
            });
        });
    </script>

    <script src=\"{{ asset('plugins/datatables/jquery.dataTables.js') }}\"></script>
    <script src=\"{{ asset('plugins/datatables-bs4/js/dataTables.bootstrap4.js') }}\"></script>
{% endblock %}

{% block stylesheets %}
    <link rel=\"stylesheet\" href=\"{{ asset('plugins/datatables-bs4/css/dataTables.bootstrap4.css') }}\">
{% endblock %}", "communes/deptargetspacialise.html.twig", "/var/www/vhosts/sigodd.gouv.bj/httpdocs/templates/communes/deptargetspacialise.html.twig");
    }
}
