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