42 lines
1.4 KiB
Twig
42 lines
1.4 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}StatutTables index{% endblock %}
|
|
{% block stylesheets %}
|
|
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
|
|
|
{% endblock %}
|
|
{% block body %}
|
|
<h1>StatutTables index</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Libellé</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for statut_table in statut_tables %}
|
|
<tr>
|
|
<td>{{ statut_table.id }}</td>
|
|
<td>{{ statut_table.Libelle}}</td>
|
|
<td>
|
|
<form method="post" action="{{ path('app_statut_tables_delete', {'id': statut_table.id}) }}" onsubmit="return confirm('Es-tu sur de vouloir le supprimer ?');">
|
|
<input type="hidden" name="_token" value="{{ csrf_token('delete' ~ statut_table.id) }}">
|
|
{{ include('statut_tables/_delete_form.html.twig') }}
|
|
</form>
|
|
<a href="{{ path('app_statut_tables_edit', {'id': statut_table.id}) }}">Modifier</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="3">Aucun enregistrement trouvé</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<a href="{{ path('app_statut_tables_new') }}">Créer un nouveau</a>
|
|
{% endblock %}
|