caisse-bliss/templates/expense/index.html.twig

38 lines
1016 B
Twig
Raw Normal View History

2025-02-09 16:39:38 +01:00
{% extends 'base.html.twig' %}
{% block title %}Expense index{% endblock %}
{% block body %}
<h1>Expense index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>Price</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for expense in expenses %}
<tr>
<td>{{ expense.id }}</td>
<td>{{ expense.name }}</td>
<td>{{ expense.price }}</td>
<td>
<a href="{{ path('app_expense_show', {'id': expense.id}) }}">show</a>
<a href="{{ path('app_expense_edit', {'id': expense.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_expense_new') }}">Create new</a>
{% endblock %}