var/cache/dev/twig/aa/aabb4649fca9503f38e8b7c5962566d7.php line 56

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. /* abscence_sheet/index.html.twig */
  16. class __TwigTemplate_9da9deaf6f37448d0839866b9a72c188 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", "abscence_sheet/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", "abscence_sheet/index.html.twig"));
  43. // line 3
  44. $this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 3, $this->source); })()), ["bootstrap_4_layout.html.twig"], true);
  45. // line 1
  46. $this->parent = $this->loadTemplate("layout/backEndLayout.html.twig", "abscence_sheet/index.html.twig", 1);
  47. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  50. }
  51. // line 5
  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 6
  63. yield " <div class=\"row mt-4\">
  64. <div class=\"col-1\">
  65. <a class=\"btn btn-info\" href=\"";
  66. // line 8
  67. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscence_sheet_new");
  68. yield "\">
  69. <i class=\"fa fa-plus\"></i>
  70. </a>
  71. </div>
  72. <div class=\"col-11 jumbotron\" >
  73. \t\t\t\t";
  74. // line 14
  75. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 14, $this->source); })()), 'form_start');
  76. yield "
  77. \t\t\t\t<div class=\"form-row row\">
  78. \t\t\t\t\t<div class=\"col-md-3\">
  79. \t\t\t\t\t\t";
  80. // line 17
  81. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 17, $this->source); })()), "room", [], "any", false, false, false, 17), 'row');
  82. yield "
  83. \t\t\t\t\t</div>
  84. \t\t\t\t\t<div class=\"col-md-3\">
  85. \t\t\t\t\t\t";
  86. // line 20
  87. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 20, $this->source); })()), "sequence", [], "any", false, false, false, 20), 'row');
  88. yield "
  89. \t\t\t\t\t</div>
  90. <div class=\"col-md-3\">
  91. \t\t\t\t\t\t";
  92. // line 23
  93. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 23, $this->source); })()), "quater", [], "any", false, false, false, 23), 'row');
  94. yield "
  95. \t\t\t\t\t</div>
  96. \t\t\t\t\t
  97. \t\t\t\t\t<div class=\"col-md-3\">
  98. \t\t\t\t\t\t<button class=\"btn btn-primary\" type=\"submit\">
  99. \t\t\t\t\t\t\t\t\t<b>Rechercher</b>
  100. \t\t\t\t\t\t</button>
  101. \t\t\t\t\t</div>
  102. \t\t\t\t</div>
  103. \t\t\t\t";
  104. // line 32
  105. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["searchForm"]) || array_key_exists("searchForm", $context) ? $context["searchForm"] : (function () { throw new RuntimeError('Variable "searchForm" does not exist.', 32, $this->source); })()), 'form_end');
  106. yield "
  107. \t\t\t </div>
  108. <table class=\"table\">
  109. <thead>
  110. <tr>
  111. <th>Id</th>
  112. <th>Session</th>
  113. <th>StartDate</th>
  114. <th>EndDate</th>
  115. <th>Classe</th>
  116. <th>actions</th>
  117. </tr>
  118. </thead>
  119. <tbody>
  120. ";
  121. // line 47
  122. $context['_parent'] = $context;
  123. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 47, $this->source); })()));
  124. $context['_iterated'] = false;
  125. foreach ($context['_seq'] as $context["_key"] => $context["abscence_sheet"]) {
  126. // line 48
  127. yield " <tr>
  128. <td>";
  129. // line 49
  130. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 49), "html", null, true);
  131. yield "</td>
  132. <td>";
  133. // line 50
  134. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "sequence", [], "any", false, false, false, 50), "code", [], "any", false, false, false, 50), "html", null, true);
  135. yield "</td>
  136. <td>";
  137. // line 51
  138. yield ((CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "startDate", [], "any", false, false, false, 51)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "startDate", [], "any", false, false, false, 51), "Y-m-d"), "html", null, true)) : (""));
  139. yield "</td>
  140. <td>";
  141. // line 52
  142. yield ((CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "endDate", [], "any", false, false, false, 52)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "endDate", [], "any", false, false, false, 52), "Y-m-d"), "html", null, true)) : (""));
  143. yield "</td>
  144. <td>";
  145. // line 53
  146. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "classRoom", [], "any", false, false, false, 53), "name", [], "any", false, false, false, 53), "html", null, true);
  147. yield "</td>
  148. <td>
  149. <a class=\"btn btn-outline-info \" href=\"";
  150. // line 55
  151. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscence_sheet_pdf", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 55)]), "html", null, true);
  152. yield "\">
  153. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-cloud-download\">
  154. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  155. \t\t\t\t\t\t\t\t\t\t</a>
  156. <a class=\"btn btn-outline-warning \" href=\"";
  157. // line 59
  158. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscence_sheet_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 59)]), "html", null, true);
  159. yield "\"><i class=\"fa fa-edit\">
  160. \t\t\t\t\t\t\t\t\t\t\t</i>
  161. </a>
  162. <a class=\"btn btn-outline-danger\" href=\"#\" onclick= \"event.preventDefault() ; confirm('Are you sure ?') && document.getElementById('js-abscence-sheet-form-";
  163. // line 62
  164. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 62), "html", null, true);
  165. yield "').submit();\"> <i class=\"fa fa-trash\"></i> </a>
  166. \t\t\t\t\t\t\t\t\t\t<form id=\"js-abscence-sheet-form-";
  167. // line 63
  168. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 63), "html", null, true);
  169. yield "\" action=\"";
  170. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_abscences_sheet_delete", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 63)]), "html", null, true);
  171. yield "\" method=\"post\" style=\"display: none;\">
  172. \t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"csrf_token\" value=\"";
  173. // line 64
  174. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken(("abscence_sheet_deletion" . CoreExtension::getAttribute($this->env, $this->source, $context["abscence_sheet"], "id", [], "any", false, false, false, 64))), "html", null, true);
  175. yield "\" id=\"\">
  176. \t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_method\" value=\"DELETE\">
  177. \t\t\t\t\t\t\t\t\t\t</form>
  178. </td>
  179. </tr>
  180. ";
  181. $context['_iterated'] = true;
  182. }
  183. // line 70
  184. if (!$context['_iterated']) {
  185. // line 71
  186. yield " <tr>
  187. <td colspan=\"4\">no records found</td>
  188. </tr>
  189. ";
  190. }
  191. $_parent = $context['_parent'];
  192. unset($context['_seq'], $context['_key'], $context['abscence_sheet'], $context['_parent'], $context['_iterated']);
  193. $context = array_intersect_key($context, $_parent) + $_parent;
  194. // line 75
  195. yield " </tbody>
  196. </table>
  197. <div class=\"navigation text-center\">
  198. \t\t\t\t\t";
  199. // line 78
  200. yield $this->extensions['Knp\Bundle\PaginatorBundle\Twig\Extension\PaginationExtension']->render($this->env, (isset($context["pagination"]) || array_key_exists("pagination", $context) ? $context["pagination"] : (function () { throw new RuntimeError('Variable "pagination" does not exist.', 78, $this->source); })()));
  201. yield "
  202. \t</div>
  203. </div>
  204. ";
  205. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  206. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  207. yield from [];
  208. }
  209. /**
  210. * @codeCoverageIgnore
  211. */
  212. public function getTemplateName(): string
  213. {
  214. return "abscence_sheet/index.html.twig";
  215. }
  216. /**
  217. * @codeCoverageIgnore
  218. */
  219. public function isTraitable(): bool
  220. {
  221. return false;
  222. }
  223. /**
  224. * @codeCoverageIgnore
  225. */
  226. public function getDebugInfo(): array
  227. {
  228. return array ( 219 => 78, 214 => 75, 205 => 71, 203 => 70, 192 => 64, 186 => 63, 182 => 62, 176 => 59, 169 => 55, 164 => 53, 160 => 52, 156 => 51, 152 => 50, 148 => 49, 145 => 48, 140 => 47, 122 => 32, 110 => 23, 104 => 20, 98 => 17, 92 => 14, 83 => 8, 79 => 6, 66 => 5, 55 => 1, 53 => 3, 40 => 1,);
  229. }
  230. public function getSourceContext(): Source
  231. {
  232. return new Source("{% extends 'layout/backEndLayout.html.twig' %}
  233. {% form_theme searchForm 'bootstrap_4_layout.html.twig' %}
  234. {% block content %}
  235. <div class=\"row mt-4\">
  236. <div class=\"col-1\">
  237. <a class=\"btn btn-info\" href=\"{{ path('admin_abscence_sheet_new') }}\">
  238. <i class=\"fa fa-plus\"></i>
  239. </a>
  240. </div>
  241. <div class=\"col-11 jumbotron\" >
  242. \t\t\t\t{{form_start(searchForm)}}
  243. \t\t\t\t<div class=\"form-row row\">
  244. \t\t\t\t\t<div class=\"col-md-3\">
  245. \t\t\t\t\t\t{{form_row(searchForm.room)}}
  246. \t\t\t\t\t</div>
  247. \t\t\t\t\t<div class=\"col-md-3\">
  248. \t\t\t\t\t\t{{form_row(searchForm.sequence)}}
  249. \t\t\t\t\t</div>
  250. <div class=\"col-md-3\">
  251. \t\t\t\t\t\t{{form_row(searchForm.quater)}}
  252. \t\t\t\t\t</div>
  253. \t\t\t\t\t
  254. \t\t\t\t\t<div class=\"col-md-3\">
  255. \t\t\t\t\t\t<button class=\"btn btn-primary\" type=\"submit\">
  256. \t\t\t\t\t\t\t\t\t<b>Rechercher</b>
  257. \t\t\t\t\t\t</button>
  258. \t\t\t\t\t</div>
  259. \t\t\t\t</div>
  260. \t\t\t\t{{form_end(searchForm)}}
  261. \t\t\t </div>
  262. <table class=\"table\">
  263. <thead>
  264. <tr>
  265. <th>Id</th>
  266. <th>Session</th>
  267. <th>StartDate</th>
  268. <th>EndDate</th>
  269. <th>Classe</th>
  270. <th>actions</th>
  271. </tr>
  272. </thead>
  273. <tbody>
  274. {% for abscence_sheet in pagination %}
  275. <tr>
  276. <td>{{ abscence_sheet.id }}</td>
  277. <td>{{ abscence_sheet.sequence.code }}</td>
  278. <td>{{ abscence_sheet.startDate ? abscence_sheet.startDate|date('Y-m-d') : '' }}</td>
  279. <td>{{ abscence_sheet.endDate ? abscence_sheet.endDate|date('Y-m-d') : '' }}</td>
  280. <td>{{ abscence_sheet.classRoom.name }}</td>
  281. <td>
  282. <a class=\"btn btn-outline-info \" href=\"{{ path('admin_abscence_sheet_pdf', {id: abscence_sheet.id}) }}\">
  283. \t\t\t\t\t\t\t\t\t\t\t<i class=\"fa fa-cloud-download\">
  284. \t\t\t\t\t\t\t\t\t\t\t\t</i>
  285. \t\t\t\t\t\t\t\t\t\t</a>
  286. <a class=\"btn btn-outline-warning \" href=\"{{ path('admin_abscence_sheet_edit', {'id': abscence_sheet.id}) }}\"><i class=\"fa fa-edit\">
  287. \t\t\t\t\t\t\t\t\t\t\t</i>
  288. </a>
  289. <a class=\"btn btn-outline-danger\" href=\"#\" onclick= \"event.preventDefault() ; confirm('Are you sure ?') && document.getElementById('js-abscence-sheet-form-{{abscence_sheet.id}}').submit();\"> <i class=\"fa fa-trash\"></i> </a>
  290. \t\t\t\t\t\t\t\t\t\t<form id=\"js-abscence-sheet-form-{{abscence_sheet.id}}\" action=\"{{path('admin_abscences_sheet_delete', {id: abscence_sheet.id})}}\" method=\"post\" style=\"display: none;\">
  291. \t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"csrf_token\" value=\"{{ csrf_token('abscence_sheet_deletion' ~ abscence_sheet.id ) }}\" id=\"\">
  292. \t\t\t\t\t\t\t\t\t\t\t<input type=\"hidden\" name=\"_method\" value=\"DELETE\">
  293. \t\t\t\t\t\t\t\t\t\t</form>
  294. </td>
  295. </tr>
  296. {% else %}
  297. <tr>
  298. <td colspan=\"4\">no records found</td>
  299. </tr>
  300. {% endfor %}
  301. </tbody>
  302. </table>
  303. <div class=\"navigation text-center\">
  304. \t\t\t\t\t{{ knp_pagination_render(pagination) }}
  305. \t</div>
  306. </div>
  307. {% endblock %}
  308. ", "abscence_sheet/index.html.twig", "/var/www/prod/liveedu/templates/abscence_sheet/index.html.twig");
  309. }
  310. }