Bläddra i källkod

liste des users avec tous les champs

François 6 år sedan
förälder
incheckning
9974ef684a

+ 1 - 1
src/AppBundle/Form/CommentaireType.php

@@ -38,7 +38,7 @@ class CommentaireType extends AbstractType
                 )
             ))*/
 		    ->add('save', SubmitType::class, array(
-		        'label' => 'Enregistrer',
+		        'label' => 'Enregistrer le commentaire',
                 'attr'=>array(
                     'class'  =>  'btn-primary'
                 )));

+ 6 - 0
src/AppBundle/Resources/views/security/liste.html.twig

@@ -10,6 +10,9 @@
         <thead class="thead-dark">
         <tr>
             <th>Username</th>
+            <th>Prénom</th>
+            <th>Nom</th>
+            <th>Mail</th>
             <th>Roles</th>
             <th>Actions</th>
         </tr>
@@ -18,6 +21,9 @@
         {% for user in users %}
             <tr>
                 <td>{{ user.username }}</td>
+                <td>{{ user.prenom }}</td>
+                <td>{{ user.nom }}</td>
+                <td>{{ user.mail }}</td>
                 <td>{% for role in user.roles %}<p>{{ role }}</p>{% endfor %}</td>
                 <td>
                     {%  if user != app.user %}<a href="{{ path('admin_deluser', {'id': user.id})  }}"><i class="fas fa-trash", style="color:Tomato;"></i></a>{%  endif %}