{% extends "layout.html" %} {% set active_page = "orders" -%} {% import "utils.html" as util %} {% block metas %} {{ super() }} {% endblock %} {% block container %}

Edit prices

Only applied to order {{ order.id }}. To permanently change prices for {{ order.location_name }}, edit the HLDS location definition.

Per dish

This functionality requires JavaScript.
{% for dish_name, dish_quantity, dish_comment_groups in order.group_by_dish() -%} {% set has_comments = dish_comment_groups | length > 1 or (dish_comment_groups | map("first") | any) -%} {% for comment, items in dish_comment_groups -%} {% if loop.first %} {% endif %} {% endfor %} {%- endfor %}
DishPrice
{{ dish_quantity }} × {{ dish_name }} {{ items | length }} × {% if comment %}{{ comment }} {% else %}No comment {% endif %} {% set price = items[0].price | euro("") %} {% set item_ids = items | map(attribute="id") %} €

Per person

{% for user_name, order_items in order.group_by_user() -%} {%- endfor %}
NameItems
{{ user_name }}
    {% for item in order_items %}
  • {{ item.dish_name }}{{ "; " + item.comment if item.comment }}
  • {% endfor %}
Cancel
{% endblock %} {% block styles %} {{ super() }} {% endblock %} {% block scripts %} {{ super() }} {% endblock %}