caisse-bliss/templates/selling/index.html.twig
2025-02-09 16:39:38 +01:00

42 lines
1.2 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Selling index{% endblock %}
{% block body %}
<h1>Selling index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Note</th>
<th>Products</th>
<th>Sum</th>
<th>Reduction</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for selling in sellings %}
<tr>
<td>{{ selling.id }}</td>
<td>{{ selling.note }}</td>
<td>{{ selling.products }}</td>
<td>{{ selling.sum }}</td>
<td>{{ selling.reduction }}</td>
<td>
<a href="{{ path('app_selling_show', {'id': selling.id}) }}">show</a>
<a href="{{ path('app_selling_edit', {'id': selling.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="6">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_selling_new') }}">Create new</a>
{% endblock %}