Files
Projet_Symfony_Quentin/templates/droit/index.html.twig

36 lines
956 B
Twig
Raw Permalink Normal View History

{% extends 'base.html.twig' %}
{% block title %}Droit index{% endblock %}
{% block body %}
<h1>Droit index</h1>
<table class="table">
<thead>
<tr>
<th>IdDroit</th>
<th>LibDroit</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for droit in droits %}
<tr>
<td>{{ droit.idDroit }}</td>
<td>{{ droit.libDroit }}</td>
<td>
<a href="{{ path('app_droit_show', {'idDroit': droit.idDroit}) }}">show</a>
<a href="{{ path('app_droit_edit', {'idDroit': droit.idDroit}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="3">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_droit_new') }}">Create new</a>
{% endblock %}