<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
use Twig\TemplateWrapper;
/* user/list.html.twig */
class __TwigTemplate_012178ae55b64ee57aeac8cbec6ed470 extends Template
{
private Source $source;
/**
* @var array<string, Template>
*/
private array $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'title' => [$this, 'block_title'],
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
{
// line 1
return "layout/backEndLayout.html.twig";
}
protected function doDisplay(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "user/list.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "user/list.html.twig"));
$this->parent = $this->load("layout/backEndLayout.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_title(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
yield "Liste des enseignants de ";
yield $this->extensions['App\Twig\AppExtension']->getEnvironmentVariable("FRENCH_SCHOOL_NAME");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
// line 6
/**
* @return iterable<null|scalar|\Stringable>
*/
public function block_content(array $context, array $blocks = []): iterable
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 7
yield "
<div class=\"row mt-4\">
<div class=\"col-11 jumbotron\" >
<div class=\"m-1 box-shadow\">
<div class=\"card-header \">
<div class=\" d-flex justify-content-between \" role=\"group\" >
<h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\"> Liste des utilisateurs (administrateurs et enseignants) </h4>
<a class=\"btn btn-outline-primary \" target=\"_blank\" href=\"";
// line 17
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_teacher_list");
yield "\">
<i class=\"fa fa-print\" aria-hidden=\"true\">
</i>
</a>
</div>
</div>
<table width=\"100%\" class=\"table table-striped\">
<thead>
<tr>
<th style=\"width:15%;\" scope=\"col\">Nom complet </th>
<th style=\"width:10%;\" scope=\"col\">Domaine</th>
<th style=\"width:2%;\" scope=\"col\">Sexe</th>
<th style=\"width:6%;\" scope=\"col\">Email</th>
<th style=\"width:16%;\" scope=\"col\">Date de naissance</th>
<th style=\"width:10%;\" scope=\"col\">Lieu de naissance</th>
<th style=\"width:13%;\" scope=\"col\">Résidence</th>
<th style=\"width:15%;\" scope=\"col\">Contact</th>
<th style=\"width:8%;\" scope=\"col\">Action</th>
</tr>
</thead>
<tbody>
";
// line 42
$context['_parent'] = $context;
$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); })()));
foreach ($context['_seq'] as $context["_key"] => $context["user"]) {
// line 43
yield " <tr>
<td>";
// line 45
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);
yield "</td>
<td>";
// line 46
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);
yield "</td>
<td>";
// line 47
if ((CoreExtension::getAttribute($this->env, $this->source, $context["user"], "gender", [], "any", false, false, false, 47) == 0)) {
yield " M ";
} else {
yield " F ";
}
yield "</td>
<td>";
// line 48
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);
yield "</td>
<td>";
// line 50
if ((($tmp = CoreExtension::getAttribute($this->env, $this->source, $context["user"], "birthday", [], "any", false, false, false, 50)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
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);
}
yield "</td>
<td>";
// line 51
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);
yield "</td>
<td>";
// line 52
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);
yield "</td>
<td> ";
// line 53
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);
yield " </td>
<td>
<div class=\"btn-group\">
<a class=\"btn btn-outline-warning btn-sm\" href=\"";
// line 56
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);
yield "\">
<i class=\"fa fa-edit\"></i>
</a>
<a class=\"btn btn-outline-primary btn-sm\" href=\"";
// line 59
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);
yield "\">
";
// line 60
if ((CoreExtension::getAttribute($this->env, $this->source, $context["user"], "isVerified", [], "any", false, false, false, 60) == 1)) {
// line 61
yield " <i class=\"fa fa-thumbs-o-down\" aria-hidden=\"true\"></i>
";
} else {
// line 62
yield "
<i class=\"fa fa-thumbs-up\" aria-hidden=\"true\"></i>
";
}
// line 64
yield "
</a>
</div>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_key'], $context['user'], $context['_parent']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
yield " </tbody>
</table>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
yield from [];
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName(): string
{
return "user/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable(): bool
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo(): array
{
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,);
}
public function getSourceContext(): Source
{
return new Source("{% extends 'layout/backEndLayout.html.twig' %}
{% block title %}Liste des enseignants de {{get_env(\"FRENCH_SCHOOL_NAME\")|raw }}
{% endblock title %}
{% block content %}
<div class=\"row mt-4\">
<div class=\"col-11 jumbotron\" >
<div class=\"m-1 box-shadow\">
<div class=\"card-header \">
<div class=\" d-flex justify-content-between \" role=\"group\" >
<h4 class=\"my-0 font-weight-normal text-center text-justify text-uppercase\"> Liste des utilisateurs (administrateurs et enseignants) </h4>
<a class=\"btn btn-outline-primary \" target=\"_blank\" href=\"{{ path('admin_teacher_list') }}\">
<i class=\"fa fa-print\" aria-hidden=\"true\">
</i>
</a>
</div>
</div>
<table width=\"100%\" class=\"table table-striped\">
<thead>
<tr>
<th style=\"width:15%;\" scope=\"col\">Nom complet </th>
<th style=\"width:10%;\" scope=\"col\">Domaine</th>
<th style=\"width:2%;\" scope=\"col\">Sexe</th>
<th style=\"width:6%;\" scope=\"col\">Email</th>
<th style=\"width:16%;\" scope=\"col\">Date de naissance</th>
<th style=\"width:10%;\" scope=\"col\">Lieu de naissance</th>
<th style=\"width:13%;\" scope=\"col\">Résidence</th>
<th style=\"width:15%;\" scope=\"col\">Contact</th>
<th style=\"width:8%;\" scope=\"col\">Action</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.fullName }}</td>
<td>{{ user.domain }}</td>
<td>{% if user.gender == 0 %} M {% else %} F {% endif %}</td>
<td>{{ user.email }}</td>
<td>{% if user.birthday %}{{ user.birthday|date('Y-m-d') }}{% endif %}</td>
<td>{{ user.birthplace }}</td>
<td>{{ user.location }}</td>
<td> {{ user.phoneNumber}} </td>
<td>
<div class=\"btn-group\">
<a class=\"btn btn-outline-warning btn-sm\" href=\"{{ path('admin_users_edit', {id: user.id}) }}\">
<i class=\"fa fa-edit\"></i>
</a>
<a class=\"btn btn-outline-primary btn-sm\" href=\"{{ path('admin_users_toggle', {id: user.id}) }}\">
{% if user.isVerified == 1 %}
<i class=\"fa fa-thumbs-o-down\" aria-hidden=\"true\"></i>
{% else %}
<i class=\"fa fa-thumbs-up\" aria-hidden=\"true\"></i>
{% endif %}
</a>
</div>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock %}
", "user/list.html.twig", "/var/www/bethesda/templates/user/list.html.twig");
}
}