var/cache/dev/twig/00/00ef3800d04e2805a7b7592bd825a364.php line 39

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