var/cache/dev/twig/7f/7f85e6f60c2932d8d589754fb610d152.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. /* subdivision/show.html.twig */
  17. class __TwigTemplate_d7708845d8560100e888f6b13a9228c5 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", "subdivision/show.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", "subdivision/show.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("Subdivision", [], "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 " <h1>";
  79. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Subdivision", [], "messages");
  80. yield "</h1>
  81. <div class=\x27table-scrollable\x27>
  82. <table class=\"\" >
  83. <tbody>
  84. <tr>
  85. <th>";
  86. // line 13
  87. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Id", [], "messages");
  88. yield "</th>
  89. <td>";
  90. // line 14
  91. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["subdivision"]) || array_key_exists("subdivision", $context) ? $context["subdivision"] : (function () { throw new RuntimeError('Variable "subdivision" does not exist.', 14, $this->source); })()), "id", [], "any", false, false, false, 14), "html", null, true);
  92. yield "</td>
  93. </tr>
  94. <tr>
  95. <th>";
  96. // line 17
  97. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Name", [], "messages");
  98. yield "</th>
  99. <td>";
  100. // line 18
  101. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["subdivision"]) || array_key_exists("subdivision", $context) ? $context["subdivision"] : (function () { throw new RuntimeError('Variable "subdivision" does not exist.', 18, $this->source); })()), "name", [], "any", false, false, false, 18), "html", null, true);
  102. yield "</td>
  103. </tr>
  104. <tr>
  105. <th>";
  106. // line 21
  107. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("Description", [], "messages");
  108. yield "</th>
  109. <td>";
  110. // line 22
  111. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["subdivision"]) || array_key_exists("subdivision", $context) ? $context["subdivision"] : (function () { throw new RuntimeError('Variable "subdivision" does not exist.', 22, $this->source); })()), "description", [], "any", false, false, false, 22), "html", null, true);
  112. yield "</td>
  113. </tr>
  114. <tr>
  115. <th>";
  116. // line 25
  117. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("city", [], "messages");
  118. yield "</th>
  119. <td><a href=\"";
  120. // line 26
  121. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("city_show", ["id" => CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["subdivision"]) || array_key_exists("subdivision", $context) ? $context["subdivision"] : (function () { throw new RuntimeError('Variable "subdivision" does not exist.', 26, $this->source); })()), "city", [], "any", false, false, false, 26), "id", [], "any", false, false, false, 26)]), "html", null, true);
  122. yield "\">";
  123. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["subdivision"]) || array_key_exists("subdivision", $context) ? $context["subdivision"] : (function () { throw new RuntimeError('Variable "subdivision" does not exist.', 26, $this->source); })()), "city", [], "any", false, false, false, 26), "html", null, true);
  124. yield "</a></td>
  125. </tr>
  126. <tr>
  127. <th>";
  128. // line 29
  129. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("UpdateAt", [], "messages");
  130. yield "</th>
  131. <td>";
  132. // line 30
  133. yield (string) (((($tmp = CoreExtension::getAttribute($this->env, $this->source, (isset($context["subdivision"]) || array_key_exists("subdivision", $context) ? $context["subdivision"] : (function () { throw new RuntimeError('Variable "subdivision" does not exist.', 30, $this->source); })()), "updateAt", [], "any", false, false, false, 30)) && $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, (isset($context["subdivision"]) || array_key_exists("subdivision", $context) ? $context["subdivision"] : (function () { throw new RuntimeError('Variable "subdivision" does not exist.', 30, $this->source); })()), "updateAt", [], "any", false, false, false, 30), "Y-m-d H:i:s"), "html", null, true)) : (""));
  134. yield "</td>
  135. </tr>
  136. </tbody>
  137. </table>
  138. <a href=\"";
  139. // line 35
  140. yield (string) $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("subdivision_index");
  141. yield "\">";
  142. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("back to list", [], "messages");
  143. yield "</a>
  144. ";
  145. // line 36
  146. if ((($tmp = $this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_HABITECH")) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  147. // line 37
  148. yield "
  149. <a href=\"";
  150. // line 38
  151. yield (string) $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("subdivision_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, (isset($context["subdivision"]) || array_key_exists("subdivision", $context) ? $context["subdivision"] : (function () { throw new RuntimeError('Variable "subdivision" does not exist.', 38, $this->source); })()), "id", [], "any", false, false, false, 38)]), "html", null, true);
  152. yield "\">";
  153. yield $this->env->getExtension('Symfony\Bridge\Twig\Extension\TranslationExtension')->trans("edit", [], "messages");
  154. yield "</a>
  155. ";
  156. // line 39
  157. yield (string) Twig\Extension\CoreExtension::include($this->env, $context, "subdivision/_delete_form.html.twig");
  158. yield "
  159. ";
  160. }
  161. // line 41
  162. yield "
  163. ";
  164. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  165. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  166. yield from [];
  167. }
  168. /**
  169. * @codeCoverageIgnore
  170. */
  171. public function getTemplateName(): string
  172. {
  173. return "subdivision/show.html.twig";
  174. }
  175. /**
  176. * @codeCoverageIgnore
  177. */
  178. public function isTraitable(): bool
  179. {
  180. return false;
  181. }
  182. /**
  183. * @codeCoverageIgnore
  184. */
  185. public function getDebugInfo(): array
  186. {
  187. return array ( 188 => 41, 183 => 39, 177 => 38, 174 => 37, 172 => 36, 166 => 35, 158 => 30, 154 => 29, 146 => 26, 142 => 25, 136 => 22, 132 => 21, 126 => 18, 122 => 17, 116 => 14, 112 => 13, 101 => 6, 88 => 5, 65 => 3, 42 => 1,);
  188. }
  189. public function getSourceContext(): Source
  190. {
  191. return new Source("{% extends \x27base.html.twig\x27 %}
  192. {% block title %}{% trans%}Subdivision{% endtrans %}{% endblock %}
  193. {% block body %}
  194. <h1>{% trans %}Subdivision{% endtrans %}</h1>
  195. <div class=\x27table-scrollable\x27>
  196. <table class=\"\" >
  197. <tbody>
  198. <tr>
  199. <th>{% trans %}Id{% endtrans %}</th>
  200. <td>{{ subdivision.id }}</td>
  201. </tr>
  202. <tr>
  203. <th>{% trans %}Name{% endtrans %}</th>
  204. <td>{{ subdivision.name }}</td>
  205. </tr>
  206. <tr>
  207. <th>{% trans %}Description{% endtrans %}</th>
  208. <td>{{ subdivision.description }}</td>
  209. </tr>
  210. <tr>
  211. <th>{% trans %}city{% endtrans %}</th>
  212. <td><a href=\"{{ path(\x27city_show\x27,{\x27id\x27:subdivision.city.id}) }}\">{{ subdivision.city }}</a></td>
  213. </tr>
  214. <tr>
  215. <th>{% trans %}UpdateAt{% endtrans %}</th>
  216. <td>{{ subdivision.updateAt ? subdivision.updateAt|date(\x27Y-m-d H:i:s\x27) : \x27\x27 }}</td>
  217. </tr>
  218. </tbody>
  219. </table>
  220. <a href=\"{{ path(\x27subdivision_index\x27) }}\">{% trans %}back to list{% endtrans %}</a>
  221. {% if is_granted(\x27ROLE_HABITECH\x27) %}
  222. <a href=\"{{ path(\x27subdivision_edit\x27, {\x27id\x27: subdivision.id}) }}\">{% trans %}edit{% endtrans %}</a>
  223. {{ include(\x27subdivision/_delete_form.html.twig\x27) }}
  224. {% endif %}
  225. {% endblock %}
  226. ", "subdivision/show.html.twig", "/var/www/vhosts/habitechsolutions.cm/birth.habitechsolutions.cm/templates/subdivision/show.html.twig");
  227. }
  228. }