templates/dispositif/index.html.twig line 1

Open in your IDE?
  1. {% extends 'templateApp.html.twig' %}
  2. {% block title %}Dispositif index{% endblock %}
  3. {% block body %}
  4.     <h1>Liste des dispositifs</h1>
  5.     <table class="table">
  6.         <thead>
  7.             <tr>
  8.                 <th>Financeur</th>
  9.                 <th>Libelle</th>
  10.                 <th>Critere</th>
  11.                 <th>Taux</th>
  12.                 <th>Type équipement</th>
  13.                 <th>Infos complémentaires</th>
  14.                 <th>Date limite</th>
  15.                 <th>Url</th>
  16.                 <th>actions</th>
  17.             </tr>
  18.         </thead>
  19.         <tbody>
  20.         {% for dispositif in dispositifs %}
  21.             <tr>
  22.                 <td>{{ dispositif.financeur.libelle }}</td>
  23.                 <td>{{ dispositif.libelle }}</td>
  24.                 <td>{{ dispositif.critere }}</td>
  25.                 <td>{{ dispositif.taux }}</td>
  26.                 <td>{{ dispositif.type }}</td>
  27.                 <td>{{ dispositif.infos }}</td>
  28.                 <td>{{ dispositif.limitdatedAt ? dispositif.limitdatedAt|date('d-m-Y') : '' }}</td>
  29.                 <td>{{ dispositif.url }}</td>
  30.                 <td>
  31.                     <a href="{{ path('app_dispositif_show', {'id': dispositif.id}) }}">show</a>
  32.                     <a href="{{ path('app_dispositif_edit', {'id': dispositif.id}) }}">edit</a>
  33.                 </td>
  34.             </tr>
  35.         {% else %}
  36.             <tr>
  37.                 <td colspan="7">no records found</td>
  38.             </tr>
  39.         {% endfor %}
  40.         </tbody>
  41.     </table>
  42.     <a href="{{ path('app_dispositif_new') }}">Create new</a>
  43. {% endblock %}