Files
contrib/templates/contribution/index.html.twig

36 lines
997 B
Twig
Raw Normal View History

2025-10-13 17:26:15 +02:00
{% extends 'base.html.twig' %}
{% block title %}Contribution index{% endblock %}
{% block body %}
<h1>Contribution index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Duree</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for contribution in contributions %}
<tr>
<td>{{ contribution.id }}</td>
<td>{{ contribution.duree }}</td>
<td>
<a href="{{ path('app_contribution_show', {'id': contribution.id}) }}">show</a>
<a href="{{ path('app_contribution_edit', {'id': contribution.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="3">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_contribution_new') }}">Create new</a>
{% endblock %}