36 lines
911 B
Twig
36 lines
911 B
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Tables index{% endblock %}
|
|
{% block stylesheets %}
|
|
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
|
|
|
{% endblock %}
|
|
{% block body %}
|
|
<h1>Tables index</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for table in tables %}
|
|
<tr>
|
|
<td>{{ table.id }}</td>
|
|
<td>
|
|
<a href="{{ path('app_tables_edit', {'id': table.id}) }}">edit</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="2">no records found</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<a href="{{ path('app_tables_new') }}">Create new</a>
|
|
{% endblock %}
|