45 lines
1.3 KiB
Twig
45 lines
1.3 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}Clients index{% endblock %}
|
|
{% block stylesheets %}
|
|
<link rel="stylesheet" href="{{ asset('css/ControllerVues/list.css') }}"> <!-- Ajout du fichier CSS -->
|
|
|
|
{% endblock %}
|
|
{% block body %}
|
|
<h1>Clients index</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Prenom</th>
|
|
<th>Nom</th>
|
|
<th>Email</th>
|
|
<th>Telephone</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for client in clients %}
|
|
<tr>
|
|
<td>{{ client.id }}</td>
|
|
<td>{{ client.Prenom }}</td>
|
|
<td>{{ client.Nom }}</td>
|
|
<td>{{ client.Email }}</td>
|
|
<td>{{ client.Telephone }}</td>
|
|
<td>
|
|
<a href="{{ path('app_clients_show', {'id': client.id}) }}">show</a>
|
|
<a href="{{ path('app_clients_edit', {'id': client.id}) }}">edit</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="6">no records found</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<a href="{{ path('app_clients_new') }}">Créer un nouveau client</a>
|
|
{% endblock %}
|