yolo
This commit is contained in:
parent
d30bb74cc5
commit
9e804c6113
6 changed files with 30 additions and 49 deletions
|
@ -2,5 +2,10 @@
|
|||
|
||||
{% block body %}
|
||||
{{ include('_form.html.twig') }}
|
||||
<datalist id="item-extra-list">
|
||||
{% for item in extras %}
|
||||
<option value="{{ item.name }}"></option>
|
||||
{% endfor %}
|
||||
</datalist>
|
||||
{% endblock %}
|
||||
|
||||
|
|
|
@ -44,19 +44,15 @@
|
|||
{% for orderItem in food_order.groupedOrderItems %}
|
||||
<tr>
|
||||
<td>
|
||||
{{ orderItem.item.menuItem.menuItemAliases|map(i => i.name)|join(' / ') }}
|
||||
{{ orderItem.menuItem.menuItemAliases|map(i => i.name)|join(' / ') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ orderItem.item.extras|map(i => i.name)|join(' / ') }}
|
||||
{{ orderItem.extras|map(i => i.name)|join(' / ') }}
|
||||
</td>
|
||||
<td>
|
||||
{{ orderItem.item.menuItem.price|cents_to_eur }}
|
||||
{{ orderItem.menuItem.price|cents_to_eur }}
|
||||
</td>
|
||||
<td>
|
||||
{{ orderItem.amount }} |
|
||||
<a href="{{ path('app_foodorder_add_item', {foodOrder: food_order.id, menuItem: orderItem.item.menuItem.id}) }}">+1</a> |
|
||||
<a href="{{ path('app_foodorder_remove_item', {foodOrder: food_order.id, orderItem: orderItem.item.id}) }}">-1</a> |
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue