var/cache/dev/twig/c8/c84ea71f2c22e94b038980904b8040ed.php line 54

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* classroom/show.html.twig */
  16. class __TwigTemplate_20b837fda154308a57de8bf7077a8921 extends Template
  17. {
  18.     private Source $source;
  19.     /**
  20.      * @var array<string, Template>
  21.      */
  22.     private array $macros = [];
  23.     public function __construct(Environment $env)
  24.     {
  25.         parent::__construct($env);
  26.         $this->source $this->getSourceContext();
  27.         $this->blocks = [
  28.             'content' => [$this'block_content'],
  29.             'javascripts' => [$this'block_javascripts'],
  30.         ];
  31.     }
  32.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33.     {
  34.         // line 1
  35.         return "layout/backEndLayout.html.twig";
  36.     }
  37.     protected function doDisplay(array $context, array $blocks = []): iterable
  38.     {
  39.         $macros $this->macros;
  40.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""classroom/show.html.twig"));
  42.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""classroom/show.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/backEndLayout.html.twig""classroom/show.html.twig"1);
  45.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  46.         
  47.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48.         
  49.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50.     }
  51.     // line 3
  52.     /**
  53.      * @return iterable<null|scalar|\Stringable>
  54.      */
  55.     public function block_content(array $context, array $blocks = []): iterable
  56.     {
  57.         $macros $this->macros;
  58.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  59.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  60.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  61.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  62.         // line 4
  63.         yield "
  64.     <div class=\"row mt-4\">
  65.         <div class=\"col-1 mar-bot30\">
  66.           ";
  67.         // line 7
  68.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  69.             // line 8
  70.             yield "            <a class=\"btn btn-info\" href=\"";
  71.             yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_new");
  72.             yield "\">
  73.                 <i class=\"fa fa-plus\"></i>
  74.                 
  75.                                                                                                                                                 
  76.                                                                                                                             
  77.                                                                                                             
  78.                                                                                             
  79.      
  80.             </a>
  81.             ";
  82.         }
  83.         // line 18
  84.         yield "        </div>
  85.           
  86.           
  87.         </div>
  88.         <div class=\"col-11 jumbotron\">
  89.             <article class=\"p-3\">
  90.                 <table class=\"table table-hover record_properties center\">
  91.                     <tbody>
  92.                         <tr>
  93.                             <th scope=\"row\">
  94.                                 Nom
  95.                                                                                                                                                                                                                                                             
  96.                                                                                                                                                                                                                             
  97.                                                                                                                                                                                             
  98.                                                                                                                                                             
  99.                                                                                                                             
  100.                                                                                             
  101.                                                             
  102.                             </th>
  103.                             <td>
  104.                                 ";
  105.         // line 39
  106.         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"falsefalsefalse39), "html"nulltrue);
  107.         yield "
  108.                             </td>
  109.                         </tr>
  110.                         <tr>
  111.                             <th scope=\"row\">
  112.                                 Niveau
  113.                                                                                                                                                                                                                                                             
  114.                                                                                                                                                                                                                             
  115.                                                                                                                                                                                             
  116.                                                                                                                                                             
  117.                                                                                                                             
  118.                                                                                             
  119.                                                             
  120.                             </th>
  121.                             <td>
  122.                                 ";
  123.         // line 54
  124.         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"falsefalsefalse54), "html"nulltrue);
  125.         yield "
  126.                             </td>
  127.                         </tr>
  128.                         <tr>
  129.                             <th scope=\"row\">
  130.                                 Titulaire
  131.                                                                                                                                                                                                                                                             
  132.                                                                                                                                                                                                                             
  133.                                                                                                                                                                                             
  134.                                                                                                                                                             
  135.                                                                                                                             
  136.                                                                                             
  137.                                                             
  138.                             </th>
  139.                             <td>
  140.                                 ";
  141.         // line 69
  142.         if ((null === (isset($context["mainteacher"]) || array_key_exists("mainteacher"$context) ? $context["mainteacher"] : (function () { throw new RuntimeError('Variable "mainteacher" does not exist.'69$this->source); })()))) {
  143.             // line 70
  144.             yield "                                    
  145.                                     ";
  146.         } else {
  147.             // line 72
  148.             yield "                                      ";
  149.             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"falsefalsefalse72), "html"nulltrue);
  150.             yield "
  151.                                 ";
  152.         }
  153.         // line 74
  154.         yield "                             
  155.                             </td>
  156.                         </tr>
  157.                         <tr>
  158.                             <th scope=\"row\">
  159.                                 Classe d'examen                                                                                                                                                                                                                                                             
  160.                                                                                                                                                                                                                             
  161.                                                                                                                                                                                             
  162.                                                                                                                                                             
  163.                                                                                                                             
  164.                                                                                             
  165.                                                             
  166.                             </th>
  167.                             <td>
  168.                                 ";
  169.         // line 88
  170.         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"falsefalsefalse88) == true)) {
  171.             // line 89
  172.             yield "                                    OUI
  173.                                                                                                                                                                                                                                                                                                 \t\t\t\t\t\t\t\t
  174.                                                                                                                                                                                                                                                                                             
  175.                                                                                                                                                                                                                                                         
  176.                                                                                                                                                                                                                     
  177.                                                                                                                                                                                 
  178.                                                                                                                                             
  179.                                                                                                         
  180.                                                                     
  181.                                 ";
  182.         } else {
  183.             // line 99
  184.             yield "                                    NON
  185.                                                                                                                                                                                                                                                                                                 \t\t\t\t\t\t\t\t
  186.                                                                                                                                                                                                                                                                                             
  187.                                                                                                                                                                                                                                                         
  188.                                                                                                                                                                                                                     
  189.                                                                                                                                                                                 
  190.                                                                                                                                             
  191.                                                                                                         
  192.                                                                     
  193.                                 ";
  194.         }
  195.         // line 109
  196.         yield "                            </td>
  197.                         </tr>
  198.                     </tbody>
  199.                 </table>
  200.                 <div class=\"btn-group record_actions\">
  201.                     <a class=\"btn btn-info\" href=\"";
  202.         // line 116
  203.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms");
  204.         yield "\">
  205.                         <i class=\"fa fa-list\"></i>
  206.                         ";
  207.         // line 118
  208.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Listing", [], "admin"), "html"nulltrue);
  209.         yield "
  210.                     </a>
  211.                     ";
  212.         // line 120
  213.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  214.             // line 121
  215.             yield "                        <a class=\"btn btn-primary\" href=\"";
  216.             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"falsefalsefalse121)]), "html"nulltrue);
  217.             yield "\">
  218.                             <i class=\"fa fa-edit\"></i>
  219.                             ";
  220.             // line 123
  221.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Edit", [], "admin"), "html"nulltrue);
  222.             yield "
  223.                         </a>
  224.                 
  225.                     <a target=\"_blank\" class=\"btn btn-file\"  data-toggle=\"modal\" data-target=\"#form_modal_courses\" >
  226.                         <i class=\"fa fa-file-excel-o\"></i>
  227.                         Recap. Seq
  228.                                                                                                                                                                                                                     
  229.                                                                                                                                                                                             
  230.                                                                                                                                                                     
  231.                                                                                                                                             
  232.                                                                                                                     
  233.                                                                                             
  234.                                                                     
  235.                                             
  236.                     </a>
  237.                     <a target=\"_blank\" class=\"btn btn-warning\" href=\"";
  238.             // line 138
  239.             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.'138$this->source); })()), "id", [], "any"falsefalsefalse138)]), "html"nulltrue);
  240.             yield "\">
  241.                         <i class=\"fa fa-file\"></i>
  242.                         Bull Seq
  243.                                                                                                                                                                                                                     
  244.                                                                                                                                                                                             
  245.                                                                                                                                                                     
  246.                                                                                                                                             
  247.                                                                                                                     
  248.                                                                                             
  249.                                                                     
  250.                                             
  251.                     </a>
  252.                     <a  target=\"_blank\" class=\"btn btn-file\" href=\"";
  253.             // line 151
  254.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_reportcards_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.'151$this->source); })()), "id", [], "any"falsefalsefalse151)]), "html"nulltrue);
  255.             yield "\">
  256.                         <i class=\"fa fa-file\"></i>
  257.                         Bull Trim
  258.                                                                                                                                                                                                                     
  259.                                                                                                                                                                                             
  260.                                                                                                                                                                     
  261.                                                                                                                                             
  262.                                                                                                                     
  263.                                                                                             
  264.                                                                     
  265.                                             
  266.                     </a>
  267.                     <a target=\"_blank\" class=\"btn btn-outline-warning\" href=\"";
  268.             // line 163
  269.             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.'163$this->source); })()), "id", [], "any"falsefalsefalse163)]), "html"nulltrue);
  270.             yield "\">
  271.                         <i class=\"fa fa-file-excel-o\"></i>
  272.                         Recap Trim
  273.                                                                                                                                                                                                                     
  274.                                                                                                                                                                                             
  275.                                                                                                                                                                     
  276.                                                                                                                                             
  277.                                                                                                                     
  278.                                                                                             
  279.                                                                     
  280.                                             
  281.                     </a>
  282.                     <a  target=\"_blank\" class=\"btn btn-file\" href=\"";
  283.             // line 175
  284.             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.'175$this->source); })()), "id", [], "any"falsefalsefalse175)]), "html"nulltrue);
  285.             yield "\">
  286.                         <i class=\"fa fa-file\"></i>
  287.                         Bull Ann V1
  288.                                                                                                                                                                                                                     
  289.                                                                                                                                                                                             
  290.                                                                                                                                                                     
  291.                                                                                                                                             
  292.                                                                                                                     
  293.                                                                                             
  294.                                                                     
  295.                                             
  296.                     </a>
  297.                     <a target=\"_blank\" class=\"btn btn-file\" data-toggle=\"modal\" data-target=\"#form_modal_reportcard_params\" >
  298.                         <i class=\"fa fa-file\"></i>
  299.                         Bull Ann V2
  300.                                                                                                                                                                                                                     
  301.                                                                                                                                                                                             
  302.                                                                                                                                                                     
  303.                                                                                                                                             
  304.                                                                                                                     
  305.                                                                                             
  306.                                                                     
  307.                                             
  308.                     </a>
  309.                     <a  target=\"_blank\" class=\"btn btn-light\" href=\"";
  310.             // line 199
  311.             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.'199$this->source); })()), "id", [], "any"falsefalsefalse199)]), "html"nulltrue);
  312.             yield "\">
  313.                         <i class=\"fa fa-list-ul\"></i>
  314.                         Dépot des PV
  315.                                                                                                                                                                                                                     
  316.                                                                                                                                                                                             
  317.                                                                                                                                                                     
  318.                                                                                                                                             
  319.                                                                                                                     
  320.                                                                                             
  321.                                                                     
  322.                                             
  323.                     </a>
  324.                     
  325.                         <button class=\"btn btn-danger\" type=\"submit\">
  326.                             <i class=\"fa fa-trash-o\"></i>
  327.                             ";
  328.             // line 214
  329.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Delete", [], "admin"), "html"nulltrue);
  330.             yield "
  331.                         </button>
  332.                     ";
  333.         }
  334.         // line 217
  335.         yield "                </div>
  336.                 <div class=\"card-header text-center\">
  337.                     <h2>
  338.                         Liste des Ã©lèves incrits dans la classe 
  339.                                                                                                                                                                                             
  340.                                                                                                                                                                     
  341.                                                                                                                                             
  342.                                                                                                                     
  343.                                                                                             
  344.                                                                     
  345.                                             
  346.                     </h2>
  347.                 </div>
  348.                 <table class=\"table table-striped table-hover table-bordered records_list center\">
  349.                     <thead>
  350.                         <tr>
  351.                             <th scope=\"col\">
  352.                                 Matricule
  353.                                                                                                                                                                                                                                                             
  354.                                                                                                                                                                                                                             
  355.                                                                                                                                                                                             
  356.                                                                                                                                                             
  357.                                                                                                                             
  358.                                                                                             
  359.                                                             
  360.                             </th>
  361.                             <th scope=\"col\">
  362.                                 Nom
  363.                                                                                                                                                                                                                                                             
  364.                                                                                                                                                                                                                             
  365.                                                                                                                                                                                             
  366.                                                                                                                                                             
  367.                                                                                                                             
  368.                                                                                             
  369.                                                             
  370.                             </th>
  371.                             <th scope=\"col\">
  372.                                 Prénom
  373.                                                                                                                                                                                                                                                             
  374.                                                                                                                                                                                                                             
  375.                                                                                                                                                                                             
  376.                                                                                                                                                             
  377.                                                                                                                             
  378.                                                                                             
  379.                                                             
  380.                             </th>
  381.                             <th scope=\"col\">
  382.                                 Photo
  383.                                                                                                                                                                                                                                                             
  384.                                                                                                                                                                                                                             
  385.                                                                                                                                                                                             
  386.                                                                                                                                                             
  387.                                                                                                                             
  388.                                                                                             
  389.                                                             
  390.                             </th>
  391.                         </tr>
  392.                     </thead>
  393.                     <tbody>
  394.                         ";
  395.         // line 277
  396.         $context["effectif"] = 0;
  397.         // line 278
  398.         yield "                        ";
  399.         $context['_parent'] = $context;
  400.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["studentEnrolled"]) || array_key_exists("studentEnrolled"$context) ? $context["studentEnrolled"] : (function () { throw new RuntimeError('Variable "studentEnrolled" does not exist.'278$this->source); })()));
  401.         foreach ($context['_seq'] as $context["_key"] => $context["std"]) {
  402.             // line 279
  403.             yield "                            <tr>
  404.                                 <td>
  405.                                     <a href=\"";
  406.             // line 281
  407.             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"falsefalsefalse281)]), "html"nulltrue);
  408.             yield "\">
  409.                                         ";
  410.             // line 282
  411.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["std"], "matricule", [], "any"falsefalsefalse282), "html"nulltrue);
  412.             yield "
  413.                                     </a>
  414.                                 </td>
  415.                                 <td>
  416.                                     ";
  417.             // line 286
  418.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["std"], "lastname", [], "any"falsefalsefalse286), "html"nulltrue);
  419.             yield "
  420.                                 </td>
  421.                                 <td>
  422.                                     ";
  423.             // line 289
  424.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["std"], "firstname", [], "any"falsefalsefalse289), "html"nulltrue);
  425.             yield "
  426.                                 </td>
  427.                                 <td>
  428.                                     ";
  429.             // line 292
  430.             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.'292$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["std"], "id", [], "any"falsefalsefalse292), [], "array"falsefalsefalse292), "html"nulltrue);
  431.             yield "
  432.                                 </td>
  433.                                 ";
  434.             // line 294
  435.             $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);
  436.             // line 295
  437.             yield "
  438.                             </tr>
  439.                         ";
  440.         }
  441.         $_parent $context['_parent'];
  442.         unset($context['_seq'], $context['_key'], $context['std'], $context['_parent']);
  443.         $context array_intersect_key($context$_parent) + $_parent;
  444.         // line 299
  445.         yield "                        <tr>
  446.                             <td class=\"center\" colspan=\"2\">
  447.                                 Effectif
  448.                                                                                                                                                                                                                                                             
  449.                                                                                                                                                                                                                             
  450.                                                                                                                                                                                             
  451.                                                                                                                                                             
  452.                                                                                                                             
  453.                                                                                             
  454.                                                             
  455.                             </td>
  456.                             <td>
  457.                                 ";
  458.         // line 311
  459.         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"nulltrue);
  460.         yield "
  461.                             </td>
  462.                         </tr>
  463.                     </tbody>
  464.                 </table>
  465.                 <div class=\"card-header text-center\">
  466.                     <h2>
  467.                         Matières programmées dans la classe 
  468.                                                                                                                                                                                             
  469.                                                                                                                                                                     
  470.                                                                                                                                             
  471.                                                                                                                     
  472.                                                                                             
  473.                                                                     
  474.                                             
  475.                     </h2>
  476.                 </div>
  477.                 <table class=\"table table-striped table-hover table-bordered records_list center\">
  478.                     <thead>
  479.                         <tr>
  480.                             <th scope=\"col\">
  481.                                 Module 
  482.                                                                                                                                                                                                                                                             
  483.                                                                                                                                                                                                                             
  484.                                                                                                                                                                                             
  485.                                                                                                                                                             
  486.                                                                                                                             
  487.                                                                                             
  488.                                                             
  489.                             </th>
  490.                             <th scope=\"col\">
  491.                                 Code 
  492.                                                                                                                                                                                                                                                             
  493.                                                                                                                                                                                                                             
  494.                                                                                                                                                                                             
  495.                                                                                                                                                             
  496.                                                                                                                             
  497.                                                                                             
  498.                                                             
  499.                             </th>
  500.                             <th scope=\"col\">
  501.                                 Intitulé 
  502.                                                                                                                                                                                                                                                             
  503.                                                                                                                                                                                                                             
  504.                                                                                                                                                                                             
  505.                                                                                                                                                             
  506.                                                                                                                             
  507.                                                                                             
  508.                                                             
  509.                             </th>
  510.                             <th scope=\"col\">
  511.                                 Coef 
  512.                                                                                                                                                                                                                                                             
  513.                                                                                                                                                                                                                             
  514.                                                                                                                                                                                             
  515.                                                                                                                                                             
  516.                                                                                                                             
  517.                                                                                             
  518.                                                             
  519.                             </th>
  520.                             <th scope=\"col\">
  521.                                 Enseignant 
  522.                                                                                                                                                                                                                                                             
  523.                                                                                                                                                                                                                             
  524.                                                                                                                                                                                             
  525.                                                                                                                                                             
  526.                                                                                                                             
  527.                                                                                             
  528.                                                             
  529.                             </th>
  530.                         </tr>
  531.                     </thead>
  532.                     <tbody>
  533.                         ";
  534.         // line 388
  535.         $context["totalCoef"] = 0;
  536.         // line 389
  537.         yield "                        ";
  538.         $context['_parent'] = $context;
  539.         $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); })()));
  540.         foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  541.             // line 390
  542.             yield "                            <tr>
  543.                                 ";
  544.             // line 392
  545.             $context['_parent'] = $context;
  546.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["module"], "courses", [], "any"falsefalsefalse392));
  547.             foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  548.                 // line 393
  549.                 yield "                                    <tr>
  550.                                         <td>
  551.                                             ";
  552.                 // line 395
  553.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["module"], "name", [], "any"falsefalsefalse395), "html"nulltrue);
  554.                 yield "
  555.                                         </td>
  556.                                         <td>
  557.                                             <a href=\"";
  558.                 // line 398
  559.                 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"falsefalsefalse398)]), "html"nulltrue);
  560.                 yield "\">
  561.                                                 ";
  562.                 // line 399
  563.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "code", [], "any"falsefalsefalse399), "html"nulltrue);
  564.                 yield "
  565.                                             </a>
  566.                                         </td>
  567.                                         <td>
  568.                                             ";
  569.                 // line 404
  570.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "wording", [], "any"falsefalsefalse404), "html"nulltrue);
  571.                 yield "
  572.                                         </td>
  573.                                         <td>
  574.                                             ";
  575.                 // line 407
  576.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "coefficient", [], "any"falsefalsefalse407), "html"nulltrue);
  577.                 yield "
  578.                                         </td>
  579.                                         <td>
  580.                                             ";
  581.                 // line 411
  582.                 if (CoreExtension::getAttribute($this->env$this->source, ($context["attributions"] ?? null), CoreExtension::getAttribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse411), [], "array"truetruefalse411)) {
  583.                     // line 412
  584.                     yield "                                                ";
  585.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  586.                         // line 413
  587.                         yield "                                                    <a href=\"";
  588.                         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->sourceCoreExtension::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"falsefalsefalse413), [], "array"falsefalsefalse413), "id", [], "any"falsefalsefalse413)]), "html"nulltrue);
  589.                         yield "\">
  590.                                                         ";
  591.                         // line 414
  592.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse414), [], "array"falsefalsefalse414), "teacher", [], "any"falsefalsefalse414), "fullName", [], "any"falsefalsefalse414), "html"nulltrue);
  593.                         yield "
  594.                                                     </a>
  595.                                                 ";
  596.                     } else {
  597.                         // line 417
  598.                         yield "                                                    ";
  599.                         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->sourceCoreExtension::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"falsefalsefalse417), [], "array"falsefalsefalse417), "teacher", [], "any"falsefalsefalse417), "fullName", [], "any"falsefalsefalse417), "html"nulltrue);
  600.                         yield "
  601.                                                 ";
  602.                     }
  603.                     // line 419
  604.                     yield "                                            ";
  605.                 } else {
  606.                     // line 420
  607.                     yield "                                            ";
  608.                     if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  609.                         // line 421
  610.                         yield "                                                <a href=\"";
  611.                         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_attributions_new");
  612.                         yield "\">
  613.                                                     Pas encore attribue
  614.                                                 </a>
  615.                                              ";
  616.                     }
  617.                     // line 425
  618.                     yield "                                            ";
  619.                 }
  620.                 // line 426
  621.                 yield "
  622.                                         </td>
  623.                                         ";
  624.                 // line 428
  625.                 $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"falsefalsefalse428));
  626.                 // line 429
  627.                 yield "                                    </tr>
  628.                                 ";
  629.             }
  630.             $_parent $context['_parent'];
  631.             unset($context['_seq'], $context['_key'], $context['course'], $context['_parent']);
  632.             $context array_intersect_key($context$_parent) + $_parent;
  633.             // line 431
  634.             yield "
  635.                             </tr>
  636.                             <tr>
  637.                                 <td class=\"center\" colspan=\"3\">
  638.                                     total cumul coef 
  639.                                                                                                                                                                                                                                                                                             
  640.                                                                                                                                                                                                                                                         
  641.                                                                                                                                                                                                                     
  642.                                                                                                                                                                                 
  643.                                                                                                                                             
  644.                                                                                                         
  645.                                                                     
  646.                                 </td>
  647.                                 <td>
  648.                                     ";
  649.             // line 445
  650.             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"nulltrue);
  651.             yield "
  652.                                 </td>
  653.                             </tr>
  654.                         ";
  655.         }
  656.         $_parent $context['_parent'];
  657.         unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
  658.         $context array_intersect_key($context$_parent) + $_parent;
  659.         // line 449
  660.         yield "
  661.                     </tbody>
  662.                 </table>
  663.             </article>
  664.             <section id=\"graphs\">
  665.                 <article class=\"p-3\">
  666.                     <canvas id=\"schoolPerformanceGraph\" width=\"700\" height=\"250\"></canvas>
  667.                 </article>
  668.                 ";
  669.         // line 457
  670.         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"falsefalsefalse457)) {
  671.             // line 458
  672.             yield "                  <article class=\"p-3\">
  673.                     <canvas id=\"officialExamsGraph\" width=\"200\" height=\"220\" ></canvas>
  674.                 </article>
  675.                 ";
  676.         }
  677.         // line 462
  678.         yield "            </section>
  679.         </div>
  680.     </div>
  681. <!-- Modal pour le choix de cours qui vont figurer dans le recaputulatif sequentiel -->
  682. <div class=\"modal fade\" id=\"form_modal_courses\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
  683.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  684.     <div class=\"modal-content\">
  685.       <div class=\"modal-header border-bottom-0\">
  686.         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Choisir les cours a qui doivent figurer dans le recapitulatif</h5>
  687.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  688.           <span aria-hidden=\"true\">&times;</span>
  689.         </button>
  690.       </div>
  691.       <form action=\"";
  692.         // line 475
  693.         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.'475$this->source); })()), "id", [], "any"falsefalsefalse475)]), "html"nulltrue);
  694.         yield "\" method=\"post\">
  695.         <div class=\"modal-body\">
  696.           <div class=\"form-group\">
  697.              ";
  698.         // line 478
  699.         $context['_parent'] = $context;
  700.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["modules"]) || array_key_exists("modules"$context) ? $context["modules"] : (function () { throw new RuntimeError('Variable "modules" does not exist.'478$this->source); })()));
  701.         foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  702.             // line 479
  703.             yield "                ";
  704.             $context['_parent'] = $context;
  705.             $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env$this->source$context["module"], "courses", [], "any"falsefalsefalse479));
  706.             foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  707.                 // line 480
  708.                 yield "                <li class=\"list-group-item\">
  709.                         <input class=\"form-check-input me-1\" type=\"checkbox\" checked name=\"selected_courses[]\" value=";
  710.                 // line 481
  711.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "id", [], "any"falsefalsefalse481), "html"nulltrue);
  712.                 yield " >
  713.                         ";
  714.                 // line 482
  715.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["course"], "wording", [], "any"falsefalsefalse482), "html"nulltrue);
  716.                 yield "
  717.                 </li>
  718.                 ";
  719.             }
  720.             $_parent $context['_parent'];
  721.             unset($context['_seq'], $context['_key'], $context['course'], $context['_parent']);
  722.             $context array_intersect_key($context$_parent) + $_parent;
  723.             // line 485
  724.             yield "             ";
  725.         }
  726.         $_parent $context['_parent'];
  727.         unset($context['_seq'], $context['_key'], $context['module'], $context['_parent']);
  728.         $context array_intersect_key($context$_parent) + $_parent;
  729.         // line 486
  730.         yield "          </div>
  731.         </div>
  732.       
  733.         <div class=\"modal-footer border-top-0 d-flex justify-content-center\">
  734.           <button type=\"submit\" class=\"btn btn-success\">Submit</button>
  735.         </div>
  736.       </form>
  737.     </div>
  738.   </div>
  739. </div>
  740. <!-- Modal pour le parametrage de la presentation des bulletins. -->
  741. <div class=\"modal fade\" id=\"form_modal_reportcard_params\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalRange\" aria-hidden=\"true\">
  742.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  743.     <div class=\"modal-content\">
  744.       <div class=\"modal-header border-bottom-0\">
  745.         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Reajuster les parametres de production des bulletins</h5>
  746.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  747.           <span aria-hidden=\"true\">&times;</span>
  748.         </button>
  749.       </div>
  750.       <form action=\"";
  751.         // line 506
  752.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_class_reportcards_3_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.'506$this->source); })()), "id", [], "any"falsefalsefalse506)]), "html"nulltrue);
  753.         yield "\" method=\"post\">
  754.         <div class=\"modal-body\">
  755.            <div class=\"form-group\">
  756.             <label for=\"header_font_size\">Taille de des caracteres dans l entete</label>
  757.             <input type=\"range\" class=\"form-control\" name=\"header_font_size\" id=\"header_font_size\" min=\"1\" max=\"1.6\" step=\"0.01\">
  758.           </div>
  759.           <div class=\"form-group\">
  760.             <label for=\"line_height\">Hauteur des lignes dans le tableau</label>
  761.             <input type=\"range\" class=\"form-control\" name=\"line_height\" id=\"line_height\" min=\"0.5\" max=\"1.5\" step=\"0.01\">
  762.           </div>
  763.           <div class=\"form-check\">
  764.             <input class=\"form-check-input\" type=\"checkbox\"  id=\"copyright\"  name=\"copyright\">
  765.             <label class=\"form-check-label\" for=\"copyright\">
  766.                 Ajout du copyright en pied du bulletin?
  767.             </label>
  768.          </div>
  769.          <div class=\"form-check\">
  770.             <input class=\"form-check-input\" type=\"checkbox\"  id=\"reverse\"  name=\"reverse\">
  771.             <label class=\"form-check-label\" for=\"reverse\">
  772.                 Sens inverse
  773.             </label>
  774.          </div>
  775.         </div>
  776.       
  777.         <div class=\"modal-footer border-top-0 d-flex justify-content-center\">
  778.           <button type=\"submit\" class=\"btn btn-success\">Submit</button>
  779.         </div>
  780.       </form>
  781.     </div>
  782.   </div>
  783. </div>
  784. ";
  785.         
  786.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  787.         
  788.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  789.         yield from [];
  790.     }
  791.     // line 538
  792.     /**
  793.      * @return iterable<null|scalar|\Stringable>
  794.      */
  795.     public function block_javascripts(array $context, array $blocks = []): iterable
  796.     {
  797.         $macros $this->macros;
  798.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  799.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  800.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  801.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  802.         // line 539
  803.         yield "    ";
  804.         yield from $this->yieldParentBlock("javascripts"$context$blocks);
  805.         yield "
  806.     
  807.     <script type=\"text/javascript\">
  808.                         const schoolPerformanceGraph = \$(\"#schoolPerformanceGraph\");                       
  809.                         const datasets = [];
  810.                         //Generate a random color
  811.                         const randomRgbColor = () => {
  812.                             let r = Math.floor(Math.random() * 256); // Random between 0-255
  813.                             let g = Math.floor(Math.random() * 256); // Random between 0-255
  814.                             let b = Math.floor(Math.random() * 256); // Random between 0-255
  815.                             return 'rgb(' + r + ',' + g + ',' + b + ')';
  816.                         };
  817.                        
  818.                        
  819.                                 ";
  820.         // line 554
  821.         if (array_key_exists("session1"$context)) {
  822.             // line 555
  823.             yield "                                    datasets.push( {
  824.                                         label: \"Session 1\",
  825.                                         data : ";
  826.             // line 557
  827.             yield (isset($context["session1"]) || array_key_exists("session1"$context) ? $context["session1"] : (function () { throw new RuntimeError('Variable "session1" does not exist.'557$this->source); })());
  828.             yield ",
  829.                                         fill : false,
  830.                                         backgroundColor: randomRgbColor()
  831.                                     } )
  832.                                 ";
  833.         }
  834.         // line 562
  835.         yield "                                ";
  836.         if (array_key_exists("session2"$context)) {
  837.             // line 563
  838.             yield "                                    datasets.push( {
  839.                                         label: \"Session 2\",
  840.                                         data : ";
  841.             // line 565
  842.             yield (isset($context["session2"]) || array_key_exists("session2"$context) ? $context["session2"] : (function () { throw new RuntimeError('Variable "session2" does not exist.'565$this->source); })());
  843.             yield ",
  844.                                         fill : false,
  845.                                         backgroundColor: randomRgbColor()
  846.                                     } )
  847.                                 ";
  848.         }
  849.         // line 570
  850.         yield "                                 ";
  851.         if (array_key_exists("session3"$context)) {
  852.             // line 571
  853.             yield "                                    datasets.push( {
  854.                                         label: \"Session 3\",
  855.                                         data : ";
  856.             // line 573
  857.             yield (isset($context["session3"]) || array_key_exists("session3"$context) ? $context["session3"] : (function () { throw new RuntimeError('Variable "session3" does not exist.'573$this->source); })());
  858.             yield ",
  859.                                         fill : false,
  860.                                         backgroundColor: randomRgbColor()
  861.                                     } )
  862.                                 ";
  863.         }
  864.         // line 578
  865.         yield "                                 ";
  866.         if (array_key_exists("session4"$context)) {
  867.             // line 579
  868.             yield "                                    datasets.push( {
  869.                                         label: \"Session 4\",
  870.                                         data : ";
  871.             // line 581
  872.             yield (isset($context["session4"]) || array_key_exists("session4"$context) ? $context["session4"] : (function () { throw new RuntimeError('Variable "session4" does not exist.'581$this->source); })());
  873.             yield ",
  874.                                         fill : false,
  875.                                         backgroundColor: randomRgbColor()
  876.                                     } )
  877.                                 ";
  878.         }
  879.         // line 586
  880.         yield "                                 ";
  881.         if (array_key_exists("session5"$context)) {
  882.             // line 587
  883.             yield "                                    datasets.push( {
  884.                                         label: \"Session 5\",
  885.                                         data : ";
  886.             // line 589
  887.             yield (isset($context["session5"]) || array_key_exists("session5"$context) ? $context["session5"] : (function () { throw new RuntimeError('Variable "session5" does not exist.'589$this->source); })());
  888.             yield ",
  889.                                         fill : false,
  890.                                         backgroundColor: randomRgbColor()
  891.                                     } )
  892.                                 ";
  893.         }
  894.         // line 594
  895.         yield "                                 ";
  896.         if (array_key_exists("session6"$context)) {
  897.             // line 595
  898.             yield "                                    datasets.push( {
  899.                                         label: \"Session 6\",
  900.                                         data : ";
  901.             // line 597
  902.             yield (isset($context["session6"]) || array_key_exists("session6"$context) ? $context["session6"] : (function () { throw new RuntimeError('Variable "session6" does not exist.'597$this->source); })());
  903.             yield ",
  904.                                         fill : false,
  905.                                         backgroundColor: randomRgbColor()
  906.                                     } )
  907.                                 ";
  908.         }
  909.         // line 602
  910.         yield "                           
  911.                             
  912.                            
  913.                             
  914.                         
  915.                              
  916.                        
  917.                        let graph = new Chart(schoolPerformanceGraph, {
  918.                             type:\"bar\",
  919.                             data : {
  920.                                 labels: ";
  921.         // line 613
  922.         yield (isset($context["cours"]) || array_key_exists("cours"$context) ? $context["cours"] : (function () { throw new RuntimeError('Variable "cours" does not exist.'613$this->source); })());
  923.         yield ",
  924.                                 datasets: datasets,
  925.                             }, 
  926.                              options: {
  927.                                 plugins: {
  928.                                     title: {
  929.                                         display: true,
  930.                                         text: 'Performances generales annuelles ',
  931.                                         font: {
  932.                                             size: 24,
  933.                                             style: 'bold',
  934.                                             family: 'Helvetica Neue',
  935.                                         },
  936.                                         position: 'bottom',
  937.                                         
  938.                                     }
  939.                                 }
  940.                             }
  941.                         });
  942.        
  943.              
  944.                                 
  945.                                     
  946.     
  947.     // Get the chart element for student category
  948.     let studentCategoryChartElement = document.querySelector(\"#studentCategoryChart\");
  949.     // Create the chart for student category
  950.     let studentCategoryChart = new Chart(studentCategoryChartElement, {
  951.         type: \"pie\",
  952.         data: {
  953.             labels: [\"Passed\", \"Failed\"],
  954.             datasets: [{
  955.                 data: [/* Add data here for the number of students passed and failed */],
  956.                 backgroundColor: [\"green\", \"red\"]
  957.             }]
  958.         }
  959.     });
  960.     // Get the chart element for mention category
  961.     let officialExamsGraph = document.querySelector(\"#officialExamsGraph\");
  962.     // Create the chart for mention category
  963.     const colors = [];
  964.     const mentionCountCategories = ";
  965.         // line 655
  966.         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.'655$this->source); })()), "html"nulltrue);
  967.         yield ";
  968.     mentionCountCategories.map(cat => {
  969.         colors.push(randomRgbColor());
  970.     })
  971.     let officialExamsChart = new Chart(officialExamsGraph, {
  972.         type: \"pie\",
  973.         data: {
  974.             labels:  ";
  975.         // line 662
  976.         yield (isset($context["mentionCategories"]) || array_key_exists("mentionCategories"$context) ? $context["mentionCategories"] : (function () { throw new RuntimeError('Variable "mentionCategories" does not exist.'662$this->source); })());
  977.         yield ",
  978.             datasets: [{
  979.                 data: ";
  980.         // line 664
  981.         yield (isset($context["mentionCountCategories"]) || array_key_exists("mentionCountCategories"$context) ? $context["mentionCountCategories"] : (function () { throw new RuntimeError('Variable "mentionCountCategories" does not exist.'664$this->source); })());
  982.         yield ",
  983.                 backgroundColor: colors
  984.             }]
  985.         }, 
  986.          options: {
  987.                                 plugins: {
  988.                                     title: {
  989.                                         display: true,
  990.                                         text: 'Resultats aux examens officiels ',
  991.                                         font: {
  992.                                             size: 24,
  993.                                             style: 'bold',
  994.                                             family: 'Helvetica Neue',
  995.                                         },
  996.                                         position: 'bottom',
  997.                                         
  998.                                     }
  999.                                 }
  1000.                             }
  1001.     });
  1002. </script>
  1003. ";
  1004.         
  1005.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1006.         
  1007.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1008.         yield from [];
  1009.     }
  1010.     /**
  1011.      * @codeCoverageIgnore
  1012.      */
  1013.     public function getTemplateName(): string
  1014.     {
  1015.         return "classroom/show.html.twig";
  1016.     }
  1017.     /**
  1018.      * @codeCoverageIgnore
  1019.      */
  1020.     public function isTraitable(): bool
  1021.     {
  1022.         return false;
  1023.     }
  1024.     /**
  1025.      * @codeCoverageIgnore
  1026.      */
  1027.     public function getDebugInfo(): array
  1028.     {
  1029.         return array (  1016 => 664,  1011 => 662,  1001 => 655,  956 => 613,  943 => 602,  935 => 597,  931 => 595,  928 => 594,  920 => 589,  916 => 587,  913 => 586,  905 => 581,  901 => 579,  898 => 578,  890 => 573,  886 => 571,  883 => 570,  875 => 565,  871 => 563,  868 => 562,  860 => 557,  856 => 555,  854 => 554,  835 => 539,  822 => 538,  779 => 506,  757 => 486,  751 => 485,  742 => 482,  738 => 481,  735 => 480,  730 => 479,  726 => 478,  720 => 475,  705 => 462,  699 => 458,  697 => 457,  687 => 449,  677 => 445,  661 => 431,  654 => 429,  652 => 428,  648 => 426,  645 => 425,  637 => 421,  634 => 420,  631 => 419,  625 => 417,  619 => 414,  614 => 413,  611 => 412,  609 => 411,  602 => 407,  596 => 404,  588 => 399,  584 => 398,  578 => 395,  574 => 393,  570 => 392,  566 => 390,  561 => 389,  559 => 388,  479 => 311,  465 => 299,  456 => 295,  454 => 294,  449 => 292,  443 => 289,  437 => 286,  430 => 282,  426 => 281,  422 => 279,  417 => 278,  415 => 277,  353 => 217,  347 => 214,  329 => 199,  302 => 175,  287 => 163,  272 => 151,  256 => 138,  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,);
  1030.     }
  1031.     public function getSourceContext(): Source
  1032.     {
  1033.         return new Source("{% extends \"layout/backEndLayout.html.twig\" %}
  1034. {% block content %}
  1035.     <div class=\"row mt-4\">
  1036.         <div class=\"col-1 mar-bot30\">
  1037.           {% if is_granted('ROLE_ADMIN') %}
  1038.             <a class=\"btn btn-info\" href=\"{{ path('admin_classrooms_new') }}\">
  1039.                 <i class=\"fa fa-plus\"></i>
  1040.                 
  1041.                                                                                                                                                 
  1042.                                                                                                                             
  1043.                                                                                                             
  1044.                                                                                             
  1045.      
  1046.             </a>
  1047.             {% endif %}
  1048.         </div>
  1049.           
  1050.           
  1051.         </div>
  1052.         <div class=\"col-11 jumbotron\">
  1053.             <article class=\"p-3\">
  1054.                 <table class=\"table table-hover record_properties center\">
  1055.                     <tbody>
  1056.                         <tr>
  1057.                             <th scope=\"row\">
  1058.                                 Nom
  1059.                                                                                                                                                                                                                                                             
  1060.                                                                                                                                                                                                                             
  1061.                                                                                                                                                                                             
  1062.                                                                                                                                                             
  1063.                                                                                                                             
  1064.                                                                                             
  1065.                                                             
  1066.                             </th>
  1067.                             <td>
  1068.                                 {{ classroom.name }}
  1069.                             </td>
  1070.                         </tr>
  1071.                         <tr>
  1072.                             <th scope=\"row\">
  1073.                                 Niveau
  1074.                                                                                                                                                                                                                                                             
  1075.                                                                                                                                                                                                                             
  1076.                                                                                                                                                                                             
  1077.                                                                                                                                                             
  1078.                                                                                                                             
  1079.                                                                                             
  1080.                                                             
  1081.                             </th>
  1082.                             <td>
  1083.                                 {{ classroom.level }}
  1084.                             </td>
  1085.                         </tr>
  1086.                         <tr>
  1087.                             <th scope=\"row\">
  1088.                                 Titulaire
  1089.                                                                                                                                                                                                                                                             
  1090.                                                                                                                                                                                                                             
  1091.                                                                                                                                                                                             
  1092.                                                                                                                                                             
  1093.                                                                                                                             
  1094.                                                                                             
  1095.                                                             
  1096.                             </th>
  1097.                             <td>
  1098.                                 {% if mainteacher is null %}
  1099.                                     
  1100.                                     {% else %}
  1101.                                       {{mainteacher.fullName}}
  1102.                                 {% endif %}
  1103.                              
  1104.                             </td>
  1105.                         </tr>
  1106.                         <tr>
  1107.                             <th scope=\"row\">
  1108.                                 Classe d'examen                                                                                                                                                                                                                                                             
  1109.                                                                                                                                                                                                                             
  1110.                                                                                                                                                                                             
  1111.                                                                                                                                                             
  1112.                                                                                                                             
  1113.                                                                                             
  1114.                                                             
  1115.                             </th>
  1116.                             <td>
  1117.                                 {% if (classroom.apc == true) %}
  1118.                                     OUI
  1119.                                                                                                                                                                                                                                                                                                 \t\t\t\t\t\t\t\t
  1120.                                                                                                                                                                                                                                                                                             
  1121.                                                                                                                                                                                                                                                         
  1122.                                                                                                                                                                                                                     
  1123.                                                                                                                                                                                 
  1124.                                                                                                                                             
  1125.                                                                                                         
  1126.                                                                     
  1127.                                 {% else %}
  1128.                                     NON
  1129.                                                                                                                                                                                                                                                                                                 \t\t\t\t\t\t\t\t
  1130.                                                                                                                                                                                                                                                                                             
  1131.                                                                                                                                                                                                                                                         
  1132.                                                                                                                                                                                                                     
  1133.                                                                                                                                                                                 
  1134.                                                                                                                                             
  1135.                                                                                                         
  1136.                                                                     
  1137.                                 {% endif %}
  1138.                             </td>
  1139.                         </tr>
  1140.                     </tbody>
  1141.                 </table>
  1142.                 <div class=\"btn-group record_actions\">
  1143.                     <a class=\"btn btn-info\" href=\"{{ path('admin_classrooms') }}\">
  1144.                         <i class=\"fa fa-list\"></i>
  1145.                         {{ 'Listing'|trans({}, 'admin') }}
  1146.                     </a>
  1147.                     {% if is_granted('ROLE_ADMIN') %}
  1148.                         <a class=\"btn btn-primary\" href=\"{{ path('admin_classrooms_edit', {id: classroom.id}) }}\">
  1149.                             <i class=\"fa fa-edit\"></i>
  1150.                             {{ 'Edit'|trans({}, 'admin') }}
  1151.                         </a>
  1152.                 
  1153.                     <a target=\"_blank\" class=\"btn btn-file\"  data-toggle=\"modal\" data-target=\"#form_modal_courses\" >
  1154.                         <i class=\"fa fa-file-excel-o\"></i>
  1155.                         Recap. Seq
  1156.                                                                                                                                                                                                                     
  1157.                                                                                                                                                                                             
  1158.                                                                                                                                                                     
  1159.                                                                                                                                             
  1160.                                                                                                                     
  1161.                                                                                             
  1162.                                                                     
  1163.                                             
  1164.                     </a>
  1165.                     <a target=\"_blank\" class=\"btn btn-warning\" href=\"{{ path('admin_classrooms_reportcards_seq', {id: classroom.id}) }}\">
  1166.                         <i class=\"fa fa-file\"></i>
  1167.                         Bull Seq
  1168.                                                                                                                                                                                                                     
  1169.                                                                                                                                                                                             
  1170.                                                                                                                                                                     
  1171.                                                                                                                                             
  1172.                                                                                                                     
  1173.                                                                                             
  1174.                                                                     
  1175.                                             
  1176.                     </a>
  1177.                     <a  target=\"_blank\" class=\"btn btn-file\" href=\"{{ path('admin_classrooms_reportcards_trim', {id: classroom.id}) }}\">
  1178.                         <i class=\"fa fa-file\"></i>
  1179.                         Bull Trim
  1180.                                                                                                                                                                                                                     
  1181.                                                                                                                                                                                             
  1182.                                                                                                                                                                     
  1183.                                                                                                                                             
  1184.                                                                                                                     
  1185.                                                                                             
  1186.                                                                     
  1187.                                             
  1188.                     </a>
  1189.                     <a target=\"_blank\" class=\"btn btn-outline-warning\" href=\"{{ path('admin_classrooms_recapitulatif_trim', {id: classroom.id}) }}\">
  1190.                         <i class=\"fa fa-file-excel-o\"></i>
  1191.                         Recap Trim
  1192.                                                                                                                                                                                                                     
  1193.                                                                                                                                                                                             
  1194.                                                                                                                                                                     
  1195.                                                                                                                                             
  1196.                                                                                                                     
  1197.                                                                                             
  1198.                                                                     
  1199.                                             
  1200.                     </a>
  1201.                     <a  target=\"_blank\" class=\"btn btn-file\" href=\"{{ path('admin_class_reportcards_apc_year', {id: classroom.id}) }}\">
  1202.                         <i class=\"fa fa-file\"></i>
  1203.                         Bull Ann V1
  1204.                                                                                                                                                                                                                     
  1205.                                                                                                                                                                                             
  1206.                                                                                                                                                                     
  1207.                                                                                                                                             
  1208.                                                                                                                     
  1209.                                                                                             
  1210.                                                                     
  1211.                                             
  1212.                     </a>
  1213.                     <a target=\"_blank\" class=\"btn btn-file\" data-toggle=\"modal\" data-target=\"#form_modal_reportcard_params\" >
  1214.                         <i class=\"fa fa-file\"></i>
  1215.                         Bull Ann V2
  1216.                                                                                                                                                                                                                     
  1217.                                                                                                                                                                                             
  1218.                                                                                                                                                                     
  1219.                                                                                                                                             
  1220.                                                                                                                     
  1221.                                                                                             
  1222.                                                                     
  1223.                                             
  1224.                     </a>
  1225.                     <a  target=\"_blank\" class=\"btn btn-light\" href=\"{{ path('admin_current_fulfilled_eval_show', {id: classroom.id}) }}\">
  1226.                         <i class=\"fa fa-list-ul\"></i>
  1227.                         Dépot des PV
  1228.                                                                                                                                                                                                                     
  1229.                                                                                                                                                                                             
  1230.                                                                                                                                                                     
  1231.                                                                                                                                             
  1232.                                                                                                                     
  1233.                                                                                             
  1234.                                                                     
  1235.                                             
  1236.                     </a>
  1237.                     
  1238.                         <button class=\"btn btn-danger\" type=\"submit\">
  1239.                             <i class=\"fa fa-trash-o\"></i>
  1240.                             {{ 'Delete'|trans({}, 'admin') }}
  1241.                         </button>
  1242.                     {% endif %}
  1243.                 </div>
  1244.                 <div class=\"card-header text-center\">
  1245.                     <h2>
  1246.                         Liste des Ã©lèves incrits dans la classe 
  1247.                                                                                                                                                                                             
  1248.                                                                                                                                                                     
  1249.                                                                                                                                             
  1250.                                                                                                                     
  1251.                                                                                             
  1252.                                                                     
  1253.                                             
  1254.                     </h2>
  1255.                 </div>
  1256.                 <table class=\"table table-striped table-hover table-bordered records_list center\">
  1257.                     <thead>
  1258.                         <tr>
  1259.                             <th scope=\"col\">
  1260.                                 Matricule
  1261.                                                                                                                                                                                                                                                             
  1262.                                                                                                                                                                                                                             
  1263.                                                                                                                                                                                             
  1264.                                                                                                                                                             
  1265.                                                                                                                             
  1266.                                                                                             
  1267.                                                             
  1268.                             </th>
  1269.                             <th scope=\"col\">
  1270.                                 Nom
  1271.                                                                                                                                                                                                                                                             
  1272.                                                                                                                                                                                                                             
  1273.                                                                                                                                                                                             
  1274.                                                                                                                                                             
  1275.                                                                                                                             
  1276.                                                                                             
  1277.                                                             
  1278.                             </th>
  1279.                             <th scope=\"col\">
  1280.                                 Prénom
  1281.                                                                                                                                                                                                                                                             
  1282.                                                                                                                                                                                                                             
  1283.                                                                                                                                                                                             
  1284.                                                                                                                                                             
  1285.                                                                                                                             
  1286.                                                                                             
  1287.                                                             
  1288.                             </th>
  1289.                             <th scope=\"col\">
  1290.                                 Photo
  1291.                                                                                                                                                                                                                                                             
  1292.                                                                                                                                                                                                                             
  1293.                                                                                                                                                                                             
  1294.                                                                                                                                                             
  1295.                                                                                                                             
  1296.                                                                                             
  1297.                                                             
  1298.                             </th>
  1299.                         </tr>
  1300.                     </thead>
  1301.                     <tbody>
  1302.                         {% set effectif =0 %}
  1303.                         {% for std in studentEnrolled %}
  1304.                             <tr>
  1305.                                 <td>
  1306.                                     <a href=\"{{ path('admin_students_show', {id: std.id}) }}\">
  1307.                                         {{ std.matricule }}
  1308.                                     </a>
  1309.                                 </td>
  1310.                                 <td>
  1311.                                     {{ std.lastname }}
  1312.                                 </td>
  1313.                                 <td>
  1314.                                     {{ std.firstname }}
  1315.                                 </td>
  1316.                                 <td>
  1317.                                     {{ fileExists[std.id] }}
  1318.                                 </td>
  1319.                                 {% set effectif = effectif + 1 %}
  1320.                             </tr>
  1321.                         {% endfor %}
  1322.                         <tr>
  1323.                             <td class=\"center\" colspan=\"2\">
  1324.                                 Effectif
  1325.                                                                                                                                                                                                                                                             
  1326.                                                                                                                                                                                                                             
  1327.                                                                                                                                                                                             
  1328.                                                                                                                                                             
  1329.                                                                                                                             
  1330.                                                                                             
  1331.                                                             
  1332.                             </td>
  1333.                             <td>
  1334.                                 {{ effectif }}
  1335.                             </td>
  1336.                         </tr>
  1337.                     </tbody>
  1338.                 </table>
  1339.                 <div class=\"card-header text-center\">
  1340.                     <h2>
  1341.                         Matières programmées dans la classe 
  1342.                                                                                                                                                                                             
  1343.                                                                                                                                                                     
  1344.                                                                                                                                             
  1345.                                                                                                                     
  1346.                                                                                             
  1347.                                                                     
  1348.                                             
  1349.                     </h2>
  1350.                 </div>
  1351.                 <table class=\"table table-striped table-hover table-bordered records_list center\">
  1352.                     <thead>
  1353.                         <tr>
  1354.                             <th scope=\"col\">
  1355.                                 Module 
  1356.                                                                                                                                                                                                                                                             
  1357.                                                                                                                                                                                                                             
  1358.                                                                                                                                                                                             
  1359.                                                                                                                                                             
  1360.                                                                                                                             
  1361.                                                                                             
  1362.                                                             
  1363.                             </th>
  1364.                             <th scope=\"col\">
  1365.                                 Code 
  1366.                                                                                                                                                                                                                                                             
  1367.                                                                                                                                                                                                                             
  1368.                                                                                                                                                                                             
  1369.                                                                                                                                                             
  1370.                                                                                                                             
  1371.                                                                                             
  1372.                                                             
  1373.                             </th>
  1374.                             <th scope=\"col\">
  1375.                                 Intitulé 
  1376.                                                                                                                                                                                                                                                             
  1377.                                                                                                                                                                                                                             
  1378.                                                                                                                                                                                             
  1379.                                                                                                                                                             
  1380.                                                                                                                             
  1381.                                                                                             
  1382.                                                             
  1383.                             </th>
  1384.                             <th scope=\"col\">
  1385.                                 Coef 
  1386.                                                                                                                                                                                                                                                             
  1387.                                                                                                                                                                                                                             
  1388.                                                                                                                                                                                             
  1389.                                                                                                                                                             
  1390.                                                                                                                             
  1391.                                                                                             
  1392.                                                             
  1393.                             </th>
  1394.                             <th scope=\"col\">
  1395.                                 Enseignant 
  1396.                                                                                                                                                                                                                                                             
  1397.                                                                                                                                                                                                                             
  1398.                                                                                                                                                                                             
  1399.                                                                                                                                                             
  1400.                                                                                                                             
  1401.                                                                                             
  1402.                                                             
  1403.                             </th>
  1404.                         </tr>
  1405.                     </thead>
  1406.                     <tbody>
  1407.                         {% set totalCoef =0 %}
  1408.                         {% for module in modules %}
  1409.                             <tr>
  1410.                                 {% for course in module.courses %}
  1411.                                     <tr>
  1412.                                         <td>
  1413.                                             {{ module.name }}
  1414.                                         </td>
  1415.                                         <td>
  1416.                                             <a href=\"{{ path('admin_courses_show', {id: course.id}) }}\">
  1417.                                                 {{ course.code }}
  1418.                                             </a>
  1419.                                         </td>
  1420.                                         <td>
  1421.                                             {{ course.wording }}
  1422.                                         </td>
  1423.                                         <td>
  1424.                                             {{ course.coefficient }}
  1425.                                         </td>
  1426.                                         <td>
  1427.                                             {% if attributions[course.id] is defined %}
  1428.                                                 {% if is_granted('ROLE_ADMIN') %}
  1429.                                                     <a href=\"{{ path('admin_attributions_edit', {id: attributions[course.id].id}) }}\">
  1430.                                                         {{attributions[course.id].teacher.fullName}}
  1431.                                                     </a>
  1432.                                                 {% else %}
  1433.                                                     {{attributions[course.id].teacher.fullName}}
  1434.                                                 {% endif %}
  1435.                                             {% else %}
  1436.                                             {% if is_granted('ROLE_ADMIN') %}
  1437.                                                 <a href=\"{{ path('admin_attributions_new') }}\">
  1438.                                                     Pas encore attribue
  1439.                                                 </a>
  1440.                                              {% endif %}
  1441.                                             {% endif %}
  1442.                                         </td>
  1443.                                         {% set totalCoef = totalCoef+course.coefficient %}
  1444.                                     </tr>
  1445.                                 {% endfor %}
  1446.                             </tr>
  1447.                             <tr>
  1448.                                 <td class=\"center\" colspan=\"3\">
  1449.                                     total cumul coef 
  1450.                                                                                                                                                                                                                                                                                             
  1451.                                                                                                                                                                                                                                                         
  1452.                                                                                                                                                                                                                     
  1453.                                                                                                                                                                                 
  1454.                                                                                                                                             
  1455.                                                                                                         
  1456.                                                                     
  1457.                                 </td>
  1458.                                 <td>
  1459.                                     {{ totalCoef }}
  1460.                                 </td>
  1461.                             </tr>
  1462.                         {% endfor %}
  1463.                     </tbody>
  1464.                 </table>
  1465.             </article>
  1466.             <section id=\"graphs\">
  1467.                 <article class=\"p-3\">
  1468.                     <canvas id=\"schoolPerformanceGraph\" width=\"700\" height=\"250\"></canvas>
  1469.                 </article>
  1470.                 {% if classroom.apc %}
  1471.                   <article class=\"p-3\">
  1472.                     <canvas id=\"officialExamsGraph\" width=\"200\" height=\"220\" ></canvas>
  1473.                 </article>
  1474.                 {% endif %}
  1475.             </section>
  1476.         </div>
  1477.     </div>
  1478. <!-- Modal pour le choix de cours qui vont figurer dans le recaputulatif sequentiel -->
  1479. <div class=\"modal fade\" id=\"form_modal_courses\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalLabel\" aria-hidden=\"true\">
  1480.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  1481.     <div class=\"modal-content\">
  1482.       <div class=\"modal-header border-bottom-0\">
  1483.         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Choisir les cours a qui doivent figurer dans le recapitulatif</h5>
  1484.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1485.           <span aria-hidden=\"true\">&times;</span>
  1486.         </button>
  1487.       </div>
  1488.       <form action=\"{{ path('admin_classrooms_recapitulatif_seq', {'id':classroom.id}) }}\" method=\"post\">
  1489.         <div class=\"modal-body\">
  1490.           <div class=\"form-group\">
  1491.              {% for module in modules %}
  1492.                 {% for course in module.courses %}
  1493.                 <li class=\"list-group-item\">
  1494.                         <input class=\"form-check-input me-1\" type=\"checkbox\" checked name=\"selected_courses[]\" value={{course.id}} >
  1495.                         {{course.wording}}
  1496.                 </li>
  1497.                 {% endfor %}
  1498.              {% endfor %}
  1499.           </div>
  1500.         </div>
  1501.       
  1502.         <div class=\"modal-footer border-top-0 d-flex justify-content-center\">
  1503.           <button type=\"submit\" class=\"btn btn-success\">Submit</button>
  1504.         </div>
  1505.       </form>
  1506.     </div>
  1507.   </div>
  1508. </div>
  1509. <!-- Modal pour le parametrage de la presentation des bulletins. -->
  1510. <div class=\"modal fade\" id=\"form_modal_reportcard_params\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"exampleModalRange\" aria-hidden=\"true\">
  1511.   <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">
  1512.     <div class=\"modal-content\">
  1513.       <div class=\"modal-header border-bottom-0\">
  1514.         <h5 class=\"modal-title\" id=\"exampleModalLabel\">Reajuster les parametres de production des bulletins</h5>
  1515.         <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">
  1516.           <span aria-hidden=\"true\">&times;</span>
  1517.         </button>
  1518.       </div>
  1519.       <form action=\"{{ path('admin_class_reportcards_3_apc_year', {'id':classroom.id}) }}\" method=\"post\">
  1520.         <div class=\"modal-body\">
  1521.            <div class=\"form-group\">
  1522.             <label for=\"header_font_size\">Taille de des caracteres dans l entete</label>
  1523.             <input type=\"range\" class=\"form-control\" name=\"header_font_size\" id=\"header_font_size\" min=\"1\" max=\"1.6\" step=\"0.01\">
  1524.           </div>
  1525.           <div class=\"form-group\">
  1526.             <label for=\"line_height\">Hauteur des lignes dans le tableau</label>
  1527.             <input type=\"range\" class=\"form-control\" name=\"line_height\" id=\"line_height\" min=\"0.5\" max=\"1.5\" step=\"0.01\">
  1528.           </div>
  1529.           <div class=\"form-check\">
  1530.             <input class=\"form-check-input\" type=\"checkbox\"  id=\"copyright\"  name=\"copyright\">
  1531.             <label class=\"form-check-label\" for=\"copyright\">
  1532.                 Ajout du copyright en pied du bulletin?
  1533.             </label>
  1534.          </div>
  1535.          <div class=\"form-check\">
  1536.             <input class=\"form-check-input\" type=\"checkbox\"  id=\"reverse\"  name=\"reverse\">
  1537.             <label class=\"form-check-label\" for=\"reverse\">
  1538.                 Sens inverse
  1539.             </label>
  1540.          </div>
  1541.         </div>
  1542.       
  1543.         <div class=\"modal-footer border-top-0 d-flex justify-content-center\">
  1544.           <button type=\"submit\" class=\"btn btn-success\">Submit</button>
  1545.         </div>
  1546.       </form>
  1547.     </div>
  1548.   </div>
  1549. </div>
  1550. {% endblock %}
  1551. {% block javascripts %}
  1552.     {{ parent() }}
  1553.     
  1554.     <script type=\"text/javascript\">
  1555.                         const schoolPerformanceGraph = \$(\"#schoolPerformanceGraph\");                       
  1556.                         const datasets = [];
  1557.                         //Generate a random color
  1558.                         const randomRgbColor = () => {
  1559.                             let r = Math.floor(Math.random() * 256); // Random between 0-255
  1560.                             let g = Math.floor(Math.random() * 256); // Random between 0-255
  1561.                             let b = Math.floor(Math.random() * 256); // Random between 0-255
  1562.                             return 'rgb(' + r + ',' + g + ',' + b + ')';
  1563.                         };
  1564.                        
  1565.                        
  1566.                                 {% if session1 is defined %}
  1567.                                     datasets.push( {
  1568.                                         label: \"Session 1\",
  1569.                                         data : {{session1|raw}},
  1570.                                         fill : false,
  1571.                                         backgroundColor: randomRgbColor()
  1572.                                     } )
  1573.                                 {% endif %}
  1574.                                 {% if session2 is defined %}
  1575.                                     datasets.push( {
  1576.                                         label: \"Session 2\",
  1577.                                         data : {{session2|raw}},
  1578.                                         fill : false,
  1579.                                         backgroundColor: randomRgbColor()
  1580.                                     } )
  1581.                                 {% endif %}
  1582.                                  {% if session3 is defined %}
  1583.                                     datasets.push( {
  1584.                                         label: \"Session 3\",
  1585.                                         data : {{session3|raw}},
  1586.                                         fill : false,
  1587.                                         backgroundColor: randomRgbColor()
  1588.                                     } )
  1589.                                 {% endif %}
  1590.                                  {% if session4 is defined %}
  1591.                                     datasets.push( {
  1592.                                         label: \"Session 4\",
  1593.                                         data : {{session4|raw}},
  1594.                                         fill : false,
  1595.                                         backgroundColor: randomRgbColor()
  1596.                                     } )
  1597.                                 {% endif %}
  1598.                                  {% if session5 is defined %}
  1599.                                     datasets.push( {
  1600.                                         label: \"Session 5\",
  1601.                                         data : {{session5|raw}},
  1602.                                         fill : false,
  1603.                                         backgroundColor: randomRgbColor()
  1604.                                     } )
  1605.                                 {% endif %}
  1606.                                  {% if session6 is defined %}
  1607.                                     datasets.push( {
  1608.                                         label: \"Session 6\",
  1609.                                         data : {{session6|raw}},
  1610.                                         fill : false,
  1611.                                         backgroundColor: randomRgbColor()
  1612.                                     } )
  1613.                                 {% endif %}
  1614.                            
  1615.                             
  1616.                            
  1617.                             
  1618.                         
  1619.                              
  1620.                        
  1621.                        let graph = new Chart(schoolPerformanceGraph, {
  1622.                             type:\"bar\",
  1623.                             data : {
  1624.                                 labels: {{ cours|raw }},
  1625.                                 datasets: datasets,
  1626.                             }, 
  1627.                              options: {
  1628.                                 plugins: {
  1629.                                     title: {
  1630.                                         display: true,
  1631.                                         text: 'Performances generales annuelles ',
  1632.                                         font: {
  1633.                                             size: 24,
  1634.                                             style: 'bold',
  1635.                                             family: 'Helvetica Neue',
  1636.                                         },
  1637.                                         position: 'bottom',
  1638.                                         
  1639.                                     }
  1640.                                 }
  1641.                             }
  1642.                         });
  1643.        
  1644.              
  1645.                                 
  1646.                                     
  1647.     
  1648.     // Get the chart element for student category
  1649.     let studentCategoryChartElement = document.querySelector(\"#studentCategoryChart\");
  1650.     // Create the chart for student category
  1651.     let studentCategoryChart = new Chart(studentCategoryChartElement, {
  1652.         type: \"pie\",
  1653.         data: {
  1654.             labels: [\"Passed\", \"Failed\"],
  1655.             datasets: [{
  1656.                 data: [/* Add data here for the number of students passed and failed */],
  1657.                 backgroundColor: [\"green\", \"red\"]
  1658.             }]
  1659.         }
  1660.     });
  1661.     // Get the chart element for mention category
  1662.     let officialExamsGraph = document.querySelector(\"#officialExamsGraph\");
  1663.     // Create the chart for mention category
  1664.     const colors = [];
  1665.     const mentionCountCategories = {{mentionCountCategories}};
  1666.     mentionCountCategories.map(cat => {
  1667.         colors.push(randomRgbColor());
  1668.     })
  1669.     let officialExamsChart = new Chart(officialExamsGraph, {
  1670.         type: \"pie\",
  1671.         data: {
  1672.             labels:  {{ mentionCategories|raw }},
  1673.             datasets: [{
  1674.                 data: {{mentionCountCategories|raw}},
  1675.                 backgroundColor: colors
  1676.             }]
  1677.         }, 
  1678.          options: {
  1679.                                 plugins: {
  1680.                                     title: {
  1681.                                         display: true,
  1682.                                         text: 'Resultats aux examens officiels ',
  1683.                                         font: {
  1684.                                             size: 24,
  1685.                                             style: 'bold',
  1686.                                             family: 'Helvetica Neue',
  1687.                                         },
  1688.                                         position: 'bottom',
  1689.                                         
  1690.                                     }
  1691.                                 }
  1692.                             }
  1693.     });
  1694. </script>
  1695. {% endblock %}
  1696. ""classroom/show.html.twig""/var/www/prod/current/templates/classroom/show.html.twig");
  1697.     }
  1698. }