<?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/show.html.twig */
class __TwigTemplate_de7e4b728036aeefbd18cb71fc46a311 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'],
'javascripts' => [$this, 'block_javascripts'],
];
}
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/show.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/show.html.twig"));
$this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "classroom/show.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 mar-bot30\">
";
// line 7
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 8
yield " <a class=\"btn btn-info\" href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_new");
yield "\">
<i class=\"fa fa-plus\"></i>
</a>
";
}
// line 18
yield " </div>
</div>
<div class=\"col-11 jumbotron\">
<article class=\"p-3\">
<table class=\"table table-hover record_properties center\">
<tbody>
<tr>
<th scope=\"row\">
Nom
</th>
<td>
";
// line 39
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 39, $this->source); })()), "name", [], "any", false, false, false, 39), "html", null, true);
yield "
</td>
</tr>
<tr>
<th scope=\"row\">
Niveau
</th>
<td>
";
// line 54
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 54, $this->source); })()), "level", [], "any", false, false, false, 54), "html", null, true);
yield "
</td>
</tr>
<tr>
<th scope=\"row\">
Titulaire
</th>
<td>
";
// line 69
if ((null === (isset($context["mainteacher"]) || array_key_exists("mainteacher", $context) ? $context["mainteacher"] : (function () { throw new RuntimeError('Variable "mainteacher" does not exist.', 69, $this->source); })()))) {
// line 70
yield "
";
} else {
// line 72
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["mainteacher"]) || array_key_exists("mainteacher", $context) ? $context["mainteacher"] : (function () { throw new RuntimeError('Variable "mainteacher" does not exist.', 72, $this->source); })()), "fullName", [], "any", false, false, false, 72), "html", null, true);
yield "
";
}
// line 74
yield "
</td>
</tr>
<tr>
<th scope=\"row\">
Classe d'examen
</th>
<td>
";
// line 88
if ((CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 88, $this->source); })()), "apc", [], "any", false, false, false, 88) == true)) {
// line 89
yield " OUI
\t\t\t\t\t\t\t\t
";
} else {
// line 99
yield " NON
\t\t\t\t\t\t\t\t
";
}
// line 109
yield " </td>
</tr>
</tbody>
</table>
<div class=\"btn-group record_actions\">
<a class=\"btn btn-info\" href=\"";
// line 116
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms");
yield "\">
<i class=\"fa fa-list\"></i>
";
// line 118
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Listing", [], "admin"), "html", null, true);
yield "
</a>
";
// line 120
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 121
yield " <a class=\"btn btn-primary\" 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, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 121, $this->source); })()), "id", [], "any", false, false, false, 121)]), "html", null, true);
yield "\">
<i class=\"fa fa-edit\"></i>
";
// line 123
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit", [], "admin"), "html", null, true);
yield "
</a>
<a target=\"_blank\" class=\"btn btn-file\" id=\"recap_seq\" data-toggle=\"modal\" data-target=\"#form_modal_courses\" data-action=\"";
// line 126
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_recapitulatif_seq", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 126, $this->source); })()), "id", [], "any", false, false, false, 126)]), "html", null, true);
yield "\">
<i class=\"fa fa-file-excel-o\"></i>
Recap. Seq
</a>
<a target=\"_blank\" class=\"btn btn-warning\" href=\"";
// line 131
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_reportcards_seq", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 131, $this->source); })()), "id", [], "any", false, false, false, 131)]), "html", null, true);
yield "\">
<i class=\"fa fa-file\"></i>
Bull Seq
</a>
<a target=\"_blank\" class=\"btn btn-file\"data-toggle=\"modal\" data-target=\"#form_modal_reportcard_params\">
<i class=\"fa fa-file\"></i>
Bull Trim
</a>
<a target=\"_blank\" class=\"btn btn-outline-warning\" id=\"recap_trim\" data-toggle=\"modal\" data-target=\"#form_modal_courses\" data-action=\"";
// line 149
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_recapitulatif_trim", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 149, $this->source); })()), "id", [], "any", false, false, false, 149)]), "html", null, true);
yield "\" >
<i class=\"fa fa-file-excel-o\"></i>
Recap Trim
</a>
<a target=\"_blank\" class=\"btn btn-file\" href=\"";
// line 154
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_class_reportcards_apc_year", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 154, $this->source); })()), "id", [], "any", false, false, false, 154)]), "html", null, true);
yield "\">
<i class=\"fa fa-file\"></i>
Bull Ann V1
</a>
<a target=\"_blank\" class=\"btn btn-file\" >
<i class=\"fa fa-file\"></i>
Bull Ann V2
</a>
<a target=\"_blank\" class=\"btn btn-light\" href=\"";
// line 178
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_current_fulfilled_eval_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 178, $this->source); })()), "id", [], "any", false, false, false, 178)]), "html", null, true);
yield "\">
<i class=\"fa fa-list-ul\"></i>
Dépot des PV
</a>
<button class=\"btn btn-danger\" type=\"submit\">
<i class=\"fa fa-trash-o\"></i>
";
// line 193
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Delete", [], "admin"), "html", null, true);
yield "
</button>
";
}
// line 196
yield " </div>
<div class=\"card-header text-center\">
<h2>
Liste des élèves incrits dans la classe
</h2>
</div>
<table class=\"table table-striped table-hover table-bordered records_list center\">
<thead>
<tr>
<th scope=\"col\">
Matricule
</th>
<th scope=\"col\">
Nom
</th>
<th scope=\"col\">
Prénom
</th>
<th scope=\"col\">
Photo
</th>
<th scope=\"col\">
Action
</th>
</tr>
</thead>
<tbody>
";
// line 266
$context["effectif"] = 0;
// line 267
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["studentEnrolled"]) || array_key_exists("studentEnrolled", $context) ? $context["studentEnrolled"] : (function () { throw new RuntimeError('Variable "studentEnrolled" does not exist.', 267, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["std"]) {
// line 268
yield " <tr>
<td>
<a href=\"";
// line 270
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_students_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["std"], "id", [], "any", false, false, false, 270)]), "html", null, true);
yield "\">
";
// line 271
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["std"], "matricule", [], "any", false, false, false, 271), "html", null, true);
yield "
</a>
</td>
<td>
";
// line 275
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["std"], "lastname", [], "any", false, false, false, 275), "html", null, true);
yield "
</td>
<td>
";
// line 278
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["std"], "firstname", [], "any", false, false, false, 278), "html", null, true);
yield "
</td>
<td>
";
// line 281
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["fileExists"]) || array_key_exists("fileExists", $context) ? $context["fileExists"] : (function () { throw new RuntimeError('Variable "fileExists" does not exist.', 281, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["std"], "id", [], "any", false, false, false, 281), [], "array", false, false, false, 281), "html", null, true);
yield "
</td>
<td>
";
// line 284
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 285
yield " <a class=\"btn btn-outline-danger\" href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_students_unregister", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["std"], "id", [], "any", false, false, false, 285), "room_id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 285, $this->source); })()), "id", [], "any", false, false, false, 285)]), "html", null, true);
yield "\">
<i class=\"fa fa-ban\"></i>
</a>
<a class=\"btn btn-outline-warning\" href=\"";
// line 288
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_students_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["std"], "id", [], "any", false, false, false, 288)]), "html", null, true);
yield "\">
<i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
</a>
";
}
// line 292
yield "
</td>
";
// line 294
$context["effectif"] = ((isset($context["effectif"]) || array_key_exists("effectif", $context) ? $context["effectif"] : (function () { throw new RuntimeError('Variable "effectif" does not exist.', 294, $this->source); })()) + 1);
// line 295
yield "
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['std'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 299
yield " <tr>
<td class=\"center\" colspan=\"2\">
Effectif
</td>
<td>
";
// line 311
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["effectif"]) || array_key_exists("effectif", $context) ? $context["effectif"] : (function () { throw new RuntimeError('Variable "effectif" does not exist.', 311, $this->source); })()), "html", null, true);
yield "
</td>
</tr>
</tbody>
</table>
<div class=\"card-header text-center\">
<h2>
Matières programmées dans la classe
</h2>
</div>
<table class=\"table table-striped table-hover table-bordered records_list center\">
<thead>
<tr>
<th scope=\"col\">
Module
</th>
<th scope=\"col\">
Code
</th>
<th scope=\"col\">
Intitulé
</th>
<th scope=\"col\">
Coef
</th>
<th scope=\"col\">
Enseignant
</th>
</tr>
</thead>
<tbody>
";
// line 388
$context["totalCoef"] = 0;
// line 389
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["modules"]) || array_key_exists("modules", $context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.', 389, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 390
yield " <tr>
";
// line 392
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["module"], "courses", [], "any", false, false, false, 392));
foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
// line 393
yield " <tr>
<td>
";
// line 395
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["module"], "name", [], "any", false, false, false, 395), "html", null, true);
yield "
</td>
<td>
<a href=\"";
// line 398
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, 398)]), "html", null, true);
yield "\">
";
// line 399
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "code", [], "any", false, false, false, 399), "html", null, true);
yield "
</a>
</td>
<td>
";
// line 404
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "wording", [], "any", false, false, false, 404), "html", null, true);
yield "
</td>
<td>
";
// line 407
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "coefficient", [], "any", false, false, false, 407), "html", null, true);
yield "
</td>
<td>
";
// line 411
if (CoreExtension::getAttribute($this->env, $this->source, ($context["attributions"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 411), [], "array", true, true, false, 411)) {
// line 412
yield " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 413
yield " <a href=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_attributions_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["attributions"]) || array_key_exists("attributions", $context) ? $context["attributions"] : (function () { throw new RuntimeError('Variable "attributions" does not exist.', 413, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 413), [], "array", false, false, false, 413), "id", [], "any", false, false, false, 413)]), "html", null, true);
yield "\">
";
// line 414
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["attributions"]) || array_key_exists("attributions", $context) ? $context["attributions"] : (function () { throw new RuntimeError('Variable "attributions" does not exist.', 414, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 414), [], "array", false, false, false, 414), "teacher", [], "any", false, false, false, 414), "fullName", [], "any", false, false, false, 414), "html", null, true);
yield "
</a>
";
} else {
// line 417
yield " ";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["attributions"]) || array_key_exists("attributions", $context) ? $context["attributions"] : (function () { throw new RuntimeError('Variable "attributions" does not exist.', 417, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 417), [], "array", false, false, false, 417), "teacher", [], "any", false, false, false, 417), "fullName", [], "any", false, false, false, 417), "html", null, true);
yield "
";
}
// line 419
yield " ";
} else {
// line 420
yield " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
// line 421
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_attributions_new");
yield "\">
Pas encore attribue
</a>
";
}
// line 425
yield " ";
}
// line 426
yield "
</td>
";
// line 428
$context["totalCoef"] = ((isset($context["totalCoef"]) || array_key_exists("totalCoef", $context) ? $context["totalCoef"] : (function () { throw new RuntimeError('Variable "totalCoef" does not exist.', 428, $this->source); })()) + CoreExtension::getAttribute($this->env, $this->source, $context["course"], "coefficient", [], "any", false, false, false, 428));
// line 429
yield " </tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['course'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 431
yield "
</tr>
<tr>
<td class=\"center\" colspan=\"3\">
total cumul coef
</td>
<td>
";
// line 445
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["totalCoef"]) || array_key_exists("totalCoef", $context) ? $context["totalCoef"] : (function () { throw new RuntimeError('Variable "totalCoef" does not exist.', 445, $this->source); })()), "html", null, true);
yield "
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 449
yield "
</tbody>
</table>
</article>
<section id=\"graphs\">
<article class=\"p-3\">
<canvas id=\"schoolPerformanceGraph\" width=\"700\" height=\"250\"></canvas>
</article>
";
// line 457
if (CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 457, $this->source); })()), "apc", [], "any", false, false, false, 457)) {
// line 458
yield " <article class=\"p-3\">
<canvas id=\"officialExamsGraph\" width=\"200\" height=\"220\" ></canvas>
</article>
";
}
// line 462
yield " </section>
</div>
</div>
<!-- Modal pour le choix de cours qui vont figurer dans le recaputulatif sequentiel -->
<div class=\"modal fade\" id=\"form_modal_courses\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header border-bottom-0\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">Choisir les cours a qui doivent figurer dans le recapitulatif</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<!-- href=\" -->
<form action=\"#\" method=\"post\">
<div class=\"modal-body\">
<div class=\"form-group\">
";
// line 479
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable((isset($context["modules"]) || array_key_exists("modules", $context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.', 479, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
// line 480
yield " ";
$context['_parent'] = $context;
$context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["module"], "courses", [], "any", false, false, false, 480));
foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
// line 481
yield " <li class=\"list-group-item\">
<input class=\"form-check-input me-1\" type=\"checkbox\" checked name=\"selected_courses[]\" value=";
// line 482
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 482), "html", null, true);
yield " >
";
// line 483
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "wording", [], "any", false, false, false, 483), "html", null, true);
yield "
</li>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['course'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 486
yield " ";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 487
yield " </div>
</div>
<div class=\"modal-footer border-top-0 d-flex justify-content-center\">
<button type=\"submit\" class=\"btn btn-success\">Submit</button>
</div>
</form>
</div>
</div>
</div>
<!-- Modal pour le parametrage de la presentation des bulletins. -->
<div class=\"modal fade\" id=\"form_modal_reportcard_params\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalRange\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header border-bottom-0\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">Reajuster les parametres de production des bulletins</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<form action=\"";
// line 507
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_reportcards_trim_2024", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["classroom"]) || array_key_exists("classroom", $context) ? $context["classroom"] : (function () { throw new RuntimeError('Variable "classroom" does not exist.', 507, $this->source); })()), "id", [], "any", false, false, false, 507)]), "html", null, true);
yield "\" method=\"post\">
<div class=\"modal-body\">
<div class=\"form-group\">
<label for=\"header_font_size\">Taille de des caracteres dans l entete</label>
<input type=\"range\" class=\"form-control\" name=\"header_font_size\" id=\"header_font_size\" min=\"1\" max=\"1.6\" step=\"0.01\">
</div>
<div class=\"form-group\">
<label for=\"line_height\">Hauteur des lignes dans le tableau</label>
<input type=\"range\" class=\"form-control\" name=\"line_height\" id=\"line_height\" min=\"0.5\" max=\"1.5\" step=\"0.01\">
</div>
<div class=\"form-check\">
<input class=\"form-check-input\" type=\"checkbox\" id=\"copyright\" name=\"copyright\">
<label class=\"form-check-label\" for=\"copyright\">
Ajout du copyright en pied du bulletin?
</label>
</div>
<div class=\"form-check\">
<input class=\"form-check-input\" type=\"checkbox\" id=\"reverse\" name=\"reverse\">
<label class=\"form-check-label\" for=\"reverse\">
Sens inverse
</label>
</div>
</div>
<div class=\"modal-footer border-top-0 d-flex justify-content-center\">
<button type=\"submit\" class=\"btn btn-success\">Submit</button>
</div>
</form>
</div>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 539
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_javascripts(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", "javascripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 540
yield " ";
yield from $this->yieldParentBlock("javascripts", $context, $blocks);
yield "
<script type=\"text/javascript\">
// Attendre que le DOM soit complètement chargé
\$(document).ready(function() {
// Quand le modal est ouvert
\$('#form_modal_courses').on('show.bs.modal', function(event) {
// Récupérer l'élément qui a déclenché l'ouverture du modal
var button = \$(event.relatedTarget);
// Récupérer l'URL dynamique depuis l'attribut \"data-action\"
var actionUrl = button.data('action');
// Mettre à jour l'attribut \"action\" du formulaire
\$('#form_modal_courses form').attr('action', actionUrl);
});
});
</script>
<script type=\"text/javascript\">
const schoolPerformanceGraph = \$(\"#schoolPerformanceGraph\");
const datasets = [];
//Generate a random color
const randomRgbColor = () => {
let r = Math.floor(Math.random() * 256); // Random between 0-255
let g = Math.floor(Math.random() * 256); // Random between 0-255
let b = Math.floor(Math.random() * 256); // Random between 0-255
return 'rgb(' + r + ',' + g + ',' + b + ')';
};
";
// line 571
if (array_key_exists("session1", $context)) {
// line 572
yield " datasets.push( {
label: \"Session 1\",
data : ";
// line 574
yield (isset($context["session1"]) || array_key_exists("session1", $context) ? $context["session1"] : (function () { throw new RuntimeError('Variable "session1" does not exist.', 574, $this->source); })());
yield ",
fill : false,
backgroundColor: randomRgbColor()
} )
";
}
// line 579
yield " ";
if (array_key_exists("session2", $context)) {
// line 580
yield " datasets.push( {
label: \"Session 2\",
data : ";
// line 582
yield (isset($context["session2"]) || array_key_exists("session2", $context) ? $context["session2"] : (function () { throw new RuntimeError('Variable "session2" does not exist.', 582, $this->source); })());
yield ",
fill : false,
backgroundColor: randomRgbColor()
} )
";
}
// line 587
yield " ";
if (array_key_exists("session3", $context)) {
// line 588
yield " datasets.push( {
label: \"Session 3\",
data : ";
// line 590
yield (isset($context["session3"]) || array_key_exists("session3", $context) ? $context["session3"] : (function () { throw new RuntimeError('Variable "session3" does not exist.', 590, $this->source); })());
yield ",
fill : false,
backgroundColor: randomRgbColor()
} )
";
}
// line 595
yield " ";
if (array_key_exists("session4", $context)) {
// line 596
yield " datasets.push( {
label: \"Session 4\",
data : ";
// line 598
yield (isset($context["session4"]) || array_key_exists("session4", $context) ? $context["session4"] : (function () { throw new RuntimeError('Variable "session4" does not exist.', 598, $this->source); })());
yield ",
fill : false,
backgroundColor: randomRgbColor()
} )
";
}
// line 603
yield " ";
if (array_key_exists("session5", $context)) {
// line 604
yield " datasets.push( {
label: \"Session 5\",
data : ";
// line 606
yield (isset($context["session5"]) || array_key_exists("session5", $context) ? $context["session5"] : (function () { throw new RuntimeError('Variable "session5" does not exist.', 606, $this->source); })());
yield ",
fill : false,
backgroundColor: randomRgbColor()
} )
";
}
// line 611
yield " ";
if (array_key_exists("session6", $context)) {
// line 612
yield " datasets.push( {
label: \"Session 6\",
data : ";
// line 614
yield (isset($context["session6"]) || array_key_exists("session6", $context) ? $context["session6"] : (function () { throw new RuntimeError('Variable "session6" does not exist.', 614, $this->source); })());
yield ",
fill : false,
backgroundColor: randomRgbColor()
} )
";
}
// line 619
yield "
let graph = new Chart(schoolPerformanceGraph, {
type:\"bar\",
data : {
labels: ";
// line 630
yield (isset($context["cours"]) || array_key_exists("cours", $context) ? $context["cours"] : (function () { throw new RuntimeError('Variable "cours" does not exist.', 630, $this->source); })());
yield ",
datasets: datasets,
},
options: {
plugins: {
title: {
display: true,
text: 'Performances generales annuelles ',
font: {
size: 24,
style: 'bold',
family: 'Helvetica Neue',
},
position: 'bottom',
}
}
}
});
// Get the chart element for student category
let studentCategoryChartElement = document.querySelector(\"#studentCategoryChart\");
// Create the chart for student category
let studentCategoryChart = new Chart(studentCategoryChartElement, {
type: \"pie\",
data: {
labels: [\"Passed\", \"Failed\"],
datasets: [{
data: [/* Add data here for the number of students passed and failed */],
backgroundColor: [\"green\", \"red\"]
}]
}
});
// Get the chart element for mention category
let officialExamsGraph = document.querySelector(\"#officialExamsGraph\");
// Create the chart for mention category
const colors = [];
const mentionCountCategories = ";
// line 672
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["mentionCountCategories"]) || array_key_exists("mentionCountCategories", $context) ? $context["mentionCountCategories"] : (function () { throw new RuntimeError('Variable "mentionCountCategories" does not exist.', 672, $this->source); })()), "html", null, true);
yield ";
mentionCountCategories.map(cat => {
colors.push(randomRgbColor());
})
let officialExamsChart = new Chart(officialExamsGraph, {
type: \"pie\",
data: {
labels: ";
// line 679
yield (isset($context["mentionCategories"]) || array_key_exists("mentionCategories", $context) ? $context["mentionCategories"] : (function () { throw new RuntimeError('Variable "mentionCategories" does not exist.', 679, $this->source); })());
yield ",
datasets: [{
data: ";
// line 681
yield (isset($context["mentionCountCategories"]) || array_key_exists("mentionCountCategories", $context) ? $context["mentionCountCategories"] : (function () { throw new RuntimeError('Variable "mentionCountCategories" does not exist.', 681, $this->source); })());
yield ",
backgroundColor: colors
}]
},
options: {
plugins: {
title: {
display: true,
text: 'Resultats aux examens officiels ',
font: {
size: 24,
style: 'bold',
family: 'Helvetica Neue',
},
position: 'bottom',
}
}
}
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "classroom/show.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
return array ( 1040 => 681, 1035 => 679, 1025 => 672, 980 => 630, 967 => 619, 959 => 614, 955 => 612, 952 => 611, 944 => 606, 940 => 604, 937 => 603, 929 => 598, 925 => 596, 922 => 595, 914 => 590, 910 => 588, 907 => 587, 899 => 582, 895 => 580, 892 => 579, 884 => 574, 880 => 572, 878 => 571, 843 => 540, 830 => 539, 787 => 507, 765 => 487, 759 => 486, 750 => 483, 746 => 482, 743 => 481, 738 => 480, 734 => 479, 715 => 462, 709 => 458, 707 => 457, 697 => 449, 687 => 445, 671 => 431, 664 => 429, 662 => 428, 658 => 426, 655 => 425, 647 => 421, 644 => 420, 641 => 419, 635 => 417, 629 => 414, 624 => 413, 621 => 412, 619 => 411, 612 => 407, 606 => 404, 598 => 399, 594 => 398, 588 => 395, 584 => 393, 580 => 392, 576 => 390, 571 => 389, 569 => 388, 489 => 311, 475 => 299, 466 => 295, 464 => 294, 460 => 292, 453 => 288, 446 => 285, 444 => 284, 438 => 281, 432 => 278, 426 => 275, 419 => 271, 415 => 270, 411 => 268, 406 => 267, 404 => 266, 332 => 196, 326 => 193, 308 => 178, 281 => 154, 273 => 149, 252 => 131, 244 => 126, 238 => 123, 232 => 121, 230 => 120, 225 => 118, 220 => 116, 211 => 109, 199 => 99, 187 => 89, 185 => 88, 169 => 74, 163 => 72, 159 => 70, 157 => 69, 139 => 54, 121 => 39, 98 => 18, 84 => 8, 82 => 7, 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 mar-bot30\">
{% if is_granted('ROLE_ADMIN') %}
<a class=\"btn btn-info\" href=\"{{ path('admin_classrooms_new') }}\">
<i class=\"fa fa-plus\"></i>
</a>
{% endif %}
</div>
</div>
<div class=\"col-11 jumbotron\">
<article class=\"p-3\">
<table class=\"table table-hover record_properties center\">
<tbody>
<tr>
<th scope=\"row\">
Nom
</th>
<td>
{{ classroom.name }}
</td>
</tr>
<tr>
<th scope=\"row\">
Niveau
</th>
<td>
{{ classroom.level }}
</td>
</tr>
<tr>
<th scope=\"row\">
Titulaire
</th>
<td>
{% if mainteacher is null %}
{% else %}
{{mainteacher.fullName}}
{% endif %}
</td>
</tr>
<tr>
<th scope=\"row\">
Classe d'examen
</th>
<td>
{% if (classroom.apc == true) %}
OUI
\t\t\t\t\t\t\t\t
{% else %}
NON
\t\t\t\t\t\t\t\t
{% endif %}
</td>
</tr>
</tbody>
</table>
<div class=\"btn-group record_actions\">
<a class=\"btn btn-info\" href=\"{{ path('admin_classrooms') }}\">
<i class=\"fa fa-list\"></i>
{{ 'Listing'|trans({}, 'admin') }}
</a>
{% if is_granted('ROLE_ADMIN') %}
<a class=\"btn btn-primary\" href=\"{{ path('admin_classrooms_edit', {id: classroom.id}) }}\">
<i class=\"fa fa-edit\"></i>
{{ 'Edit'|trans({}, 'admin') }}
</a>
<a target=\"_blank\" class=\"btn btn-file\" id=\"recap_seq\" data-toggle=\"modal\" data-target=\"#form_modal_courses\" data-action=\"{{ path('admin_classrooms_recapitulatif_seq', {'id':classroom.id}) }}\">
<i class=\"fa fa-file-excel-o\"></i>
Recap. Seq
</a>
<a target=\"_blank\" class=\"btn btn-warning\" href=\"{{ path('admin_classrooms_reportcards_seq', {id: classroom.id}) }}\">
<i class=\"fa fa-file\"></i>
Bull Seq
</a>
<a target=\"_blank\" class=\"btn btn-file\"data-toggle=\"modal\" data-target=\"#form_modal_reportcard_params\">
<i class=\"fa fa-file\"></i>
Bull Trim
</a>
<a target=\"_blank\" class=\"btn btn-outline-warning\" id=\"recap_trim\" data-toggle=\"modal\" data-target=\"#form_modal_courses\" data-action=\"{{ path('admin_classrooms_recapitulatif_trim', {id: classroom.id}) }}\" >
<i class=\"fa fa-file-excel-o\"></i>
Recap Trim
</a>
<a target=\"_blank\" class=\"btn btn-file\" href=\"{{ path('admin_class_reportcards_apc_year', {id: classroom.id}) }}\">
<i class=\"fa fa-file\"></i>
Bull Ann V1
</a>
<a target=\"_blank\" class=\"btn btn-file\" >
<i class=\"fa fa-file\"></i>
Bull Ann V2
</a>
<a target=\"_blank\" class=\"btn btn-light\" href=\"{{ path('admin_current_fulfilled_eval_show', {id: classroom.id}) }}\">
<i class=\"fa fa-list-ul\"></i>
Dépot des PV
</a>
<button class=\"btn btn-danger\" type=\"submit\">
<i class=\"fa fa-trash-o\"></i>
{{ 'Delete'|trans({}, 'admin') }}
</button>
{% endif %}
</div>
<div class=\"card-header text-center\">
<h2>
Liste des élèves incrits dans la classe
</h2>
</div>
<table class=\"table table-striped table-hover table-bordered records_list center\">
<thead>
<tr>
<th scope=\"col\">
Matricule
</th>
<th scope=\"col\">
Nom
</th>
<th scope=\"col\">
Prénom
</th>
<th scope=\"col\">
Photo
</th>
<th scope=\"col\">
Action
</th>
</tr>
</thead>
<tbody>
{% set effectif =0 %}
{% for std in studentEnrolled %}
<tr>
<td>
<a href=\"{{ path('admin_students_show', {id: std.id}) }}\">
{{ std.matricule }}
</a>
</td>
<td>
{{ std.lastname }}
</td>
<td>
{{ std.firstname }}
</td>
<td>
{{ fileExists[std.id] }}
</td>
<td>
{% if is_granted('ROLE_ADMIN') %}
<a class=\"btn btn-outline-danger\" href=\"{{ path('admin_students_unregister', {id: std.id, room_id:classroom.id}) }}\">
<i class=\"fa fa-ban\"></i>
</a>
<a class=\"btn btn-outline-warning\" href=\"{{ path('admin_students_edit', {id: std.id}) }}\">
<i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
</a>
{% endif %}
</td>
{% set effectif = effectif + 1 %}
</tr>
{% endfor %}
<tr>
<td class=\"center\" colspan=\"2\">
Effectif
</td>
<td>
{{ effectif }}
</td>
</tr>
</tbody>
</table>
<div class=\"card-header text-center\">
<h2>
Matières programmées dans la classe
</h2>
</div>
<table class=\"table table-striped table-hover table-bordered records_list center\">
<thead>
<tr>
<th scope=\"col\">
Module
</th>
<th scope=\"col\">
Code
</th>
<th scope=\"col\">
Intitulé
</th>
<th scope=\"col\">
Coef
</th>
<th scope=\"col\">
Enseignant
</th>
</tr>
</thead>
<tbody>
{% set totalCoef =0 %}
{% for module in modules %}
<tr>
{% for course in module.courses %}
<tr>
<td>
{{ module.name }}
</td>
<td>
<a href=\"{{ path('admin_courses_show', {id: course.id}) }}\">
{{ course.code }}
</a>
</td>
<td>
{{ course.wording }}
</td>
<td>
{{ course.coefficient }}
</td>
<td>
{% if attributions[course.id] is defined %}
{% if is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('admin_attributions_edit', {id: attributions[course.id].id}) }}\">
{{attributions[course.id].teacher.fullName}}
</a>
{% else %}
{{attributions[course.id].teacher.fullName}}
{% endif %}
{% else %}
{% if is_granted('ROLE_ADMIN') %}
<a href=\"{{ path('admin_attributions_new') }}\">
Pas encore attribue
</a>
{% endif %}
{% endif %}
</td>
{% set totalCoef = totalCoef+course.coefficient %}
</tr>
{% endfor %}
</tr>
<tr>
<td class=\"center\" colspan=\"3\">
total cumul coef
</td>
<td>
{{ totalCoef }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</article>
<section id=\"graphs\">
<article class=\"p-3\">
<canvas id=\"schoolPerformanceGraph\" width=\"700\" height=\"250\"></canvas>
</article>
{% if classroom.apc %}
<article class=\"p-3\">
<canvas id=\"officialExamsGraph\" width=\"200\" height=\"220\" ></canvas>
</article>
{% endif %}
</section>
</div>
</div>
<!-- Modal pour le choix de cours qui vont figurer dans le recaputulatif sequentiel -->
<div class=\"modal fade\" id=\"form_modal_courses\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header border-bottom-0\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">Choisir les cours a qui doivent figurer dans le recapitulatif</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<!-- href=\" -->
<form action=\"#\" method=\"post\">
<div class=\"modal-body\">
<div class=\"form-group\">
{% for module in modules %}
{% for course in module.courses %}
<li class=\"list-group-item\">
<input class=\"form-check-input me-1\" type=\"checkbox\" checked name=\"selected_courses[]\" value={{course.id}} >
{{course.wording}}
</li>
{% endfor %}
{% endfor %}
</div>
</div>
<div class=\"modal-footer border-top-0 d-flex justify-content-center\">
<button type=\"submit\" class=\"btn btn-success\">Submit</button>
</div>
</form>
</div>
</div>
</div>
<!-- Modal pour le parametrage de la presentation des bulletins. -->
<div class=\"modal fade\" id=\"form_modal_reportcard_params\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalRange\" aria-hidden=\"true\">
<div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
<div class=\"modal-content\">
<div class=\"modal-header border-bottom-0\">
<h5 class=\"modal-title\" id=\"exampleModalLabel\">Reajuster les parametres de production des bulletins</h5>
<button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
<span aria-hidden=\"true\">×</span>
</button>
</div>
<form action=\"{{ path('admin_classrooms_reportcards_trim_2024', {'id':classroom.id}) }}\" method=\"post\">
<div class=\"modal-body\">
<div class=\"form-group\">
<label for=\"header_font_size\">Taille de des caracteres dans l entete</label>
<input type=\"range\" class=\"form-control\" name=\"header_font_size\" id=\"header_font_size\" min=\"1\" max=\"1.6\" step=\"0.01\">
</div>
<div class=\"form-group\">
<label for=\"line_height\">Hauteur des lignes dans le tableau</label>
<input type=\"range\" class=\"form-control\" name=\"line_height\" id=\"line_height\" min=\"0.5\" max=\"1.5\" step=\"0.01\">
</div>
<div class=\"form-check\">
<input class=\"form-check-input\" type=\"checkbox\" id=\"copyright\" name=\"copyright\">
<label class=\"form-check-label\" for=\"copyright\">
Ajout du copyright en pied du bulletin?
</label>
</div>
<div class=\"form-check\">
<input class=\"form-check-input\" type=\"checkbox\" id=\"reverse\" name=\"reverse\">
<label class=\"form-check-label\" for=\"reverse\">
Sens inverse
</label>
</div>
</div>
<div class=\"modal-footer border-top-0 d-flex justify-content-center\">
<button type=\"submit\" class=\"btn btn-success\">Submit</button>
</div>
</form>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type=\"text/javascript\">
// Attendre que le DOM soit complètement chargé
\$(document).ready(function() {
// Quand le modal est ouvert
\$('#form_modal_courses').on('show.bs.modal', function(event) {
// Récupérer l'élément qui a déclenché l'ouverture du modal
var button = \$(event.relatedTarget);
// Récupérer l'URL dynamique depuis l'attribut \"data-action\"
var actionUrl = button.data('action');
// Mettre à jour l'attribut \"action\" du formulaire
\$('#form_modal_courses form').attr('action', actionUrl);
});
});
</script>
<script type=\"text/javascript\">
const schoolPerformanceGraph = \$(\"#schoolPerformanceGraph\");
const datasets = [];
//Generate a random color
const randomRgbColor = () => {
let r = Math.floor(Math.random() * 256); // Random between 0-255
let g = Math.floor(Math.random() * 256); // Random between 0-255
let b = Math.floor(Math.random() * 256); // Random between 0-255
return 'rgb(' + r + ',' + g + ',' + b + ')';
};
{% if session1 is defined %}
datasets.push( {
label: \"Session 1\",
data : {{session1|raw}},
fill : false,
backgroundColor: randomRgbColor()
} )
{% endif %}
{% if session2 is defined %}
datasets.push( {
label: \"Session 2\",
data : {{session2|raw}},
fill : false,
backgroundColor: randomRgbColor()
} )
{% endif %}
{% if session3 is defined %}
datasets.push( {
label: \"Session 3\",
data : {{session3|raw}},
fill : false,
backgroundColor: randomRgbColor()
} )
{% endif %}
{% if session4 is defined %}
datasets.push( {
label: \"Session 4\",
data : {{session4|raw}},
fill : false,
backgroundColor: randomRgbColor()
} )
{% endif %}
{% if session5 is defined %}
datasets.push( {
label: \"Session 5\",
data : {{session5|raw}},
fill : false,
backgroundColor: randomRgbColor()
} )
{% endif %}
{% if session6 is defined %}
datasets.push( {
label: \"Session 6\",
data : {{session6|raw}},
fill : false,
backgroundColor: randomRgbColor()
} )
{% endif %}
let graph = new Chart(schoolPerformanceGraph, {
type:\"bar\",
data : {
labels: {{ cours|raw }},
datasets: datasets,
},
options: {
plugins: {
title: {
display: true,
text: 'Performances generales annuelles ',
font: {
size: 24,
style: 'bold',
family: 'Helvetica Neue',
},
position: 'bottom',
}
}
}
});
// Get the chart element for student category
let studentCategoryChartElement = document.querySelector(\"#studentCategoryChart\");
// Create the chart for student category
let studentCategoryChart = new Chart(studentCategoryChartElement, {
type: \"pie\",
data: {
labels: [\"Passed\", \"Failed\"],
datasets: [{
data: [/* Add data here for the number of students passed and failed */],
backgroundColor: [\"green\", \"red\"]
}]
}
});
// Get the chart element for mention category
let officialExamsGraph = document.querySelector(\"#officialExamsGraph\");
// Create the chart for mention category
const colors = [];
const mentionCountCategories = {{mentionCountCategories}};
mentionCountCategories.map(cat => {
colors.push(randomRgbColor());
})
let officialExamsChart = new Chart(officialExamsGraph, {
type: \"pie\",
data: {
labels: {{ mentionCategories|raw }},
datasets: [{
data: {{mentionCountCategories|raw}},
backgroundColor: colors
}]
},
options: {
plugins: {
title: {
display: true,
text: 'Resultats aux examens officiels ',
font: {
size: 24,
style: 'bold',
family: 'Helvetica Neue',
},
position: 'bottom',
}
}
}
});
</script>
{% endblock %}
", "classroom/show.html.twig", "/var/www/prod/current/templates/classroom/show.html.twig");
}
}