var/cache/dev/twig/9a/9aef9d59a067ec6ec3b8226838f77934.php line 54

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. /* user/list.html.twig */
  16. class __TwigTemplate_012178ae55b64ee57aeac8cbec6ed470 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. 'title' => [$this, 'block_title'],
  29. 'content' => [$this, 'block_content'],
  30. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "layout/backEndLayout.html.twig";
  36. }
  37. protected function doDisplay(array $context, array $blocks = []): iterable
  38. {
  39. $macros = $this->macros;
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "user/list.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "user/list.html.twig"));
  44. $this->parent = $this->load("layout/backEndLayout.html.twig", 1);
  45. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48. }
  49. // line 4
  50. /**
  51. * @return iterable<null|scalar|\Stringable>
  52. */
  53. public function block_title(array $context, array $blocks = []): iterable
  54. {
  55. $macros = $this->macros;
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  60. yield "Liste des enseignants de ";
  61. yield $this->extensions['App\Twig\AppExtension']->getEnvironmentVariable("FRENCH_SCHOOL_NAME");
  62. yield "
  63. ";
  64. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  65. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  66. yield from [];
  67. }
  68. // line 6
  69. /**
  70. * @return iterable<null|scalar|\Stringable>
  71. */
  72. public function block_content(array $context, array $blocks = []): iterable
  73. {
  74. $macros = $this->macros;
  75. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  76. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  77. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  78. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  79. // line 7
  80. yield "
  81. <div class=\"row mt-4\">
  82. <div class=\"col-11 jumbotron\" >
  83. <div class=\"m-1 box-shadow\">
  84. <div class=\"card-header \">
  85. <div class=\" d-flex justify-content-between \" role=\"group\" >
  86. <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\"> Liste des utilisateurs (administrateurs et enseignants) </h4>
  87. <a class=\"btn btn-outline-primary \" target=\"_blank\" href=\"";
  88. // line 17
  89. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_teacher_list");
  90. yield "\">
  91. <i class=\"fa fa-print\" aria-hidden=\"true\">
  92. &nbsp;
  93. </i>
  94. </a>
  95. </div>
  96. </div>
  97. <table width=\"100%\" class=\"table table-striped\">
  98. <thead>
  99. <tr>
  100. <th style=\"width:15%;\" scope=\"col\">Nom complet </th>
  101. <th style=\"width:10%;\" scope=\"col\">Domaine</th>
  102. <th style=\"width:2%;\" scope=\"col\">Sexe</th>
  103. <th style=\"width:6%;\" scope=\"col\">Email</th>
  104. <th style=\"width:16%;\" scope=\"col\">Date de naissance</th>
  105. <th style=\"width:10%;\" scope=\"col\">Lieu de naissance</th>
  106. <th style=\"width:13%;\" scope=\"col\">Résidence</th>
  107. <th style=\"width:15%;\" scope=\"col\">Contact</th>
  108. <th style=\"width:8%;\" scope=\"col\">Action</th>
  109. </tr>
  110. </thead>
  111. <tbody>
  112. ";
  113. // line 42
  114. $context['_parent'] = $context;
  115. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["users"]) || array_key_exists("users", $context) ? $context["users"] : (function () { throw new RuntimeError('Variable "users" does not exist.', 42, $this->source); })()));
  116. foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
  117. // line 43
  118. yield " <tr>
  119. <td>";
  120. // line 45
  121. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "fullName", [], "any", false, false, false, 45), "html", null, true);
  122. yield "</td>
  123. <td>";
  124. // line 46
  125. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "domain", [], "any", false, false, false, 46), "html", null, true);
  126. yield "</td>
  127. <td>";
  128. // line 47
  129. if ((CoreExtension::getAttribute($this->env, $this->source, $context["user"], "gender", [], "any", false, false, false, 47) == 0)) {
  130. yield " M ";
  131. } else {
  132. yield " F ";
  133. }
  134. yield "</td>
  135. <td>";
  136. // line 48
  137. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "email", [], "any", false, false, false, 48), "html", null, true);
  138. yield "</td>
  139. <td>";
  140. // line 50
  141. if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["user"], "birthday", [], "any", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  142. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "birthday", [], "any", false, false, false, 50), "Y-m-d"), "html", null, true);
  143. }
  144. yield "</td>
  145. <td>";
  146. // line 51
  147. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "birthplace", [], "any", false, false, false, 51), "html", null, true);
  148. yield "</td>
  149. <td>";
  150. // line 52
  151. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "location", [], "any", false, false, false, 52), "html", null, true);
  152. yield "</td>
  153. <td> ";
  154. // line 53
  155. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["user"], "phoneNumber", [], "any", false, false, false, 53), "html", null, true);
  156. yield " </td>
  157. <td>
  158. <div class=\"btn-group\">
  159. <a class=\"btn btn-outline-warning btn-sm\" href=\"";
  160. // line 56
  161. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_users_edit", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["user"], "id", [], "any", false, false, false, 56)]), "html", null, true);
  162. yield "\">
  163. <i class=\"fa fa-edit\"></i>
  164. </a>
  165. <a class=\"btn btn-outline-primary btn-sm\" href=\"";
  166. // line 59
  167. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_users_toggle", ["id" => CoreExtension::getAttribute($this->env, $this->source, $context["user"], "id", [], "any", false, false, false, 59)]), "html", null, true);
  168. yield "\">
  169. ";
  170. // line 60
  171. if ((CoreExtension::getAttribute($this->env, $this->source, $context["user"], "isVerified", [], "any", false, false, false, 60) == 1)) {
  172. // line 61
  173. yield " <i class=\"fa fa-thumbs-o-down\" aria-hidden=\"true\"></i>
  174. ";
  175. } else {
  176. // line 62
  177. yield "
  178. <i class=\"fa fa-thumbs-up\" aria-hidden=\"true\"></i>
  179. ";
  180. }
  181. // line 64
  182. yield "
  183. </a>
  184. </div>
  185. </td>
  186. </tr>
  187. ";
  188. }
  189. $_parent = $context['_parent'];
  190. unset($context['_seq'], $context['_key'], $context['user'], $context['_parent']);
  191. $context = array_intersect_key($context, $_parent) + $_parent;
  192. // line 71
  193. yield " </tbody>
  194. </table>
  195. </div>
  196. </div>
  197. ";
  198. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  199. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  200. yield from [];
  201. }
  202. /**
  203. * @codeCoverageIgnore
  204. */
  205. public function getTemplateName(): string
  206. {
  207. return "user/list.html.twig";
  208. }
  209. /**
  210. * @codeCoverageIgnore
  211. */
  212. public function isTraitable(): bool
  213. {
  214. return false;
  215. }
  216. /**
  217. * @codeCoverageIgnore
  218. */
  219. public function getDebugInfo(): array
  220. {
  221. return array ( 225 => 71, 213 => 64, 208 => 62, 204 => 61, 202 => 60, 198 => 59, 192 => 56, 186 => 53, 182 => 52, 178 => 51, 172 => 50, 167 => 48, 159 => 47, 155 => 46, 151 => 45, 147 => 43, 143 => 42, 115 => 17, 103 => 7, 90 => 6, 64 => 4, 41 => 1,);
  222. }
  223. public function getSourceContext(): Source
  224. {
  225. return new Source("{% extends 'layout/backEndLayout.html.twig' %}
  226. {% block title %}Liste des enseignants de {{get_env(\"FRENCH_SCHOOL_NAME\")|raw }}
  227. {% endblock title %}
  228. {% block content %}
  229. <div class=\"row mt-4\">
  230. <div class=\"col-11 jumbotron\" >
  231. <div class=\"m-1 box-shadow\">
  232. <div class=\"card-header \">
  233. <div class=\" d-flex justify-content-between \" role=\"group\" >
  234. <h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\"> Liste des utilisateurs (administrateurs et enseignants) </h4>
  235. <a class=\"btn btn-outline-primary \" target=\"_blank\" href=\"{{ path('admin_teacher_list') }}\">
  236. <i class=\"fa fa-print\" aria-hidden=\"true\">
  237. &nbsp;
  238. </i>
  239. </a>
  240. </div>
  241. </div>
  242. <table width=\"100%\" class=\"table table-striped\">
  243. <thead>
  244. <tr>
  245. <th style=\"width:15%;\" scope=\"col\">Nom complet </th>
  246. <th style=\"width:10%;\" scope=\"col\">Domaine</th>
  247. <th style=\"width:2%;\" scope=\"col\">Sexe</th>
  248. <th style=\"width:6%;\" scope=\"col\">Email</th>
  249. <th style=\"width:16%;\" scope=\"col\">Date de naissance</th>
  250. <th style=\"width:10%;\" scope=\"col\">Lieu de naissance</th>
  251. <th style=\"width:13%;\" scope=\"col\">Résidence</th>
  252. <th style=\"width:15%;\" scope=\"col\">Contact</th>
  253. <th style=\"width:8%;\" scope=\"col\">Action</th>
  254. </tr>
  255. </thead>
  256. <tbody>
  257. {% for user in users %}
  258. <tr>
  259. <td>{{ user.fullName }}</td>
  260. <td>{{ user.domain }}</td>
  261. <td>{% if user.gender == 0 %} M {% else %} F {% endif %}</td>
  262. <td>{{ user.email }}</td>
  263. <td>{% if user.birthday %}{{ user.birthday|date('Y-m-d') }}{% endif %}</td>
  264. <td>{{ user.birthplace }}</td>
  265. <td>{{ user.location }}</td>
  266. <td> {{ user.phoneNumber}} </td>
  267. <td>
  268. <div class=\"btn-group\">
  269. <a class=\"btn btn-outline-warning btn-sm\" href=\"{{ path('admin_users_edit', {id: user.id}) }}\">
  270. <i class=\"fa fa-edit\"></i>
  271. </a>
  272. <a class=\"btn btn-outline-primary btn-sm\" href=\"{{ path('admin_users_toggle', {id: user.id}) }}\">
  273. {% if user.isVerified == 1 %}
  274. <i class=\"fa fa-thumbs-o-down\" aria-hidden=\"true\"></i>
  275. {% else %}
  276. <i class=\"fa fa-thumbs-up\" aria-hidden=\"true\"></i>
  277. {% endif %}
  278. </a>
  279. </div>
  280. </td>
  281. </tr>
  282. {% endfor %}
  283. </tbody>
  284. </table>
  285. </div>
  286. </div>
  287. {% endblock %}
  288. ", "user/list.html.twig", "/var/www/bethesda/templates/user/list.html.twig");
  289. }
  290. }