McDoPlus/templates/avis/index.html.twig
ExostFlash 755b6c2ccb add
2023-11-27 13:13:11 +01:00

40 lines
1,010 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Avis index{% endblock %}
{% block body %}
<h1>Avis index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Note</th>
<th>Com</th>
<th>Id_ticket</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for avi in avis %}
<tr>
<td>{{ avi.id }}</td>
<td>{{ avi.note }}</td>
<td>{{ avi.com }}</td>
<td>{{ avi.idTicket }}</td>
<td>
<a href="{{ path('app_avis_show', {'id': avi.id}) }}">show</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="5">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
{% if ticket != 0 %}
<a href="{{ path('app_avis_new') }}">Create new</a>
{% endif %}
{% endblock %}