templates/user/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base_baux.html.twig' %}
  2. {% block title %}User index{% endblock %}
  3. {% block body %}
  4.     <h1>Liste des utilisateurs</h1>
  5.     <table class="table">
  6.         <thead>
  7.             <tr>
  8.                 <th>Id</th>
  9.                 <th>Nom et prĂ©nom</th>
  10.                 <th>Email</th>
  11.                 <th>Roles</th>
  12.                 {# <th>Password</th> #}
  13.                 <th>actions</th>
  14.             </tr>
  15.         </thead>
  16.         <tbody>
  17.         {% for user in users %}
  18.             <tr>
  19.                 <td>{{ user.id }}</td>
  20.                 <td>{{ user.prenom }} {{ user.nom }} </td>
  21.                 <td>{{ user.fonction }}
  22.                 <td>{{ user.email }}</td>
  23.                 <td>{{ user.roles ? user.roles|json_encode : '' }}</td>
  24.                 {# <td>{{ user.password }}</td> #}
  25.                 <td>
  26.                     <a href="{{ path('app_user_show', {'id': user.id}) }}">show</a>
  27.                     <a href="{{ path('app_user_edit', {'id': user.id}) }}">edit</a>
  28.                 </td>
  29.             </tr>
  30.         {% else %}
  31.             <tr>
  32.                 <td colspan="5">no records found</td>
  33.             </tr>
  34.         {% endfor %}
  35.         </tbody>
  36.     </table>
  37.     <a href="{{ path('app_user_new') }}">Create new</a>
  38. {% endblock %}