35 lines
929 B
Twig
35 lines
929 B
Twig
{% 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 %}
|