futtern/templates/start/index.html.twig
2024-02-13 21:43:30 +01:00

35 lines
898 B
Twig

{% extends 'base.html.twig' %}
{% block title %}Futtern{% endblock %}
{% block body %}
<h1>Open Orders</h1>
<table class="table">
<thead>
<tr>
<th>StartedBy</th>
<th>Vendor</th>
<th>StartedAt</th>
<th>Actions</th>
</tr>
</thead>
<tbody>
{% for order in orders %}
<tr>
<td>{{ order.startedBy }}</td>
<td>{{ order.vendor.name }}</td>
<td>{{ order.startedAt|date("Y-m-d H:i") }}</td>
<td><a href="{{ path('app_food_order_show', {'id': order.id}) }}">show</a></td>
</tr>
{% else %}
<tr>
<td colspan="4">no records found</td>
</tr>
{% endfor %}
</tbody>
</table>
<h2>New Order:</h2>
{{ include('_form.html.twig') }}
{% endblock %}