Files
contrib/templates/membre/index.html.twig

40 lines
1.1 KiB
Twig
Raw Permalink Normal View History

2025-10-13 17:26:15 +02:00
{% extends 'base.html.twig' %}
{% block title %}Membre index{% endblock %}
{% block body %}
<h1>Membre index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>Droit</th>
2025-10-16 17:09:34 +02:00
<th>Contributions</th>
2025-10-13 17:26:15 +02:00
<th>actions</th>
</tr>
</thead>
<tbody>
{% for membre in membres %}
<tr>
<td>{{ membre.id }}</td>
<td>{{ membre.nom }}</td>
<td>{{ membre.droit }}</td>
2025-10-16 17:09:34 +02:00
<td>{{ membre.contributions|length }}</td>
2025-10-13 17:26:15 +02:00
<td>
<a href="{{ path('app_membre_show', {'id': membre.id}) }}">show</a>
<a href="{{ path('app_membre_edit', {'id': membre.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_membre_new') }}">Create new</a>
{% endblock %}