var/cache/dev/twig/e2/e20b51ef340a008e097d4b34be64aa97.php line 44

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