HegreEtConfort/templates/vehicle/index.html.twig

38 lines
1.0 KiB
Twig

{% extends 'base.html.twig' %}
{% block title %}Vehicle index{% endblock %}
{% block body %}
<h1>Vehicle index</h1>
<table class="table">
<thead>
<tr>
<th>Id</th>
<th>LicensePlate</th>
<th>Brand</th>
<th>actions</th>
</tr>
</thead>
<tbody>
{% for vehicle in vehicles %}
<tr>
<td>{{ vehicle.id }}</td>
<td>{{ vehicle.LicensePlate }}</td>
<td>{{ vehicle.Brand }}</td>
<td>
<a href="{{ path('app_vehicle_show', {'id': vehicle.id}) }}">show</a>
<a href="{{ path('app_vehicle_edit', {'id': vehicle.id}) }}">edit</a>
</td>
</tr>
{% else %}
<tr>
<td colspan="4">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ path('app_vehicle_new') }}">Create new</a>
{% endblock %}