<?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;
/* course/index.html.twig */
class __TwigTemplate_bf0e5cd2fbd2a7e242d558340dceed4c 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'],
];
}
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", "course/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", "course/index.html.twig"));
$this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "course/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 7
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses_new");
yield "\">
<i class=\"fa fa-plus\"></i>
</a>
</div>
<div class=\"col-11 jumbotron\">
<div class=\"m-1 box-shadow\">
<div class=\"card-header\">
<h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">
Liste des cours par classe et par module
</h4>
</div>
<table class=\"table table-striped\">
<thead>
<tr>
<th style=\"width:5%;\" class=\"text-center\" scope=\"col\">
#
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Domaine
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Module
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Code
</th>
<th style=\"width:20%;\" class=\"text-center\" scope=\"col\">
Insitule
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Coef
</th>
<th style=\"width:20%;\" class=\"text-center\" scope=\"col\">
Action
</th>
</tr>
</thead>
<tbody>
";
// line 56
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["rooms"]) || array_key_exists("rooms", $context) ? $context["rooms"] : (function () { throw new RuntimeError('Variable "rooms" does not exist.', 56, $this->source); })()));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["room"]) {
// line 57
yield " <tr>
<td class=\"text-center\" colspan=\"1\" scope=\"row\">
";
// line 59
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 59), "html", null, true);
yield "
</th>
<td class=\"text-center\" colspan=\"7\">
<a href=\"";
// line 62
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, 62)]), "html", null, true);
yield "\">
<h3>
";
// line 64
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["room"], "name", [], "any", false, false, false, 64), "html", null, true);
yield "
</h3>
</a>
</td>
</tr>
";
// line 69
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["room"], "modules", [], "any", false, false, false, 69));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 70
yield " <tr>
<td class=\"text-center\" colspan=\"4\" scope=\"row\">
";
// line 72
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 72), "html", null, true);
yield "
</th>
<td class=\"text-center\" colspan=\"4\">
<a href=\"";
// line 75
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_modules_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["module"], "id", [], "any", false, false, false, 75)]), "html", null, true);
yield "\">
<h3>
";
// line 77
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["module"], "name", [], "any", false, false, false, 77), "html", null, true);
yield "
</h3>
</a>
</td>
</tr>
";
// line 82
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["module"], "courses", [], "any", false, false, false, 82));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
// line 83
yield " <tr>
<td style=\"width:5%;\" class=\"text-center\" scope=\"row\">
";
// line 85
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 85), "html", null, true);
yield "
</th>
<td style=\"width:15%;\" class=\"text-center\">
<a href=\"";
// line 88
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_domains_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["course"], "domain", [], "any", false, false, false, 88), "id", [], "any", false, false, false, 88)]), "html", null, true);
yield "\">
<h3>
";
// line 90
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["course"], "domain", [], "any", false, false, false, 90), "name", [], "any", false, false, false, 90), "html", null, true);
yield "
</h3>
</a>
</td>
<td style=\"width:15%;\" class=\"text-center\">
<a href=\"";
// line 95
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_modules_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["course"], "module", [], "any", false, false, false, 95), "id", [], "any", false, false, false, 95)]), "html", null, true);
yield "\">
<h3>
";
// line 97
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["course"], "module", [], "any", false, false, false, 97), "name", [], "any", false, false, false, 97), "html", null, true);
yield "
</h3>
</a>
</td>
<td style=\"width:10%;\" class=\"text-center\">
<h3>
";
// line 103
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "code", [], "any", false, false, false, 103), "html", null, true);
yield "
</h3>
</td>
<td style=\"width:20%;\" class=\"text-center\">
<h3>
";
// line 108
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "wording", [], "any", false, false, false, 108), "html", null, true);
yield "
</h3>
</td>
<td style=\"width:15%;\" class=\"text-center\">
<h3>
";
// line 113
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "coefficient", [], "any", false, false, false, 113), "html", null, true);
yield "
</h3>
</td>
<td style=\"width:15%;\" class=\"text-center\">
<div class=\"btn-group\">
<a class=\"btn btn-outline-info\" href=\"";
// line 121
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 121)]), "html", null, true);
yield "\">
<i class=\"fa fa-eye\" aria-hidden=\"true\"></i>
</a>
<a class=\"btn btn-outline-warning\" href=\"";
// line 124
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 124)]), "html", null, true);
yield "\">
<i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
</a>
</div>
</td>
</tr>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 132
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 133
yield " ";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['room'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 134
yield " </tbody>
</table>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "course/index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 350 => 134, 336 => 133, 322 => 132, 300 => 124, 294 => 121, 283 => 113, 275 => 108, 267 => 103, 258 => 97, 253 => 95, 245 => 90, 240 => 88, 234 => 85, 230 => 83, 213 => 82, 205 => 77, 200 => 75, 194 => 72, 190 => 70, 173 => 69, 165 => 64, 160 => 62, 154 => 59, 150 => 57, 133 => 56, 81 => 7, 76 => 4, 63 => 3, 40 => 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_courses_new') }}\">
<i class=\"fa fa-plus\"></i>
</a>
</div>
<div class=\"col-11 jumbotron\">
<div class=\"m-1 box-shadow\">
<div class=\"card-header\">
<h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">
Liste des cours par classe et par module
</h4>
</div>
<table class=\"table table-striped\">
<thead>
<tr>
<th style=\"width:5%;\" class=\"text-center\" scope=\"col\">
#
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Domaine
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Module
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Code
</th>
<th style=\"width:20%;\" class=\"text-center\" scope=\"col\">
Insitule
</th>
<th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
Coef
</th>
<th style=\"width:20%;\" class=\"text-center\" scope=\"col\">
Action
</th>
</tr>
</thead>
<tbody>
{% for room in rooms %}
<tr>
<td class=\"text-center\" colspan=\"1\" scope=\"row\">
{{ loop.index }}
</th>
<td class=\"text-center\" colspan=\"7\">
<a href=\"{{ path('admin_classrooms_show', {id: room.id}) }}\">
<h3>
{{ room.name }}
</h3>
</a>
</td>
</tr>
{% for module in room.modules %}
<tr>
<td class=\"text-center\" colspan=\"4\" scope=\"row\">
{{ loop.index }}
</th>
<td class=\"text-center\" colspan=\"4\">
<a href=\"{{ path('admin_modules_show', {id: module.id}) }}\">
<h3>
{{ module.name }}
</h3>
</a>
</td>
</tr>
{% for course in module.courses %}
<tr>
<td style=\"width:5%;\" class=\"text-center\" scope=\"row\">
{{ loop.index }}
</th>
<td style=\"width:15%;\" class=\"text-center\">
<a href=\"{{ path('admin_domains_show', {id: course.domain.id}) }}\">
<h3>
{{ course.domain.name }}
</h3>
</a>
</td>
<td style=\"width:15%;\" class=\"text-center\">
<a href=\"{{ path('admin_modules_show', {id: course.module.id}) }}\">
<h3>
{{ course.module.name }}
</h3>
</a>
</td>
<td style=\"width:10%;\" class=\"text-center\">
<h3>
{{ course.code }}
</h3>
</td>
<td style=\"width:20%;\" class=\"text-center\">
<h3>
{{ course.wording }}
</h3>
</td>
<td style=\"width:15%;\" class=\"text-center\">
<h3>
{{ course.coefficient }}
</h3>
</td>
<td style=\"width:15%;\" class=\"text-center\">
<div class=\"btn-group\">
<a class=\"btn btn-outline-info\" href=\"{{ path('admin_courses_show', {id: course.id}) }}\">
<i class=\"fa fa-eye\" aria-hidden=\"true\"></i>
</a>
<a class=\"btn btn-outline-warning\" href=\"{{ path('admin_courses_edit', {id: course.id}) }}\">
<i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
</a>
</div>
</td>
</tr>
{% endfor %}
{% endfor %}
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
{% endblock %}
", "course/index.html.twig", "/var/www/prod/current/templates/course/index.html.twig");
}
}