<?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;
/* classroom/index.html.twig */
class __TwigTemplate_7bf976b458906a142e87e348c04952e2 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 = [
'content' => [$this, 'block_content'],
'footer' => [$this, 'block_footer'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/backEndLayout.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", "classroom/index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "classroom/index.html.twig"));
$this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "classroom/index.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 3
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(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", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
yield " <div class=\"row mt-4\">
<div class=\"col-1\">
<a class=\"btn btn-info\" href=\"";
// line 6
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_new");
yield "\">
<i class=\"fa fa-plus\"></i>
</a>
</div>
<div class=\"col-11 jumbotron\">
<div class=\"card-header d-inline-flex\">
<h4 class=\"my-0 font-weight-normal text-center text-uppercase\">
                        Liste des salles de classe
</h4>
</div>
<table width=\"120%\" class=\"table table-striped table-sm\">
<thead>
<tr>
<th style=\"width:18%;\" class=\"text-center\" scope=\"col\">
Nom
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Professeur titulaire
</th>
<th style=\"width:75%;\" class=\"text-center\" scope=\"col\">
Action
</th>
</tr>
</thead>
<tbody>
";
// line 36
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["classrooms"]) || array_key_exists("classrooms", $context) ? $context["classrooms"] : (function () { throw new RuntimeError('Variable "classrooms" does not exist.', 36, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["room"]) {
// line 37
yield " <tr>
<td>
<a href=\"";
// line 40
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 40)]), "html", null, true);
yield "\">
";
// line 41
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["room"], "name", [], "any", false, false, false, 41), "html", null, true);
yield "
</a>
</td>
<td>
";
// line 45
if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 45), Twig\Extension\CoreExtension::keys((isset($context["mainTeachers"]) || array_key_exists("mainTeachers", $context) ? $context["mainTeachers"] : (function () { throw new RuntimeError('Variable "mainTeachers" does not exist.', 45, $this->source); })())))) {
// line 46
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["mainTeachers"]) || array_key_exists("mainTeachers", $context) ? $context["mainTeachers"] : (function () { throw new RuntimeError('Variable "mainTeachers" does not exist.', 46, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 46), [], "array", false, false, false, 46), "fullName", [], "any", false, false, false, 46), "html", null, true);
yield "
";
}
// line 48
yield "
</td>
<td>
<div class=\"btn-group\">
";
// line 52
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 53
yield " <a class=\"btn btn-outline-warning \" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 53)]), "html", null, true);
yield "\">
<i class=\"fa fa-edit\">
</i>
</a>
";
}
// line 59
yield " <a class=\"btn btn-file\" target=\"_blank\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_fichesimple", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 59)]), "html", null, true);
yield "\">
<i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\">
Repport Notes
</i>
</a>
<a class=\"btn btn-outline-info \" target=\"_blank\" href=\"";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_presentation", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 64)]), "html", null, true);
yield "\">
<i class=\"fa fa-users\" aria-hidden=\"true\">
</i>
</a>
<a class=\"btn btn-outline-dark \" target=\"_blank\" href=\"";
// line 69
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classroom_insolvent", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 69)]), "html", null, true);
yield "\">
<i class=\"fa fa-users\" aria-hidden=\"true\">
</i>
</a>
<a class=\"btn btn-file\" target=\"_blank\" href=\"";
// line 74
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_recapitulatif", ["room" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 74), "seq" => (isset($context["seq"]) || array_key_exists("seq", $context) ? $context["seq"] : (function () { throw new RuntimeError('Variable "seq" does not exist.', 74, $this->source); })())]), "html", null, true);
yield "\">
<i class=\"fa fa-file\" aria-hidden=\"true\">
Recap. vierge
</i>
</a>
";
// line 84
yield " <a class=\"btn btn-file\" target=\"_blank\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_payment_plan_print", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 84)]), "html", null, true);
yield "\">
<i class=\"fa fa-money\" aria-hidden=\"true\">
Echeancier
</i>
</a>
<a class=\"btn btn-file\" target=\"_blank\" href=\"";
// line 89
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_disciplinary_record", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 89)]), "html", null, true);
yield "\">
<i class=\"fa fa-th-list\" aria-hidden=\"true\">
Fiche discipl.
</i>
</a>
</div>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['room'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 99
yield " </tbody>
</table>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 104
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_footer(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", "footer"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "footer"));
// line 105
yield " ";
yield from $this->yieldParentBlock("footer", $context, $blocks);
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "classroom/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 246 => 105, 233 => 104, 218 => 99, 202 => 89, 193 => 84, 185 => 74, 177 => 69, 169 => 64, 160 => 59, 150 => 53, 148 => 52, 142 => 48, 136 => 46, 134 => 45, 127 => 41, 123 => 40, 118 => 37, 114 => 36, 81 => 6, 77 => 4, 64 => 3, 41 => 1,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layout/backEndLayout.html.twig' %}
{% block content %}
<div class=\"row mt-4\">
<div class=\"col-1\">
<a class=\"btn btn-info\" href=\"{{ path('admin_classrooms_new') }}\">
<i class=\"fa fa-plus\"></i>
</a>
</div>
<div class=\"col-11 jumbotron\">
<div class=\"card-header d-inline-flex\">
<h4 class=\"my-0 font-weight-normal text-center text-uppercase\">
                        Liste des salles de classe
</h4>
</div>
<table width=\"120%\" class=\"table table-striped table-sm\">
<thead>
<tr>
<th style=\"width:18%;\" class=\"text-center\" scope=\"col\">
Nom
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Professeur titulaire
</th>
<th style=\"width:75%;\" class=\"text-center\" scope=\"col\">
Action
</th>
</tr>
</thead>
<tbody>
{% for room in classrooms %}
<tr>
<td>
<a href=\"{{ path('admin_classrooms_show', {id: room.id }) }}\">
{{ room.name }}
</a>
</td>
<td>
{% if room.id in mainTeachers|keys %}
{{ mainTeachers[room.id].fullName}}
{% endif %}
</td>
<td>
<div class=\"btn-group\">
{% if is_granted('ROLE_ADMIN') %}
<a class=\"btn btn-outline-warning \" href=\"{{ path('admin_classrooms_edit', {id: room.id}) }}\">
<i class=\"fa fa-edit\">
</i>
</a>
{% endif %}
<a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_classrooms_fichesimple', {id: room.id}) }}\">
<i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\">
Repport Notes
</i>
</a>
<a class=\"btn btn-outline-info \" target=\"_blank\" href=\"{{ path('admin_classrooms_presentation', {id: room.id}) }}\">
<i class=\"fa fa-users\" aria-hidden=\"true\">
</i>
</a>
<a class=\"btn btn-outline-dark \" target=\"_blank\" href=\"{{ path('admin_classroom_insolvent', {id: room.id}) }}\">
<i class=\"fa fa-users\" aria-hidden=\"true\">
</i>
</a>
<a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_classrooms_recapitulatif', {room: room.id, seq : seq}) }}\">
<i class=\"fa fa-file\" aria-hidden=\"true\">
Recap. vierge
</i>
</a>
{#<a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_classrooms_blanc_ann', {room: room.id}) }}\">
<i class=\"fa fa-th-list\" aria-hidden=\"true\">
Fiche annu.
</i>
</a>#}
<a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_payment_plan_print', {id: room.id}) }}\">
<i class=\"fa fa-money\" aria-hidden=\"true\">
Echeancier
</i>
</a>
<a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_classrooms_disciplinary_record', {id: room.id}) }}\">
<i class=\"fa fa-th-list\" aria-hidden=\"true\">
Fiche discipl.
</i>
</a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}
{% block footer %}
{{ parent() }}
{% endblock %}
", "classroom/index.html.twig", "/var/www/prod/current/templates/classroom/index.html.twig");
}
}