{% extends 'templateApp.html.twig' %}
{% block title %}Dispositif index{% endblock %}
{% block body %}
<h1>Liste des dispositifs</h1>
<table class="table">
<thead>
<tr>
<th>Financeur</th>
<th>Libelle</th>
<th>Critere</th>
<th>Taux</th>
<th>Type équipement</th>
<th>Infos complémentaires</th>
<th>Date limite</th>
<th>Url</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for dispositif in dispositifs %}
<tr>
<td>{{ dispositif.financeur.libelle }}</td>
<td>{{ dispositif.libelle }}</td>
<td>{{ dispositif.critere }}</td>
<td>{{ dispositif.taux }}</td>
<td>{{ dispositif.type }}</td>
<td>{{ dispositif.infos }}</td>
<td>{{ dispositif.limitdatedAt ? dispositif.limitdatedAt|date('d-m-Y') : '' }}</td>
<td>{{ dispositif.url }}</td>
<td>
<a href="{{ path('app_dispositif_show', {'id': dispositif.id}) }}">show</a>
<a href="{{ path('app_dispositif_edit', {'id': dispositif.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="7">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_dispositif_new') }}">Create new</a>
{% endblock %}