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

/* fichier/ajout-fichier.html.twig */
class __TwigTemplate_91a6a61bb8ea896d79a65968e66faf86 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 = [
            'title' => [$this, 'block_title'],
            'body' => [$this, 'block_body'],
        ];
    }

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

    protected function doDisplay(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fichier/ajout-fichier.html.twig"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "fichier/ajout-fichier.html.twig"));

        $this->parent = $this->loadTemplate("base.html.twig", "fichier/ajout-fichier.html.twig", 1);
        yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

    }

    // line 2
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_title(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));

        // line 3
        yield "\t";
        yield from $this->yieldParentBlock("title", $context, $blocks);
        yield "
\tAjout fichier
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        yield from [];
    }

    // line 6
    /**
     * @return iterable<null|scalar|\Stringable>
     */
    public function block_body(array $context, array $blocks = []): iterable
    {
        $macros = $this->macros;
        $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));

        // line 7
        yield "\t<div class=\"container-fluid\">
\t\t<div class=\"row justify-content-center\">
\t\t\t<div class=\"col-12 col-sm-10 col-md-8 text-primary\">
\t\t\t\t<h1 class=\"text-center text-primary mt-4 pt-4 fw-bold\">
\t\t\t\t\tAjouter un fichier</h1>
\t\t\t\t";
        // line 12
        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.', 12, $this->source); })()), 'form_start');
        yield "
\t\t\t\t";
        // line 13
        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.', 13, $this->source); })()), "fichier", [], "any", false, false, false, 13), 'row');
        yield "
\t\t\t\t";
        // line 14
        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.', 14, $this->source); })()), "user", [], "any", false, false, false, 14), 'row');
        yield "
\t\t\t\t<div class=\"table-responsive\">
\t\t\t\t\t<table class=\"table\">
\t\t\t\t\t\t";
        // line 17
        $context["id"] = null;
        // line 18
        yield "\t\t\t\t\t\t";
        $context['_parent'] = $context;
        $context['_seq'] = CoreExtension::ensureTraversable((isset($context["scategories"]) || array_key_exists("scategories", $context) ? $context["scategories"] : (function () { throw new RuntimeError('Variable "scategories" does not exist.', 18, $this->source); })()));
        foreach ($context['_seq'] as $context["_key"] => $context["scategorie"]) {
            // line 19
            yield "\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t";
            // line 20
            if (((isset($context["id"]) || array_key_exists("id", $context) ? $context["id"] : (function () { throw new RuntimeError('Variable "id" does not exist.', 20, $this->source); })()) != CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "categorie", [], "any", false, false, false, 20), "id", [], "any", false, false, false, 20))) {
                // line 21
                yield "\t\t\t\t\t\t\t\t\t";
                $context["id"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source,                 // line 22
$context["scategorie"], "categorie", [], "any", false, false, false, 22), "id", [], "any", false, false, false, 22);
                // line 23
                yield "\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td class=\"text-primary fwbold\">";
                // line 24
                yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "categorie", [], "any", false, false, false, 24), "id", [], "any", false, false, false, 24), "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["scategorie"], "categorie", [], "any", false, false, false, 24), "libelle", [], "any", false, false, false, 24), "html", null, true);
                yield "
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td></td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t";
            }
            // line 29
            yield "\t\t\t\t\t\t\t\t<td class=\"text-primary\">
\t\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t\t";
            // line 31
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "numero", [], "any", false, false, false, 31), "html", null, true);
            yield ")
\t\t\t\t\t\t\t\t\t";
            // line 32
            yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "libelle", [], "any", false, false, false, 32), "html", null, true);
            yield "</td>
\t\t\t\t\t\t\t\t<td class=\"text-primary\">
\t\t\t\t\t\t\t\t\t";
            // line 34
            yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, 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.', 34, $this->source); })()), "scategories", [], "any", false, false, false, 34), CoreExtension::getAttribute($this->env, $this->source, $context["scategorie"], "id", [], "any", false, false, false, 34), [], "array", false, false, false, 34), 'widget');
            yield "</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_key'], $context['scategorie'], $context['_parent']);
        $context = array_intersect_key($context, $_parent) + $_parent;
        // line 37
        yield "\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t\t";
        // line 39
        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.', 39, $this->source); })()), "ajouter", [], "any", false, false, false, 39), 'row');
        yield "
\t\t\t\t";
        // line 40
        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.', 40, $this->source); })()), 'form_end');
        yield "
\t\t\t</div>
\t\t</div>
\t</div>
";
        
        $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);

        
        $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);

        yield from [];
    }

    /**
     * @codeCoverageIgnore
     */
    public function getTemplateName(): string
    {
        return "fichier/ajout-fichier.html.twig";
    }

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

    /**
     * @codeCoverageIgnore
     */
    public function getDebugInfo(): array
    {
        return array (  185 => 40,  181 => 39,  177 => 37,  168 => 34,  163 => 32,  159 => 31,  155 => 29,  145 => 24,  142 => 23,  140 => 22,  138 => 21,  136 => 20,  133 => 19,  128 => 18,  126 => 17,  120 => 14,  116 => 13,  112 => 12,  105 => 7,  92 => 6,  77 => 3,  64 => 2,  41 => 1,);
    }

    public function getSourceContext(): Source
    {
        return new Source("{% extends 'base.html.twig' %}
{% block title %}
\t{{parent()}}
\tAjout fichier
{% endblock %}
{% block body %}
\t<div class=\"container-fluid\">
\t\t<div class=\"row justify-content-center\">
\t\t\t<div class=\"col-12 col-sm-10 col-md-8 text-primary\">
\t\t\t\t<h1 class=\"text-center text-primary mt-4 pt-4 fw-bold\">
\t\t\t\t\tAjouter un fichier</h1>
\t\t\t\t{{ form_start(form) }}
\t\t\t\t{{ form_row(form.fichier) }}
\t\t\t\t{{ form_row(form.user) }}
\t\t\t\t<div class=\"table-responsive\">
\t\t\t\t\t<table class=\"table\">
\t\t\t\t\t\t{% set id = null %}
\t\t\t\t\t\t{% for scategorie in scategories %}
\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t{% if id != scategorie.categorie.id %}
\t\t\t\t\t\t\t\t\t{% set id =
scategorie.categorie.id %}
\t\t\t\t\t\t\t\t\t<tr>
\t\t\t\t\t\t\t\t\t\t<td class=\"text-primary fwbold\">{{scategorie.categorie.id}}){{scategorie.categorie.libelle}}
\t\t\t\t\t\t\t\t\t\t</td>
\t\t\t\t\t\t\t\t\t\t<td></td>
\t\t\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t\t\t{% endif %}
\t\t\t\t\t\t\t\t<td class=\"text-primary\">
\t\t\t\t\t\t\t\t\t-
\t\t\t\t\t\t\t\t\t{{scategorie.numero}})
\t\t\t\t\t\t\t\t\t{{scategorie.libelle}}</td>
\t\t\t\t\t\t\t\t<td class=\"text-primary\">
\t\t\t\t\t\t\t\t\t{{ form_widget(form.scategories[scategorie.id]) }}</td>
\t\t\t\t\t\t\t</tr>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</table>
\t\t\t\t</div>
\t\t\t\t{{ form_row(form.ajouter) }}
\t\t\t\t{{ form_end(form) }}
\t\t\t</div>
\t\t</div>
\t</div>
{% endblock %}
", "fichier/ajout-fichier.html.twig", "/var/www/html/equipe/share/templates/fichier/ajout-fichier.html.twig");
    }
}
