<?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;

/* rapport/suivi.html.twig */
class __TwigTemplate_98c1b96666422f78271f03639c076abe 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'],
            'stylesheets' => [$this, 'block_stylesheets'],
            'javascripts' => [$this, 'block_javascripts'],
        ];
    }

    protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
    {
        // line 1
        return "@AdminLTE/layout/cfgodd-layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/layout/cfgodd-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("Rapport de suivi de la mise en oeuvre des ODD", [], "messages");
        yield " ";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, ($context["year"] ?? null), "name", [], "any", false, false, false, 3), "html", null, true);
        yield " ";
        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 ((null === ($context["year"] ?? null))) {
            // line 8
            yield "        <div class=\"row\">
\t\t<div class=\"col-xl-12 col-sm-12 col-12 mb-4\">
\t\t\t<div class=\"alert alert-danger\">
\t\t\t\tVeuillez vous assurer que cette année est bien créée. 
\t\t\t</div>
\t\t</div>
\t</div>

    ";
        } else {
            // line 17
            yield "    ";
            yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
            yield "
            ";
            // line 18
            if ((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 19
                yield "            <div class=\"row\">
                <div class=\"col-sm-6\">
                    <div class=\"text-left\">
                        <div class=\"text-left mb-3\">
                            <a href=\"";
                // line 23
                yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("telecharger_suivi");
                yield "\" class=\"mb-2 mr-2 btn-shadow  btn btn-primary\">
                            Télécharger un draft du rapport
                        </a>
                        </div>
                    </div>
                </div>
                <div class=\"col-sm-6\">
                    <div class=\"text-right\">
                        <div class=\"text-right mb-3\">
                            <button type=\"submit\" class=\"btn btn-success\">";
                // line 32
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.save", [], "messages");
                yield "</button>
                        </div>
                    </div>
                </div>
            </div>
            ";
            }
            // line 38
            yield "    ";
            yield from $this->load("rapport/suivi.html.twig", 38, "866266248")->unwrap()->yield($context);
            // line 64
            yield "             ";
            if ((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 65
                yield "            <div class=\"form-group row\">
                    <div class=\"col-sm-offset-2 col-sm-12\">
                        <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 71
            yield "        ";
            yield             $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
            yield "
    ";
        }
        yield from [];
    }

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

    // line 80
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 81
        yield "    <script src=\"";
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/bootstrap.bundle.min.js"), "html", null, true);
        yield "\"></script>
\t<script src=\"";
        // line 82
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("plugins/summernote/summernote-bs4.js"), "html", null, true);
        yield "\"></script>
\t<script>
\t\t\$(function () { 
            var visible = ";
        // line 85
        yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(($context["etat"] ?? null), "html", null, true);
        yield "// Add text editor
\t\t\t\$('#rapport_suivi_resume').summernote({height: 200});
            \$('#rapport_suivi_introduction').summernote({height: 200});
            \$('#rapport_suivi_methodologie').summernote({height: 200});
            \$('#rapport_suivi_conclusion').summernote({height: 200});
            
                \$('#rapport_suivi_resume').summernote(visible==1 ? '' : 'disable');
                \$('#rapport_suivi_introduction').summernote(visible==1 ? '' : 'disable');
                \$('#rapport_suivi_methodologie').summernote(visible==1 ? '' : 'disable');
                \$('#rapport_suivi_conclusion').summernote(visible==1 ? '' : 'disable');

\t\t\t})
\t</script>

";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  182 => 85,  176 => 82,  171 => 81,  164 => 80,  156 => 77,  149 => 76,  140 => 71,  133 => 67,  129 => 65,  126 => 64,  123 => 38,  114 => 32,  102 => 23,  96 => 19,  94 => 18,  89 => 17,  78 => 8,  75 => 7,  68 => 6,  54 => 3,  43 => 1,);
    }

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


/* rapport/suivi.html.twig */
class __TwigTemplate_98c1b96666422f78271f03639c076abe___866266248 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 38
        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", 38);
        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 "                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-12\" for=\"\">Résumé exécutif</label>
                        <div class=\"col-sm-offset-2 col-sm-12\">";
        // line 43
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "resume", [], "any", false, false, false, 43), 'widget');
        yield "</div>
                    </div>
                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-12\" for=\"\">Introduction</label>
                        <div class=\"col-sm-offset-2 col-sm-12\">";
        // line 47
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "introduction", [], "any", false, false, false, 47), 'widget');
        yield "</div>
                    </div>
                    <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-12\" for=\"\">Méthodologie générale</label>
                        <div class=\"col-sm-offset-2 col-sm-12\">";
        // line 51
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "methodologie", [], "any", false, false, false, 51), 'widget');
        yield "</div>
                    </div>
                <div class=\"form-group row\">
                        <label class=\"col-form-label col-sm-12\" for=\"\">Conclusion</label>
                        <div class=\"col-sm-offset-2 col-sm-12\">";
        // line 55
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, ($context["form"] ?? null), "conclusion", [], "any", false, false, false, 55), 'widget');
        yield "</div>
                </div>
                </div>

            
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  298 => 55,  291 => 51,  284 => 47,  277 => 43,  273 => 41,  266 => 40,  255 => 38,  182 => 85,  176 => 82,  171 => 81,  164 => 80,  156 => 77,  149 => 76,  140 => 71,  133 => 67,  129 => 65,  126 => 64,  123 => 38,  114 => 32,  102 => 23,  96 => 19,  94 => 18,  89 => 17,  78 => 8,  75 => 7,  68 => 6,  54 => 3,  43 => 1,);
    }

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