templates/emprunts/index.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Emprunts index{% endblock %}
  3. {% block body %}
  4.     <div class="container-fluid">
  5.         <h1>Emprunts index</h1>
  6.         <a href="{{ path('routes_index') }}">Retour à la liste</a> - <a href="{{ path('emprunts_new') }}">Nouvel enregistrement</a>
  7.         <table class="table">
  8.             <thead>
  9.                 <tr>
  10.                     <th>Id</th>
  11.                     <th>Nom</th>
  12.                     <th>Longitude</th>
  13.                     <th>Latitude</th>
  14.                     <th>RN</th>
  15.                     <th>actions</th>
  16.                 </tr>
  17.             </thead>
  18.             <tbody>
  19.                 {% for emprunt in emprunts %}
  20.                     <tr>
  21.                         <td>{{ emprunt.id }}</td>
  22.                         <td>{{ emprunt.nom }}</td>
  23.                         <td>{{ emprunt.longitude }}</td>
  24.                         <td>{{ emprunt.latitude }}</td>
  25.                         <td>{{ emprunt.routes }}</td>
  26.                         <td>
  27.                             <a href="{{ path('emprunts_show', {'id': emprunt.id}) }}">voir</a>
  28.                             <a href="{{ path('emprunts_edit', {'id': emprunt.id}) }}">modifier</a>
  29.                         </td>
  30.                     </tr>
  31.                 {% else %}
  32.                     <tr>
  33.                         <td colspan="5">no records found</td>
  34.                     </tr>
  35.                 {% endfor %}
  36.             </tbody>
  37.         </table>
  38.     </div>
  39. {% endblock %}