<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* user/list.html.twig */
class __TwigTemplate_b0eb4147f85c20b2dacde3854192d146 extends Template
{
private $source;
private $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)
{
// line 1
return "layout/backEndLayout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$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->loadTemplate("layout/backEndLayout.html.twig", "user/list.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 4
public function block_title($context, array $blocks = [])
{
$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"));
echo "Liste des enseignants de ";
echo $this->extensions['App\Twig\AppExtension']->getEnvironmentVariable("FRENCH_SCHOOL_NAME");
echo "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
// line 6
public function block_content($context, array $blocks = [])
{
$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
echo "
<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
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_teacher_list");
echo "\">
<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'] = twig_ensure_traversable((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
echo " <tr>
<td>";
// line 45
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "fullName", [], "any", false, false, false, 45), "html", null, true);
echo "</td>
<td>";
// line 46
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "domain", [], "any", false, false, false, 46), "html", null, true);
echo "</td>
<td>";
// line 47
if ((twig_get_attribute($this->env, $this->source, $context["user"], "gender", [], "any", false, false, false, 47) == 0)) {
echo " M ";
} else {
echo " F ";
}
echo "</td>
<td>";
// line 48
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "email", [], "any", false, false, false, 48), "html", null, true);
echo "</td>
<td>";
// line 50
if (twig_get_attribute($this->env, $this->source, $context["user"], "birthday", [], "any", false, false, false, 50)) {
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "birthday", [], "any", false, false, false, 50), "Y-m-d"), "html", null, true);
}
echo "</td>
<td>";
// line 51
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "birthplace", [], "any", false, false, false, 51), "html", null, true);
echo "</td>
<td>";
// line 52
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "location", [], "any", false, false, false, 52), "html", null, true);
echo "</td>
<td> ";
// line 53
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["user"], "phoneNumber", [], "any", false, false, false, 53), "html", null, true);
echo " </td>
<td>
<div class=\"btn-group\">
<a class=\"btn btn-outline-warning btn-sm\" href=\"";
// line 56
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_users_edit", ["id" => twig_get_attribute($this->env, $this->source, $context["user"], "id", [], "any", false, false, false, 56)]), "html", null, true);
echo "\">
<i class=\"fa fa-edit\"></i>
</a>
<a class=\"btn btn-outline-primary btn-sm\" href=\"";
// line 59
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("admin_users_toggle", ["id" => twig_get_attribute($this->env, $this->source, $context["user"], "id", [], "any", false, false, false, 59)]), "html", null, true);
echo "\">
";
// line 60
if ((twig_get_attribute($this->env, $this->source, $context["user"], "isVerified", [], "any", false, false, false, 60) == 1)) {
// line 61
echo " <i class=\"fa fa-thumbs-o-down\" aria-hidden=\"true\"></i>
";
} else {
// line 62
echo "
<i class=\"fa fa-thumbs-up\" aria-hidden=\"true\"></i>
";
}
// line 64
echo "
</a>
</div>
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['user'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 71
echo " </tbody>
</table>
</div>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "user/list.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 213 => 71, 201 => 64, 196 => 62, 192 => 61, 190 => 60, 186 => 59, 180 => 56, 174 => 53, 170 => 52, 166 => 51, 160 => 50, 155 => 48, 147 => 47, 143 => 46, 139 => 45, 135 => 43, 131 => 42, 103 => 17, 91 => 7, 81 => 6, 59 => 4, 36 => 1,);
}
public function getSourceContext()
{
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/prod/current/templates/user/list.html.twig");
}
}