39 lines
1.2 KiB
Twig
39 lines
1.2 KiB
Twig
{% extends 'base.html.twig' %}
|
|
|
|
{% block title %}FoodOrder index{% endblock %}
|
|
|
|
{% block body %}
|
|
<h1>FoodOrder index</h1>
|
|
|
|
<table class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>StartedByName</th>
|
|
<th>Id</th>
|
|
<th>StartedAt</th>
|
|
<th>ClosedAt</th>
|
|
<th>actions</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for food_order in food_orders %}
|
|
<tr>
|
|
<td>{{ food_order.startedByName }}</td>
|
|
<td>{{ food_order.id }}</td>
|
|
<td>{{ food_order.startedAt ? food_order.startedAt|date('Y-m-d H:i:s') : '' }}</td>
|
|
<td>{{ food_order.closedAt ? food_order.closedAt|date('Y-m-d H:i:s') : '' }}</td>
|
|
<td>
|
|
<a href="{{ path('app_food_order_show', {'id': food_order.id}) }}">show</a>
|
|
<a href="{{ path('app_food_order_edit', {'id': food_order.id}) }}">edit</a>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr>
|
|
<td colspan="5">no records found</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
|
|
<a href="{{ path('app_food_order_new') }}">Create new</a>
|
|
{% endblock %}
|