var/cache/dev/twig/d5/d5bf817b6856e9c16627ac052dcfe751.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/index.html.twig */
  16. class __TwigTemplate_7bf976b458906a142e87e348c04952e2 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.             'footer' => [$this'block_footer'],
  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/index.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/index.html.twig"));
  44.         $this->parent $this->loadTemplate("layout/backEndLayout.html.twig""classroom/index.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 "        <div class=\"row  mt-4\">
  64.             <div class=\"col-1\">
  65.                     <a class=\"btn btn-info\" href=\"";
  66.         // line 6
  67.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_new");
  68.         yield "\">
  69.                         <i class=\"fa fa-plus\"></i>                                                 
  70.                     </a>
  71.              </div>
  72.             <div class=\"col-11 jumbotron\">
  73.                 <div class=\"card-header d-inline-flex\">
  74.                     <h4 class=\"my-0 font-weight-normal text-center   text-uppercase\">
  75.                         &emsp; &emsp; &emsp; &emsp; &emsp;  &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp;  Liste des salles de classe 
  76.                     </h4>
  77.                 </div>
  78.                 <table width=\"120%\" class=\"table table-striped table-sm\">
  79.                     <thead>
  80.                         <tr>
  81.                            
  82.                             <th style=\"width:18%;\" class=\"text-center\" scope=\"col\">
  83.                                 Nom
  84.                             </th>
  85.                             <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  86.                                 Professeur titulaire
  87.                             </th>
  88.                             <th style=\"width:75%;\" class=\"text-center\" scope=\"col\">
  89.                                 Action
  90.                             </th>
  91.                         </tr>
  92.                     </thead>
  93.                     <tbody>
  94.                         ";
  95.         // line 36
  96.         $context['_parent'] = $context;
  97.         $context['_seq'] = CoreExtension::ensureTraversable((isset($context["classrooms"]) || array_key_exists("classrooms"$context) ? $context["classrooms"] : (function () { throw new RuntimeError('Variable "classrooms" does not exist.'36$this->source); })()));
  98.         foreach ($context['_seq'] as $context["_key"] => $context["room"]) {
  99.             // line 37
  100.             yield "                            <tr>
  101.                                
  102.                                 <td>
  103.                                     <a href=\"";
  104.             // line 40
  105.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_show", ["id" => CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse40)]), "html"nulltrue);
  106.             yield "\">
  107.                                         ";
  108.             // line 41
  109.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source$context["room"], "name", [], "any"falsefalsefalse41), "html"nulltrue);
  110.             yield "
  111.                                     </a>
  112.                                 </td>
  113.                                 <td>
  114.                                     ";
  115.             // line 45
  116.             if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse45), Twig\Extension\CoreExtension::keys((isset($context["mainTeachers"]) || array_key_exists("mainTeachers"$context) ? $context["mainTeachers"] : (function () { throw new RuntimeError('Variable "mainTeachers" does not exist.'45$this->source); })())))) {
  117.                 // line 46
  118.                 yield "                                       ";
  119.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->sourceCoreExtension::getAttribute($this->env$this->source, (isset($context["mainTeachers"]) || array_key_exists("mainTeachers"$context) ? $context["mainTeachers"] : (function () { throw new RuntimeError('Variable "mainTeachers" does not exist.'46$this->source); })()), CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse46), [], "array"falsefalsefalse46), "fullName", [], "any"falsefalsefalse46), "html"nulltrue);
  120.                 yield "
  121.                                     ";
  122.             }
  123.             // line 48
  124.             yield "
  125.                                 </td>
  126.                                 <td>
  127.                                     <div class=\"btn-group\">
  128.                                     ";
  129.             // line 52
  130.             if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_ADMIN")) {
  131.                 // line 53
  132.                 yield "                                        <a class=\"btn btn-outline-warning \" href=\"";
  133.                 yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_edit", ["id" => CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse53)]), "html"nulltrue);
  134.                 yield "\">
  135.                                             <i class=\"fa fa-edit\">
  136.                                                
  137.                                             </i>
  138.                                         </a>
  139.                                      ";
  140.             }
  141.             // line 59
  142.             yield "                                        <a class=\"btn btn-file\" target=\"_blank\" href=\"";
  143.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_fichesimple", ["id" => CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse59)]), "html"nulltrue);
  144.             yield "\">
  145.                                             <i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\">
  146.                                                 &nbsp;Repport Notes
  147.                                             </i>
  148.                                         </a>
  149.                                         <a class=\"btn btn-outline-info \" target=\"_blank\" href=\"";
  150.             // line 64
  151.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_presentation", ["id" => CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse64)]), "html"nulltrue);
  152.             yield "\">
  153.                                             <i class=\"fa fa-users\" aria-hidden=\"true\">
  154.                                         
  155.                                             </i>
  156.                                         </a>
  157.                                         <a class=\"btn btn-outline-dark \" target=\"_blank\" href=\"";
  158.             // line 69
  159.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classroom_insolvent", ["id" => CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse69)]), "html"nulltrue);
  160.             yield "\">
  161.                                             <i class=\"fa fa-users\" aria-hidden=\"true\">
  162.                                                 
  163.                                             </i>
  164.                                         </a>
  165.                                         <a class=\"btn btn-file\" target=\"_blank\" href=\"";
  166.             // line 74
  167.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_recapitulatif", ["room" => CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse74), "seq" => (isset($context["seq"]) || array_key_exists("seq"$context) ? $context["seq"] : (function () { throw new RuntimeError('Variable "seq" does not exist.'74$this->source); })())]), "html"nulltrue);
  168.             yield "\">
  169.                                             <i class=\"fa fa-file\" aria-hidden=\"true\">
  170.                                                 &nbsp;Recap. vierge
  171.                                             </i>
  172.                                         </a>
  173.                                         ";
  174.             // line 84
  175.             yield "                                        <a class=\"btn btn-file\" target=\"_blank\" href=\"";
  176.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_payment_plan_print", ["id" => CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse84)]), "html"nulltrue);
  177.             yield "\">
  178.                                             <i class=\"fa fa-money\" aria-hidden=\"true\">
  179.                                                 &nbsp;Echeancier
  180.                                             </i>
  181.                                         </a>
  182.                                         <a class=\"btn btn-file\" target=\"_blank\" href=\"";
  183.             // line 89
  184.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_disciplinary_record", ["id" => CoreExtension::getAttribute($this->env$this->source$context["room"], "id", [], "any"falsefalsefalse89)]), "html"nulltrue);
  185.             yield "\">
  186.                                             <i class=\"fa fa-th-list\" aria-hidden=\"true\">
  187.                                                 &nbsp;Fiche discipl.
  188.                                             </i>
  189.                                         </a>
  190.                                     </div>
  191.                                 </td>
  192.                             </tr>
  193.                         ";
  194.         }
  195.         $_parent $context['_parent'];
  196.         unset($context['_seq'], $context['_key'], $context['room'], $context['_parent']);
  197.         $context array_intersect_key($context$_parent) + $_parent;
  198.         // line 99
  199.         yield "                    </tbody>
  200.                 </table>
  201.             </div>
  202.         </div>
  203. ";
  204.         
  205.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206.         
  207.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  208.         yield from [];
  209.     }
  210.     // line 104
  211.     /**
  212.      * @return iterable<null|scalar|\Stringable>
  213.      */
  214.     public function block_footer(array $context, array $blocks = []): iterable
  215.     {
  216.         $macros $this->macros;
  217.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  218.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  219.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  220.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""footer"));
  221.         // line 105
  222.         yield "    ";
  223.         yield from $this->yieldParentBlock("footer"$context$blocks);
  224.         yield "
  225. ";
  226.         
  227.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  228.         
  229.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  230.         yield from [];
  231.     }
  232.     /**
  233.      * @codeCoverageIgnore
  234.      */
  235.     public function getTemplateName(): string
  236.     {
  237.         return "classroom/index.html.twig";
  238.     }
  239.     /**
  240.      * @codeCoverageIgnore
  241.      */
  242.     public function isTraitable(): bool
  243.     {
  244.         return false;
  245.     }
  246.     /**
  247.      * @codeCoverageIgnore
  248.      */
  249.     public function getDebugInfo(): array
  250.     {
  251.         return array (  246 => 105,  233 => 104,  218 => 99,  202 => 89,  193 => 84,  185 => 74,  177 => 69,  169 => 64,  160 => 59,  150 => 53,  148 => 52,  142 => 48,  136 => 46,  134 => 45,  127 => 41,  123 => 40,  118 => 37,  114 => 36,  81 => 6,  77 => 4,  64 => 3,  41 => 1,);
  252.     }
  253.     public function getSourceContext(): Source
  254.     {
  255.         return new Source("{% extends 'layout/backEndLayout.html.twig' %}
  256. {% block content %}
  257.         <div class=\"row  mt-4\">
  258.             <div class=\"col-1\">
  259.                     <a class=\"btn btn-info\" href=\"{{ path('admin_classrooms_new') }}\">
  260.                         <i class=\"fa fa-plus\"></i>                                                 
  261.                     </a>
  262.              </div>
  263.             <div class=\"col-11 jumbotron\">
  264.                 <div class=\"card-header d-inline-flex\">
  265.                     <h4 class=\"my-0 font-weight-normal text-center   text-uppercase\">
  266.                         &emsp; &emsp; &emsp; &emsp; &emsp;  &emsp; &emsp; &emsp; &emsp; &emsp; &emsp; &emsp;  Liste des salles de classe 
  267.                     </h4>
  268.                 </div>
  269.                 <table width=\"120%\" class=\"table table-striped table-sm\">
  270.                     <thead>
  271.                         <tr>
  272.                            
  273.                             <th style=\"width:18%;\" class=\"text-center\" scope=\"col\">
  274.                                 Nom
  275.                             </th>
  276.                             <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  277.                                 Professeur titulaire
  278.                             </th>
  279.                             <th style=\"width:75%;\" class=\"text-center\" scope=\"col\">
  280.                                 Action
  281.                             </th>
  282.                         </tr>
  283.                     </thead>
  284.                     <tbody>
  285.                         {% for room in classrooms %}
  286.                             <tr>
  287.                                
  288.                                 <td>
  289.                                     <a href=\"{{ path('admin_classrooms_show', {id: room.id }) }}\">
  290.                                         {{ room.name }}
  291.                                     </a>
  292.                                 </td>
  293.                                 <td>
  294.                                     {% if room.id in mainTeachers|keys %}
  295.                                        {{  mainTeachers[room.id].fullName}}
  296.                                     {% endif %}
  297.                                 </td>
  298.                                 <td>
  299.                                     <div class=\"btn-group\">
  300.                                     {% if is_granted('ROLE_ADMIN') %}
  301.                                         <a class=\"btn btn-outline-warning \" href=\"{{ path('admin_classrooms_edit', {id: room.id}) }}\">
  302.                                             <i class=\"fa fa-edit\">
  303.                                                
  304.                                             </i>
  305.                                         </a>
  306.                                      {% endif %}
  307.                                         <a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_classrooms_fichesimple', {id: room.id}) }}\">
  308.                                             <i class=\"fa fa-file-pdf-o\" aria-hidden=\"true\">
  309.                                                 &nbsp;Repport Notes
  310.                                             </i>
  311.                                         </a>
  312.                                         <a class=\"btn btn-outline-info \" target=\"_blank\" href=\"{{ path('admin_classrooms_presentation', {id: room.id}) }}\">
  313.                                             <i class=\"fa fa-users\" aria-hidden=\"true\">
  314.                                         
  315.                                             </i>
  316.                                         </a>
  317.                                         <a class=\"btn btn-outline-dark \" target=\"_blank\" href=\"{{ path('admin_classroom_insolvent', {id: room.id}) }}\">
  318.                                             <i class=\"fa fa-users\" aria-hidden=\"true\">
  319.                                                 
  320.                                             </i>
  321.                                         </a>
  322.                                         <a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_classrooms_recapitulatif', {room: room.id, seq : seq}) }}\">
  323.                                             <i class=\"fa fa-file\" aria-hidden=\"true\">
  324.                                                 &nbsp;Recap. vierge
  325.                                             </i>
  326.                                         </a>
  327.                                         {#<a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_classrooms_blanc_ann', {room: room.id}) }}\">
  328.                                             <i class=\"fa fa-th-list\" aria-hidden=\"true\">
  329.                                                 &nbsp;Fiche annu.
  330.                                             </i>
  331.                                         </a>#}
  332.                                         <a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_payment_plan_print', {id: room.id}) }}\">
  333.                                             <i class=\"fa fa-money\" aria-hidden=\"true\">
  334.                                                 &nbsp;Echeancier
  335.                                             </i>
  336.                                         </a>
  337.                                         <a class=\"btn btn-file\" target=\"_blank\" href=\"{{ path('admin_classrooms_disciplinary_record', {id: room.id}) }}\">
  338.                                             <i class=\"fa fa-th-list\" aria-hidden=\"true\">
  339.                                                 &nbsp;Fiche discipl.
  340.                                             </i>
  341.                                         </a>
  342.                                     </div>
  343.                                 </td>
  344.                             </tr>
  345.                         {% endfor %}
  346.                     </tbody>
  347.                 </table>
  348.             </div>
  349.         </div>
  350. {% endblock %}
  351. {% block footer %}
  352.     {{ parent() }}
  353. {% endblock %}
  354. ""classroom/index.html.twig""/var/www/prod/current/templates/classroom/index.html.twig");
  355.     }
  356. }