var/cache/dev/twig/3a/3a2b7e01560a8ea615a79cb69a08ed2c.php line 45

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\Sandbox\SecurityNotAllowedTestError;
  13. use Twig\Source;
  14. use Twig\Template;
  15. use Twig\TemplateWrapper;
  16. /* child/index.html.twig */
  17. class __TwigTemplate_800a0459926d56d67335c9de8d867eae extends Template
  18. {
  19. private Source $source;
  20. /**
  21. * @var array<string, Template>
  22. */
  23. private array $macros = [];
  24. public function __construct(Environment $env)
  25. {
  26. parent::__construct($env);
  27. $this->source = $this->getSourceContext();
  28. $this->blocks = [
  29. 'title' => [$this, 'block_title'],
  30. 'body' => [$this, 'block_body'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "base.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "child/index.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "child/index.html.twig"));
  45. $this->parent = $this->load("base.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 3
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_title(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  61. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Child index", [], "messages");
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64. yield from [];
  65. }
  66. // line 5
  67. /**
  68. * @return iterable<null|scalar|\Stringable>
  69. */
  70. public function block_body(array $context, array $blocks = []): iterable
  71. {
  72. $macros = $this->macros;
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  77. // line 6
  78. yield "
  79. <h1>";
  80. // line 7
  81. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Child index", [], "messages");
  82. yield "</h1>
  83. <div class=\"table-scrollable\">
  84. <table>
  85. <thead>
  86. <tr>
  87. <th>";
  88. // line 12
  89. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Id", [], "messages");
  90. yield "</th>
  91. <th>";
  92. // line 13
  93. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Child\x27s name", [], "messages");
  94. yield "</th>
  95. <th>";
  96. // line 14
  97. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Birth date", [], "messages");
  98. yield "</th>
  99. <th>";
  100. // line 15
  101. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Birth place", [], "messages");
  102. yield "</th>
  103. <th>";
  104. // line 16
  105. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Sex", [], "messages");
  106. yield "</th>
  107. <th>";
  108. // line 17
  109. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Father\x27s name", [], "messages");
  110. yield "</th>
  111. <th>";
  112. // line 18
  113. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Mother\x27s name", [], "messages");
  114. yield "</th>
  115. <th>";
  116. // line 19
  117. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Other Contact", [], "messages");
  118. yield "</th>
  119. <th>";
  120. // line 20
  121. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("actions", [], "messages");
  122. yield "</th>
  123. </tr>
  124. </thead>
  125. <tbody>
  126. ";
  127. // line 24
  128. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_FULLY")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  129. // line 25
  130. yield " ";
  131. $context['_parent'] = $context;
  132. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["children"]) || array_key_exists("children", $context) ? $context["children"] : (function () { throw new RuntimeError('Variable "children" does not exist.', 25, $this->source); })()));
  133. $context['_iterated'] = false;
  134. foreach ($context['_seq'] as $context["_key"] => $context["child"]) {
  135. // line 26
  136. yield " ";
  137. if (((((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CEC")) && $tmp instanceof Markup ? (string) $tmp : $tmp) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_SCEC")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CEC_OFFICER")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_CEC_SECRETARY")) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
  138. // line 27
  139. yield "
  140. ";
  141. // line 28
  142. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "hospital", [], "any", false, true, false, 28), "municipality", [], "any", true, true, false, 28)) {
  143. // line 29
  144. yield " ";
  145. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, $context["child"], "hospital", [], "any", false, false, false, 29), "municipality", [], "any", false, false, false, 29) == CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 29, $this->source); })()), "user", [], "any", false, false, false, 29), "municipality", [], "any", false, false, false, 29))) {
  146. // line 30
  147. yield "
  148. <tr>
  149. <td>";
  150. // line 33
  151. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 33), "html", null, true);
  152. yield "</td>
  153. <td>";
  154. // line 34
  155. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheChild", [], "any", false, false, false, 34), "html", null, true);
  156. yield "</td>
  157. <td>";
  158. // line 35
  159. yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 35)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 35), "Y-m-d H:i:s"), "html", null, true)) : (""));
  160. yield "</td>
  161. <td>";
  162. // line 36
  163. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "placeOfBirth", [], "any", false, false, false, 36), "html", null, true);
  164. yield "</td>
  165. <td>";
  166. // line 37
  167. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "sex", [], "any", false, false, false, 37), "html", null, true);
  168. yield "</td>
  169. <td>";
  170. // line 38
  171. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheFather", [], "any", false, false, false, 38), "html", null, true);
  172. yield "</td>
  173. <td>";
  174. // line 39
  175. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheMother", [], "any", false, false, false, 39), "html", null, true);
  176. yield "</td>
  177. <td>";
  178. // line 40
  179. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "otherContact", [], "any", false, false, false, 40), "html", null, true);
  180. yield "</td>
  181. <td>
  182. <a href=\"";
  183. // line 42
  184. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 42)]), "html", null, true);
  185. yield "\">";
  186. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
  187. yield "</a>
  188. <a href=\"";
  189. // line 43
  190. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 43)]), "html", null, true);
  191. yield "\">";
  192. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
  193. yield "</a>
  194. </td>
  195. </tr>
  196. ";
  197. }
  198. // line 48
  199. yield "
  200. ";
  201. }
  202. // line 50
  203. yield " ";
  204. }
  205. // line 51
  206. yield " ";
  207. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_HOSPITAL")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  208. // line 52
  209. yield "
  210. ";
  211. // line 53
  212. if ((CoreExtension::getAttribute($this->env, $this->source, $context["child"], "hospital", [], "any", false, false, false, 53) == CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 53, $this->source); })()), "user", [], "any", false, false, false, 53), "hospital", [], "any", false, false, false, 53))) {
  213. // line 54
  214. yield " <tr>
  215. <td>";
  216. // line 56
  217. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 56), "html", null, true);
  218. yield "</td>
  219. <td>";
  220. // line 57
  221. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheChild", [], "any", false, false, false, 57), "html", null, true);
  222. yield "</td>
  223. <td>";
  224. // line 58
  225. yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 58)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 58), "Y-m-d H:i:s"), "html", null, true)) : (""));
  226. yield "</td>
  227. <td>";
  228. // line 59
  229. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "placeOfBirth", [], "any", false, false, false, 59), "html", null, true);
  230. yield "</td>
  231. <td>";
  232. // line 60
  233. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "sex", [], "any", false, false, false, 60), "html", null, true);
  234. yield "</td>
  235. <td>";
  236. // line 61
  237. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheFather", [], "any", false, false, false, 61), "html", null, true);
  238. yield "</td>
  239. <td>";
  240. // line 62
  241. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheMother", [], "any", false, false, false, 62), "html", null, true);
  242. yield "</td>
  243. <td>";
  244. // line 64
  245. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "otherContact", [], "any", false, false, false, 64), "html", null, true);
  246. yield "</td>
  247. <td>
  248. <a href=\"";
  249. // line 66
  250. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 66)]), "html", null, true);
  251. yield "\" class=\"fa fa-eye\">";
  252. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
  253. yield "</a>
  254. <!--a href=\"";
  255. // line 67
  256. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 67)]), "html", null, true);
  257. yield "\">edit</a-->
  258. </td>
  259. </tr>
  260. ";
  261. }
  262. // line 72
  263. yield " ";
  264. }
  265. // line 73
  266. yield "
  267. ";
  268. // line 75
  269. if ((((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_PAYS")) && $tmp instanceof Markup ? (string) $tmp : $tmp) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_REGION")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) || (($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_MIN")) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
  270. // line 76
  271. yield " <tr>
  272. <td>";
  273. // line 78
  274. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 78), "html", null, true);
  275. yield "</td>
  276. <td>";
  277. // line 79
  278. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheChild", [], "any", false, false, false, 79), "html", null, true);
  279. yield "</td>
  280. <td>";
  281. // line 80
  282. yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 80)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ($this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "dateOfBirth", [], "any", false, false, false, 80), "Y-m-d H:i:s"), "html", null, true)) : (""));
  283. yield "</td>
  284. <td>";
  285. // line 81
  286. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "placeOfBirth", [], "any", false, false, false, 81), "html", null, true);
  287. yield "</td>
  288. <td>";
  289. // line 82
  290. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "sex", [], "any", false, false, false, 82), "html", null, true);
  291. yield "</td>
  292. <td>";
  293. // line 83
  294. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheFather", [], "any", false, false, false, 83), "html", null, true);
  295. yield "</td>
  296. <td>";
  297. // line 84
  298. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "nameOfTheMother", [], "any", false, false, false, 84), "html", null, true);
  299. yield "</td>
  300. <td>";
  301. // line 86
  302. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["child"], "otherContact", [], "any", false, false, false, 86), "html", null, true);
  303. yield "</td>
  304. <td>
  305. <a href=\"";
  306. // line 88
  307. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 88)]), "html", null, true);
  308. yield "\">";
  309. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
  310. yield "</a>
  311. <a href=\"";
  312. // line 89
  313. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["child"], "id", [], "any", false, false, false, 89)]), "html", null, true);
  314. yield "\">";
  315. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
  316. yield "</a>
  317. </td>
  318. </tr>
  319. ";
  320. }
  321. // line 95
  322. yield "
  323. ";
  324. $context['_iterated'] = true;
  325. }
  326. // line 96
  327. if (!$context['_iterated']) {
  328. // line 97
  329. yield " <tr>
  330. <td colspan=\"22\">";
  331. // line 98
  332. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("no records found", [], "messages");
  333. yield "</td>
  334. </tr>
  335. ";
  336. }
  337. $_parent = $context['_parent'];
  338. unset($context['_seq'], $context['_key'], $context['child'], $context['_parent'], $context['_iterated']);
  339. $context = array_intersect_key($context, $_parent);
  340. $context += $_parent;
  341. // line 101
  342. yield " ";
  343. }
  344. // line 102
  345. yield " </tbody>
  346. </table>
  347. </div>
  348. <a href=\"";
  349. // line 105
  350. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("child_new");
  351. yield "\">";
  352. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Create new", [], "messages");
  353. yield "</a>
  354. ";
  355. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  356. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  357. yield from [];
  358. }
  359. /**
  360. * @codeCoverageIgnore
  361. */
  362. public function getTemplateName(): string
  363. {
  364. return "child/index.html.twig";
  365. }
  366. /**
  367. * @codeCoverageIgnore
  368. */
  369. public function isTraitable(): bool
  370. {
  371. return false;
  372. }
  373. /**
  374. * @codeCoverageIgnore
  375. */
  376. public function getDebugInfo(): array
  377. {
  378. return array ( 383 => 105, 378 => 102, 375 => 101, 365 => 98, 362 => 97, 360 => 96, 355 => 95, 344 => 89, 338 => 88, 333 => 86, 328 => 84, 324 => 83, 320 => 82, 316 => 81, 312 => 80, 308 => 79, 304 => 78, 300 => 76, 298 => 75, 294 => 73, 291 => 72, 283 => 67, 277 => 66, 272 => 64, 267 => 62, 263 => 61, 259 => 60, 255 => 59, 251 => 58, 247 => 57, 243 => 56, 239 => 54, 237 => 53, 234 => 52, 231 => 51, 228 => 50, 224 => 48, 214 => 43, 208 => 42, 203 => 40, 199 => 39, 195 => 38, 191 => 37, 187 => 36, 183 => 35, 179 => 34, 175 => 33, 170 => 30, 167 => 29, 165 => 28, 162 => 27, 159 => 26, 153 => 25, 151 => 24, 144 => 20, 140 => 19, 136 => 18, 132 => 17, 128 => 16, 124 => 15, 120 => 14, 116 => 13, 112 => 12, 104 => 7, 101 => 6, 88 => 5, 65 => 3, 42 => 1,);
  379. }
  380. public function getSourceContext(): Source
  381. {
  382. return new Source("{% extends \x27base.html.twig\x27 %}
  383. {% block title %}{% trans %}Child index{%endtrans%}{% endblock %}
  384. {% block body %}
  385. <h1>{% trans %}Child index{% endtrans %}</h1>
  386. <div class=\"table-scrollable\">
  387. <table>
  388. <thead>
  389. <tr>
  390. <th>{% trans %}Id{% endtrans %}</th>
  391. <th>{% trans %}Child\x27s name{% endtrans %}</th>
  392. <th>{% trans %}Birth date{% endtrans %}</th>
  393. <th>{% trans %}Birth place{% endtrans %}</th>
  394. <th>{% trans %}Sex{% endtrans %}</th>
  395. <th>{% trans %}Father\x27s name{% endtrans %}</th>
  396. <th>{% trans %}Mother\x27s name{% endtrans %}</th>
  397. <th>{% trans %}Other Contact{% endtrans %}</th>
  398. <th>{% trans %}actions{% endtrans %}</th>
  399. </tr>
  400. </thead>
  401. <tbody>
  402. {% if is_granted(\x27IS_AUTHENTICATED_FULLY\x27) %}
  403. {% for child in children %}
  404. {% if is_granted(\x27ROLE_CEC\x27) or is_granted(\x27ROLE_SCEC\x27) or is_granted(\x27ROLE_CEC_OFFICER\x27) or is_granted(\x27ROLE_CEC_SECRETARY\x27) %}
  405. {% if (child.hospital.municipality is defined) %}
  406. {% if child.hospital.municipality == app.user.municipality %}
  407. <tr>
  408. <td>{{ child.id }}</td>
  409. <td>{{ child.nameOfTheChild }}</td>
  410. <td>{{ child.dateOfBirth ? child.dateOfBirth|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
  411. <td>{{ child.placeOfBirth }}</td>
  412. <td>{{ child.sex }}</td>
  413. <td>{{ child.nameOfTheFather }}</td>
  414. <td>{{ child.nameOfTheMother }}</td>
  415. <td>{{ child.otherContact }}</td>
  416. <td>
  417. <a href=\"{{ path(\x27child_show\x27, {\x27id\x27: child.id}) }}\">{% trans %}show{% endtrans %}</a>
  418. <a href=\"{{ path(\x27child_edit\x27, {\x27id\x27: child.id}) }}\">{% trans %}edit{% endtrans %}</a>
  419. </td>
  420. </tr>
  421. {% endif %}
  422. {% endif %}
  423. {% endif %}
  424. {% if is_granted(\x27ROLE_HOSPITAL\x27) %}
  425. {% if child.hospital == app.user.hospital %}
  426. <tr>
  427. <td>{{ child.id }}</td>
  428. <td>{{ child.nameOfTheChild }}</td>
  429. <td>{{ child.dateOfBirth ? child.dateOfBirth|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
  430. <td>{{ child.placeOfBirth }}</td>
  431. <td>{{ child.sex }}</td>
  432. <td>{{ child.nameOfTheFather }}</td>
  433. <td>{{ child.nameOfTheMother }}</td>
  434. <td>{{ child.otherContact }}</td>
  435. <td>
  436. <a href=\"{{ path(\x27child_show\x27, {\x27id\x27: child.id}) }}\" class=\"fa fa-eye\">{% trans %}show{% endtrans %}</a>
  437. <!--a href=\"{{ path(\x27child_edit\x27, {\x27id\x27: child.id}) }}\">edit</a-->
  438. </td>
  439. </tr>
  440. {% endif %}
  441. {% endif %}
  442. {% if is_granted(\x27ROLE_PAYS\x27) or is_granted(\x27ROLE_REGION\x27) or is_granted(\x27ROLE_MIN\x27) %}
  443. <tr>
  444. <td>{{ child.id }}</td>
  445. <td>{{ child.nameOfTheChild }}</td>
  446. <td>{{ child.dateOfBirth ? child.dateOfBirth|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
  447. <td>{{ child.placeOfBirth }}</td>
  448. <td>{{ child.sex }}</td>
  449. <td>{{ child.nameOfTheFather }}</td>
  450. <td>{{ child.nameOfTheMother }}</td>
  451. <td>{{ child.otherContact }}</td>
  452. <td>
  453. <a href=\"{{ path(\x27child_show\x27, {\x27id\x27: child.id}) }}\">{% trans %}show{% endtrans %}</a>
  454. <a href=\"{{ path(\x27child_edit\x27, {\x27id\x27: child.id}) }}\">{% trans %}edit{% endtrans %}</a>
  455. </td>
  456. </tr>
  457. {% endif %}
  458. {% else %}
  459. <tr>
  460. <td colspan=\"22\">{% trans %} no records found{% endtrans %}</td>
  461. </tr>
  462. {% endfor %}
  463. {% endif %}
  464. </tbody>
  465. </table>
  466. </div>
  467. <a href=\"{{ path(\x27child_new\x27) }}\">{% trans %} Create new {% endtrans %}</a>
  468. {% endblock %}
  469. ", "child/index.html.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/child/index.html.twig");
  470. }
  471. }