var/cache/dev/twig/af/af8b05ad1b3ff67280347c55e4b58047.php line 53

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. /* course/index.html.twig */
  16. class __TwigTemplate_8f904713024ad378bd905429c376d71e 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. ];
  30. }
  31. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32. {
  33. // line 1
  34. return "layout/backEndLayout.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "course/index.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "course/index.html.twig"));
  43. $this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "course/index.html.twig", 1);
  44. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. }
  48. // line 3
  49. /**
  50. * @return iterable<null|scalar|\Stringable>
  51. */
  52. public function block_content(array $context, array $blocks = []): iterable
  53. {
  54. $macros = $this->macros;
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  59. // line 4
  60. yield "
  61. <div class=\"row mt-4\">
  62. <div class=\"col-1\">
  63. <a class=\"btn btn-info\" href=\"";
  64. // line 7
  65. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses_new");
  66. yield "\">
  67. <i class=\"fa fa-plus\"></i>
  68. </a>
  69. </div>
  70. <div class=\"col-11 jumbotron\">
  71. <div class=\"m-1 box-shadow\">
  72. <div class=\"card-header\">
  73. <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">
  74. Liste des cours par classe et par module
  75. </h4>
  76. </div>
  77. <table class=\"table table-striped\">
  78. <thead>
  79. <tr>
  80. <th style=\"width:5%;\" class=\"text-center\" scope=\"col\">
  81. #
  82. </th>
  83. <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  84. Domaine
  85. </th>
  86. <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  87. Module
  88. </th>
  89. <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  90. Code
  91. </th>
  92. <th style=\"width:20%;\" class=\"text-center\" scope=\"col\">
  93. Insitule
  94. </th>
  95. <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  96. Coef
  97. </th>
  98. <th style=\"width:20%;\" class=\"text-center\" scope=\"col\">
  99. Action
  100. </th>
  101. </tr>
  102. </thead>
  103. <tbody>
  104. ";
  105. // line 56
  106. $context['_parent'] = $context;
  107. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["rooms"]) || array_key_exists("rooms", $context) ? $context["rooms"] : (function () { throw new RuntimeError('Variable "rooms" does not exist.', 56, $this->source); })()));
  108. $context['loop'] = [
  109. 'parent' => $context['_parent'],
  110. 'index0' => 0,
  111. 'index' => 1,
  112. 'first' => true,
  113. ];
  114. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  115. $length = count($context['_seq']);
  116. $context['loop']['revindex0'] = $length - 1;
  117. $context['loop']['revindex'] = $length;
  118. $context['loop']['length'] = $length;
  119. $context['loop']['last'] = 1 === $length;
  120. }
  121. foreach ($context['_seq'] as $context["_key"] => $context["room"]) {
  122. // line 57
  123. yield " <tr>
  124. <td class=\"text-center\" colspan=\"1\" scope=\"row\">
  125. ";
  126. // line 59
  127. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 59), "html", null, true);
  128. yield "
  129. </th>
  130. <td class=\"text-center\" colspan=\"7\">
  131. <a href=\"";
  132. // line 62
  133. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_classrooms_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["room"], "id", [], "any", false, false, false, 62)]), "html", null, true);
  134. yield "\">
  135. <h3>
  136. ";
  137. // line 64
  138. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["room"], "name", [], "any", false, false, false, 64), "html", null, true);
  139. yield "
  140. </h3>
  141. </a>
  142. </td>
  143. </tr>
  144. ";
  145. // line 69
  146. $context['_parent'] = $context;
  147. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["room"], "modules", [], "any", false, false, false, 69));
  148. $context['loop'] = [
  149. 'parent' => $context['_parent'],
  150. 'index0' => 0,
  151. 'index' => 1,
  152. 'first' => true,
  153. ];
  154. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  155. $length = count($context['_seq']);
  156. $context['loop']['revindex0'] = $length - 1;
  157. $context['loop']['revindex'] = $length;
  158. $context['loop']['length'] = $length;
  159. $context['loop']['last'] = 1 === $length;
  160. }
  161. foreach ($context['_seq'] as $context["_key"] => $context["module"]) {
  162. // line 70
  163. yield " <tr>
  164. <td class=\"text-center\" colspan=\"4\" scope=\"row\">
  165. ";
  166. // line 72
  167. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 72), "html", null, true);
  168. yield "
  169. </th>
  170. <td class=\"text-center\" colspan=\"4\">
  171. <a href=\"";
  172. // line 75
  173. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_modules_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["module"], "id", [], "any", false, false, false, 75)]), "html", null, true);
  174. yield "\">
  175. <h3>
  176. ";
  177. // line 77
  178. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["module"], "name", [], "any", false, false, false, 77), "html", null, true);
  179. yield "
  180. </h3>
  181. </a>
  182. </td>
  183. </tr>
  184. ";
  185. // line 82
  186. $context['_parent'] = $context;
  187. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["module"], "courses", [], "any", false, false, false, 82));
  188. $context['loop'] = [
  189. 'parent' => $context['_parent'],
  190. 'index0' => 0,
  191. 'index' => 1,
  192. 'first' => true,
  193. ];
  194. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  195. $length = count($context['_seq']);
  196. $context['loop']['revindex0'] = $length - 1;
  197. $context['loop']['revindex'] = $length;
  198. $context['loop']['length'] = $length;
  199. $context['loop']['last'] = 1 === $length;
  200. }
  201. foreach ($context['_seq'] as $context["_key"] => $context["course"]) {
  202. // line 83
  203. yield " <tr>
  204. <td style=\"width:5%;\" class=\"text-center\" scope=\"row\">
  205. ";
  206. // line 85
  207. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, false, 85), "html", null, true);
  208. yield "
  209. </th>
  210. <td style=\"width:15%;\" class=\"text-center\">
  211. <a href=\"";
  212. // line 88
  213. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_domains_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["course"], "domain", [], "any", false, false, false, 88), "id", [], "any", false, false, false, 88)]), "html", null, true);
  214. yield "\">
  215. <h3>
  216. ";
  217. // line 90
  218. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["course"], "domain", [], "any", false, false, false, 90), "name", [], "any", false, false, false, 90), "html", null, true);
  219. yield "
  220. </h3>
  221. </a>
  222. </td>
  223. <td style=\"width:15%;\" class=\"text-center\">
  224. <a href=\"";
  225. // line 95
  226. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_modules_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["course"], "module", [], "any", false, false, false, 95), "id", [], "any", false, false, false, 95)]), "html", null, true);
  227. yield "\">
  228. <h3>
  229. ";
  230. // line 97
  231. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["course"], "module", [], "any", false, false, false, 97), "name", [], "any", false, false, false, 97), "html", null, true);
  232. yield "
  233. </h3>
  234. </a>
  235. </td>
  236. <td style=\"width:10%;\" class=\"text-center\">
  237. <h3>
  238. ";
  239. // line 103
  240. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "code", [], "any", false, false, false, 103), "html", null, true);
  241. yield "
  242. </h3>
  243. </td>
  244. <td style=\"width:20%;\" class=\"text-center\">
  245. <h3>
  246. ";
  247. // line 108
  248. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "wording", [], "any", false, false, false, 108), "html", null, true);
  249. yield "
  250. </h3>
  251. </td>
  252. <td style=\"width:15%;\" class=\"text-center\">
  253. <h3>
  254. ";
  255. // line 113
  256. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["course"], "coefficient", [], "any", false, false, false, 113), "html", null, true);
  257. yield "
  258. </h3>
  259. </td>
  260. <td style=\"width:15%;\" class=\"text-center\">
  261. <div class=\"btn-group\">
  262. <a class=\"btn btn-outline-info\" href=\"";
  263. // line 121
  264. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 121)]), "html", null, true);
  265. yield "\">
  266. <i class=\"fa fa-eye\" aria-hidden=\"true\"></i>
  267. </a>
  268. <a class=\"btn btn-outline-warning\" href=\"";
  269. // line 124
  270. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_courses_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["course"], "id", [], "any", false, false, false, 124)]), "html", null, true);
  271. yield "\">
  272. <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
  273. </a>
  274. </div>
  275. </td>
  276. </tr>
  277. ";
  278. ++$context['loop']['index0'];
  279. ++$context['loop']['index'];
  280. $context['loop']['first'] = false;
  281. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  282. --$context['loop']['revindex0'];
  283. --$context['loop']['revindex'];
  284. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  285. }
  286. }
  287. $_parent = $context['_parent'];
  288. unset($context['_seq'], $context['_key'], $context['course'], $context['_parent'], $context['loop']);
  289. $context = array_intersect_key($context, $_parent) + $_parent;
  290. // line 132
  291. yield " ";
  292. ++$context['loop']['index0'];
  293. ++$context['loop']['index'];
  294. $context['loop']['first'] = false;
  295. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  296. --$context['loop']['revindex0'];
  297. --$context['loop']['revindex'];
  298. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  299. }
  300. }
  301. $_parent = $context['_parent'];
  302. unset($context['_seq'], $context['_key'], $context['module'], $context['_parent'], $context['loop']);
  303. $context = array_intersect_key($context, $_parent) + $_parent;
  304. // line 133
  305. yield " ";
  306. ++$context['loop']['index0'];
  307. ++$context['loop']['index'];
  308. $context['loop']['first'] = false;
  309. if (isset($context['loop']['revindex0'], $context['loop']['revindex'])) {
  310. --$context['loop']['revindex0'];
  311. --$context['loop']['revindex'];
  312. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  313. }
  314. }
  315. $_parent = $context['_parent'];
  316. unset($context['_seq'], $context['_key'], $context['room'], $context['_parent'], $context['loop']);
  317. $context = array_intersect_key($context, $_parent) + $_parent;
  318. // line 134
  319. yield " </tbody>
  320. </table>
  321. </div>
  322. </div>
  323. </div>
  324. ";
  325. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  326. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  327. yield from [];
  328. }
  329. /**
  330. * @codeCoverageIgnore
  331. */
  332. public function getTemplateName(): string
  333. {
  334. return "course/index.html.twig";
  335. }
  336. /**
  337. * @codeCoverageIgnore
  338. */
  339. public function isTraitable(): bool
  340. {
  341. return false;
  342. }
  343. /**
  344. * @codeCoverageIgnore
  345. */
  346. public function getDebugInfo(): array
  347. {
  348. return array ( 350 => 134, 336 => 133, 322 => 132, 300 => 124, 294 => 121, 283 => 113, 275 => 108, 267 => 103, 258 => 97, 253 => 95, 245 => 90, 240 => 88, 234 => 85, 230 => 83, 213 => 82, 205 => 77, 200 => 75, 194 => 72, 190 => 70, 173 => 69, 165 => 64, 160 => 62, 154 => 59, 150 => 57, 133 => 56, 81 => 7, 76 => 4, 63 => 3, 40 => 1,);
  349. }
  350. public function getSourceContext(): Source
  351. {
  352. return new Source("{% extends 'layout/backEndLayout.html.twig' %}
  353. {% block content %}
  354. <div class=\"row mt-4\">
  355. <div class=\"col-1\">
  356. <a class=\"btn btn-info\" href=\"{{ path('admin_courses_new') }}\">
  357. <i class=\"fa fa-plus\"></i>
  358. </a>
  359. </div>
  360. <div class=\"col-11 jumbotron\">
  361. <div class=\"m-1 box-shadow\">
  362. <div class=\"card-header\">
  363. <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\">
  364. Liste des cours par classe et par module
  365. </h4>
  366. </div>
  367. <table class=\"table table-striped\">
  368. <thead>
  369. <tr>
  370. <th style=\"width:5%;\" class=\"text-center\" scope=\"col\">
  371. #
  372. </th>
  373. <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  374. Domaine
  375. </th>
  376. <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  377. Module
  378. </th>
  379. <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  380. Code
  381. </th>
  382. <th style=\"width:20%;\" class=\"text-center\" scope=\"col\">
  383. Insitule
  384. </th>
  385. <th style=\"width:15%;\" class=\"text-center\" scope=\"col\">
  386. Coef
  387. </th>
  388. <th style=\"width:20%;\" class=\"text-center\" scope=\"col\">
  389. Action
  390. </th>
  391. </tr>
  392. </thead>
  393. <tbody>
  394. {% for room in rooms %}
  395. <tr>
  396. <td class=\"text-center\" colspan=\"1\" scope=\"row\">
  397. {{ loop.index }}
  398. </th>
  399. <td class=\"text-center\" colspan=\"7\">
  400. <a href=\"{{ path('admin_classrooms_show', {id: room.id}) }}\">
  401. <h3>
  402. {{ room.name }}
  403. </h3>
  404. </a>
  405. </td>
  406. </tr>
  407. {% for module in room.modules %}
  408. <tr>
  409. <td class=\"text-center\" colspan=\"4\" scope=\"row\">
  410. {{ loop.index }}
  411. </th>
  412. <td class=\"text-center\" colspan=\"4\">
  413. <a href=\"{{ path('admin_modules_show', {id: module.id}) }}\">
  414. <h3>
  415. {{ module.name }}
  416. </h3>
  417. </a>
  418. </td>
  419. </tr>
  420. {% for course in module.courses %}
  421. <tr>
  422. <td style=\"width:5%;\" class=\"text-center\" scope=\"row\">
  423. {{ loop.index }}
  424. </th>
  425. <td style=\"width:15%;\" class=\"text-center\">
  426. <a href=\"{{ path('admin_domains_show', {id: course.domain.id}) }}\">
  427. <h3>
  428. {{ course.domain.name }}
  429. </h3>
  430. </a>
  431. </td>
  432. <td style=\"width:15%;\" class=\"text-center\">
  433. <a href=\"{{ path('admin_modules_show', {id: course.module.id}) }}\">
  434. <h3>
  435. {{ course.module.name }}
  436. </h3>
  437. </a>
  438. </td>
  439. <td style=\"width:10%;\" class=\"text-center\">
  440. <h3>
  441. {{ course.code }}
  442. </h3>
  443. </td>
  444. <td style=\"width:20%;\" class=\"text-center\">
  445. <h3>
  446. {{ course.wording }}
  447. </h3>
  448. </td>
  449. <td style=\"width:15%;\" class=\"text-center\">
  450. <h3>
  451. {{ course.coefficient }}
  452. </h3>
  453. </td>
  454. <td style=\"width:15%;\" class=\"text-center\">
  455. <div class=\"btn-group\">
  456. <a class=\"btn btn-outline-info\" href=\"{{ path('admin_courses_show', {id: course.id}) }}\">
  457. <i class=\"fa fa-eye\" aria-hidden=\"true\"></i>
  458. </a>
  459. <a class=\"btn btn-outline-warning\" href=\"{{ path('admin_courses_edit', {id: course.id}) }}\">
  460. <i class=\"fa fa-pencil-square-o\" aria-hidden=\"true\"></i>
  461. </a>
  462. </div>
  463. </td>
  464. </tr>
  465. {% endfor %}
  466. {% endfor %}
  467. {% endfor %}
  468. </tbody>
  469. </table>
  470. </div>
  471. </div>
  472. </div>
  473. {% endblock %}
  474. ", "course/index.html.twig", "/var/www/prod/liveedu/templates/course/index.html.twig");
  475. }
  476. }