var/cache/dev/twig/c6/c6b1866d70f09c79dadc63947a465738.php line 55

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. /* marriage_certificate/index.html.twig */
  17. class __TwigTemplate_c08067657cbad5a2604744638db77b0b 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", "marriage_certificate/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", "marriage_certificate/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 "MarriageCertificate index";
  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 " <h1>MarriageCertificate index</h1>
  79. <div class=\"table-scrollable\">
  80. <table >
  81. <thead>
  82. <tr>
  83. <th>";
  84. // line 12
  85. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Id", [], "messages");
  86. yield " </th>
  87. <th>";
  88. // line 13
  89. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("UpdateAt", [], "messages");
  90. yield " </th>
  91. <th>";
  92. // line 14
  93. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("FirstSpouseName", [], "messages");
  94. yield " </th>
  95. <th>";
  96. // line 15
  97. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("FirstSpouseFather", [], "messages");
  98. yield " </th>
  99. <th>";
  100. // line 16
  101. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("FirstSpouseMother", [], "messages");
  102. yield " </th>
  103. <th>";
  104. // line 18
  105. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("actions", [], "messages");
  106. yield " </th>
  107. </tr>
  108. </thead>
  109. <tbody>
  110. ";
  111. // line 22
  112. $context['_parent'] = $context;
  113. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["marriage_certificates"]) || array_key_exists("marriage_certificates", $context) ? $context["marriage_certificates"] : (function () { throw new RuntimeError('Variable "marriage_certificates" does not exist.', 22, $this->source); })()));
  114. $context['_iterated'] = false;
  115. foreach ($context['_seq'] as $context["_key"] => $context["marriage_certificate"]) {
  116. // line 23
  117. yield " <tr>
  118. <td>";
  119. // line 24
  120. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "id", [], "any", false, false, false, 24), "html", null, true);
  121. yield "</td>
  122. <td>";
  123. // line 25
  124. yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "updateAt", [], "any", false, false, false, 25)) && $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["marriage_certificate"], "updateAt", [], "any", false, false, false, 25), "Y-m-d H:i:s"), "html", null, true)) : (""));
  125. yield "</td>
  126. <td>";
  127. // line 26
  128. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "firstSpouseName", [], "any", false, false, false, 26), "html", null, true);
  129. yield "</td>
  130. <td>";
  131. // line 27
  132. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "firstSpouseFather", [], "any", false, false, false, 27), "html", null, true);
  133. yield "</td>
  134. <td>";
  135. // line 28
  136. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "firstSpouseMother", [], "any", false, false, false, 28), "html", null, true);
  137. yield "</td>
  138. <td>
  139. <a href=\"";
  140. // line 31
  141. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("marriage_certificate_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "id", [], "any", false, false, false, 31)]), "html", null, true);
  142. yield "\">";
  143. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("show", [], "messages");
  144. yield "</a>
  145. <a href=\"";
  146. // line 32
  147. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("marriage_certificate_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["marriage_certificate"], "id", [], "any", false, false, false, 32)]), "html", null, true);
  148. yield "\">";
  149. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
  150. yield "</a>
  151. </td>
  152. </tr>
  153. ";
  154. $context['_iterated'] = true;
  155. }
  156. // line 35
  157. if (!$context['_iterated']) {
  158. // line 36
  159. yield " <tr>
  160. <td colspan=\"7\">";
  161. // line 37
  162. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("no records found", [], "messages");
  163. yield "</td>
  164. </tr>
  165. ";
  166. }
  167. $_parent = $context['_parent'];
  168. unset($context['_seq'], $context['_key'], $context['marriage_certificate'], $context['_parent'], $context['_iterated']);
  169. $context = array_intersect_key($context, $_parent);
  170. $context += $_parent;
  171. // line 40
  172. yield " </tbody>
  173. </table>
  174. </div>
  175. <a href=\"";
  176. // line 43
  177. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("marriage_certificate_new");
  178. yield "\">";
  179. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Create new", [], "messages");
  180. yield "</a>
  181. ";
  182. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  183. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  184. yield from [];
  185. }
  186. /**
  187. * @codeCoverageIgnore
  188. */
  189. public function getTemplateName(): string
  190. {
  191. return "marriage_certificate/index.html.twig";
  192. }
  193. /**
  194. * @codeCoverageIgnore
  195. */
  196. public function isTraitable(): bool
  197. {
  198. return false;
  199. }
  200. /**
  201. * @codeCoverageIgnore
  202. */
  203. public function getDebugInfo(): array
  204. {
  205. return array ( 203 => 43, 198 => 40, 188 => 37, 185 => 36, 183 => 35, 173 => 32, 167 => 31, 161 => 28, 157 => 27, 153 => 26, 149 => 25, 145 => 24, 142 => 23, 137 => 22, 130 => 18, 125 => 16, 121 => 15, 117 => 14, 113 => 13, 109 => 12, 101 => 6, 88 => 5, 65 => 3, 42 => 1,);
  206. }
  207. public function getSourceContext(): Source
  208. {
  209. return new Source("{% extends \x27base.html.twig\x27 %}
  210. {% block title %}MarriageCertificate index{% endblock %}
  211. {% block body %}
  212. <h1>MarriageCertificate index</h1>
  213. <div class=\"table-scrollable\">
  214. <table >
  215. <thead>
  216. <tr>
  217. <th>{% trans %}Id{% endtrans %} </th>
  218. <th>{% trans %}UpdateAt{% endtrans %} </th>
  219. <th>{% trans %}FirstSpouseName{% endtrans %} </th>
  220. <th>{% trans %}FirstSpouseFather{% endtrans %} </th>
  221. <th>{% trans %}FirstSpouseMother{% endtrans %} </th>
  222. <th>{% trans %}actions{% endtrans %} </th>
  223. </tr>
  224. </thead>
  225. <tbody>
  226. {% for marriage_certificate in marriage_certificates %}
  227. <tr>
  228. <td>{{ marriage_certificate.id }}</td>
  229. <td>{{ marriage_certificate.updateAt ? marriage_certificate.updateAt|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
  230. <td>{{ marriage_certificate.firstSpouseName }}</td>
  231. <td>{{ marriage_certificate.firstSpouseFather }}</td>
  232. <td>{{ marriage_certificate.firstSpouseMother }}</td>
  233. <td>
  234. <a href=\"{{ path(\x27marriage_certificate_show\x27, {\x27id\x27: marriage_certificate.id}) }}\">{% trans %}show{% endtrans %}</a>
  235. <a href=\"{{ path(\x27marriage_certificate_edit\x27, {\x27id\x27: marriage_certificate.id}) }}\">{% trans %}edit{% endtrans %}</a>
  236. </td>
  237. </tr>
  238. {% else %}
  239. <tr>
  240. <td colspan=\"7\">{% trans %}no records found{% endtrans %}</td>
  241. </tr>
  242. {% endfor %}
  243. </tbody>
  244. </table>
  245. </div>
  246. <a href=\"{{ path(\x27marriage_certificate_new\x27) }}\">{% trans %}Create new{% endtrans %}</a>
  247. {% endblock %}
  248. ", "marriage_certificate/index.html.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/marriage_certificate/index.html.twig");
  249. }
  250. }