templates/data/users.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}VOIR LES UTILISATEURS{% endblock %}
  3. {% block body %}
  4.     <div class="container w-50 mx-auto my-5">
  5.         <h1 class="bg-primary mt-5 mb-0 py-2 text-center">VOIR LES UTILISATEURS :</h1>
  6.         <a href="{{ path('app_dataHome')}}" class="btn btn-primary mt-3">Retour</a>
  7.         <table class="table table-striped table-hover text-left my-5">
  8.             <thead>
  9.             <tr class="bg-secondary">
  10.                 <th scope="col" class="text-center">Id</th>
  11.                 <th scope="col" class="text-center">Email</th>
  12.                 <th scope="col" class="text-center">Mot de passe</th>
  13.             </tr>
  14.             </thead>
  15.             <tbody>
  16.             {% for user in users %}
  17.                 <tr>
  18.                     <th scope="row" class="text-center">{{ user.getId() }}</th>
  19.                     <td class="text-center">{{ user.getEmail() }}</td>
  20.                     <td class="text-center">{{ user.getPassword() }}</td>
  21.                 </tr>
  22.             {% endfor %}
  23.             </tbody>
  24.         </table>
  25.     </div>
  26. {% endblock %}