Files
COPILOT/templates/assistantia/_list.html.twig
BRAMAS Arthur 1b0601d724 add progression
2025-10-24 16:14:44 +02:00

20 lines
692 B
Twig

<table class="table table-bordered">
<thead>
<tr><th>ID</th><th>Nom</th><th>Actions</th></tr>
</thead>
<tbody>
{% for assistant in assistants %}
<tr>
<td>{{ assistant.id }}</td>
<td>{{ assistant.nom }}</td>
<td>
<button class="btn btn-warning btn-edit" data-url="{{ path('assistantia_edit', {'id': assistant.id}) }}">Modifier</button>
<form style="display:inline" method="post" action="{{ path('assistantia_delete', {'id': assistant.id}) }}">
<button class="btn btn-danger" onclick="return confirm('Supprimer ?')">Supprimer</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>