McDoPlus/templates/avis/index.html.twig
clemcle81500 6eb297c0f1 corrections fautes
corrections fautes
2023-12-05 13:40:54 +01:00

40 lines
1,018 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>Commentaire</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 %}