{% extends "layout.html" %} {% set active_page = "orders" -%} {% import "bootstrap/wtf.html" as wtf %} {% block container %}

Order {{ order.id }}

Courrier: {{ order.courrier.username }}
Location: {{ order.location.name }}
Starttime: {{ order.starttime }}
Stoptime: {{ order.stoptime }}
Total price: {{ total_price|euro }}

Orders

{% for item in order.orders %} {{ item.user.username }} - {{ item.food.name }} - {{ item.food.price|euro }} {% if item.can_delete(order.id, current_user.id) -%}{%- endif %}
{% endfor %}

Order:

{{ wtf.quick_form(form, action=url_for('.order_create'), button_map={'submit_button': 'primary'}, form_type='horizontal') }}
{% endblock %}