connexion base et création premier crud
This commit is contained in:
22
templates/membre/membre.html.twig
Normal file
22
templates/membre/membre.html.twig
Normal file
@@ -0,0 +1,22 @@
|
||||
{# templates/membre/index.html.twig #}
|
||||
|
||||
<h1>Liste des Membres</h1>
|
||||
|
||||
<table border="1">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Nom</th>
|
||||
<th>Droit</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for membre in membres %}
|
||||
<tr>
|
||||
<td>{{ membre.id }}</td>
|
||||
<td>{{ membre.nom }}</td>
|
||||
<td>{{ membre.droit ? membre.droit.nom : 'Aucun' }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
Reference in New Issue
Block a user