2024-02-05 15:16:43 +00:00
|
|
|
{% 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.startedByName }}</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>
|
2024-02-12 21:03:17 +00:00
|
|
|
<td colspan="4">no records found</td>
|
2024-02-05 15:16:43 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<h2>New Order:</h2>
|
|
|
|
|
|
|
|
{{ include('_form.html.twig') }}
|
|
|
|
|
|
|
|
{% endblock %}
|