{% extends 'base.html.twig' %}
{% block title %}Emprunts index{% endblock %}
{% block body %}
<div class="container-fluid">
<h1>Emprunts index</h1>
<a href="{{ path('routes_index') }}">Retour à la liste</a> - <a href="{{ path('emprunts_new') }}">Nouvel enregistrement</a>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Nom</th>
<th>Longitude</th>
<th>Latitude</th>
<th>RN</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for emprunt in emprunts %}
<tr>
<td>{{ emprunt.id }}</td>
<td>{{ emprunt.nom }}</td>
<td>{{ emprunt.longitude }}</td>
<td>{{ emprunt.latitude }}</td>
<td>{{ emprunt.routes }}</td>
<td>
<a href="{{ path('emprunts_show', {'id': emprunt.id}) }}">voir</a>
<a href="{{ path('emprunts_edit', {'id': emprunt.id}) }}">modifier</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}