41 lines
1.5 KiB
Twig
41 lines
1.5 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}InventoryRecord index{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>InventoryRecord index</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Id</th>
|
|
<th>Quantity</th>
|
|
<th>Timestamp</th>
|
|
<th>CreatedAt</th>
|
|
<th>UpdatedAt</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for inventory_record in inventory_records %}
|
|
<tr>
|
|
<td>{{ inventory_record.id }}</td>
|
|
<td>{{ inventory_record.quantity }}</td>
|
|
<td>{{ inventory_record.timestamp ? inventory_record.timestamp|date('Y-m-d H:i:s') : '' }}</td>
|
|
<td>{{ inventory_record.createdAt ? inventory_record.createdAt|date('Y-m-d H:i:s') : '' }}</td>
|
|
<td>{{ inventory_record.updatedAt ? inventory_record.updatedAt|date('Y-m-d H:i:s') : '' }}</td>
|
|
<td>
|
|
<a href="{{ path('app_inventory_record_show', {'id': inventory_record.id}) }}">show</a>
|
|
<a href="{{ path('app_inventory_record_edit', {'id': inventory_record.id}) }}">edit</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="6">no records found</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<a href="{{ path('app_inventory_record_new') }}">Create new</a>
|
|
{% endblock %}
|