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

/* suivi_pta/upload_form.html.twig */
class __TwigTemplate_b3ec5ba31ae633a0f7a3d7a14fe3abe9 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/suiodd-layout.html.twig";
    }

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $this->parent = $this->load("@AdminLTE/layout/suiodd-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("upload.pta.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 "    ";
        if ((($tmp = ($context["etat"] ?? null)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
            // line 8
            yield "
    <div class=\"row\">
        <div class=\"col-sm-6\">
            ";
            // line 11
            if ((($tmp =  !$this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 12
                yield "            <div class=\"text-left\">
                <a href=\"";
                // line 13
                yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_suivi_pta_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 14
                yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("chargement.vide", [], "messages");
                // line 15
                yield "                </a>
            </div>
            ";
            }
            // line 18
            yield "        </div>
        <div class=\"col-sm-6\">
            <div class=\"text-right\">
                <a href=\"";
            // line 21
            yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_suiviPTA");
            yield "\" class=\"mb-2 mr-2 btn-shadow  btn btn-warning text-right\">
                    <i class=\"fa fa-check\"></i> Suivi du PTA
                </a>
            </div>
        </div>
    </div>
    
    ";
            // line 28
            if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MANAGER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
                // line 29
                yield "    ";
                yield from $this->load("suivi_pta/upload_form.html.twig", 29, 108716360)->unwrap()->yield($context);
                // line 46
                yield "    ";
            }
            // line 47
            yield "

    ";
            // line 49
            yield from $this->load("suivi_pta/upload_form.html.twig", 49, 1168878760)->unwrap()->yield($context);
            // line 66
            yield "
    ";
        } else {
            // line 68
            yield "        <div class=\"alert alert-info\">
            Vous ne pouvez pas charger les activités du PTA. Veuillez contacter la DGCS-ODD.
      </div>
    ";
        }
        // line 72
        yield "
";
        yield from [];
    }

    // line 75
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_javascripts(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 76
        yield "<script>
    \$(document).on('change', '.custom-file-input', function() {
        let fileName = \$(this).val().replace(/\\\\/g, '/').replace(/.*\\//, '');
        \$(this).parent('.custom-file').find('.custom-file-label').text(fileName);
    });
</script>
";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  149 => 76,  142 => 75,  136 => 72,  130 => 68,  126 => 66,  124 => 49,  120 => 47,  117 => 46,  114 => 29,  112 => 28,  102 => 21,  97 => 18,  92 => 15,  90 => 14,  84 => 13,  81 => 12,  79 => 11,  74 => 8,  71 => 7,  64 => 6,  53 => 3,  42 => 1,);
    }

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


/* suivi_pta/upload_form.html.twig */
class __TwigTemplate_b3ec5ba31ae633a0f7a3d7a14fe3abe9___108716360 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 29
        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", 29);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 30
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 31
        yield "            ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["formFormat"] ?? null), 'form_start');
        yield "
                <div class=\"card-body\">    
                    
                    ";
        // line 34
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["formFormat"] ?? null), 'widget');
        yield "

                    <div class=\"form-group row\">
                        <div class=\"col-sm-2\"></div>
                        <div class=\"col-sm-offset-2 col-sm-10\">
                            <button type=\"submit\" class=\"btn btn-block btn-primary\">Télécharger format vide</button>
                        </div>
                    </div>
                </div>
            ";
        // line 43
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["formFormat"] ?? null), 'form_end');
        yield "
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  250 => 43,  238 => 34,  231 => 31,  224 => 30,  213 => 29,  149 => 76,  142 => 75,  136 => 72,  130 => 68,  126 => 66,  124 => 49,  120 => 47,  117 => 46,  114 => 29,  112 => 28,  102 => 21,  97 => 18,  92 => 15,  90 => 14,  84 => 13,  81 => 12,  79 => 11,  74 => 8,  71 => 7,  64 => 6,  53 => 3,  42 => 1,);
    }

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


/* suivi_pta/upload_form.html.twig */
class __TwigTemplate_b3ec5ba31ae633a0f7a3d7a14fe3abe9___1168878760 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 49
        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", 49);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
    }

    // line 50
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_box_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        // line 51
        yield "            ";
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_start');
        yield "
                <div class=\"card-body\">    
                    
                    ";
        // line 54
        yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(($context["form"] ?? null), 'widget');
        yield "

                    <div class=\"form-group row\">
                        <div class=\"col-sm-2\"></div>
                        <div class=\"col-sm-offset-2 col-sm-10\">
                            <button type=\"submit\" class=\"btn btn-block btn-primary\">";
        // line 59
        yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("basics.charge", [], "messages");
        yield "</button>
                        </div>
                    </div>
                </div>
            ";
        // line 63
        yield         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock(($context["form"] ?? null), 'form_end');
        yield "
        ";
        yield from [];
    }

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

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  350 => 63,  343 => 59,  335 => 54,  328 => 51,  321 => 50,  310 => 49,  250 => 43,  238 => 34,  231 => 31,  224 => 30,  213 => 29,  149 => 76,  142 => 75,  136 => 72,  130 => 68,  126 => 66,  124 => 49,  120 => 47,  117 => 46,  114 => 29,  112 => 28,  102 => 21,  97 => 18,  92 => 15,  90 => 14,  84 => 13,  81 => 12,  79 => 11,  74 => 8,  71 => 7,  64 => 6,  53 => 3,  42 => 1,);
    }

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