futtern/templates/vendor/index.html.twig

36 lines
929 B
Twig
Raw Normal View History

2024-02-05 15:16:43 +00:00
{% extends 'base.html.twig' %}
{% block title %}Vendor index{% endblock %}
{% block body %}
<h1>Vendor index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>Name</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for vendor in vendors %}
<tr>
<td>{{ vendor.id }}</td>
<td>{{ vendor.name }}</td>
<td>
<a href="{{ path('app_vendor_show', {'id': vendor.id}) }}">show</a>
<a href="{{ path('app_vendor_edit', {'id': vendor.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="3">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_vendor_new') }}">Create new</a>
{% endblock %}