2019-05-29 20:12:19 +02:00
|
|
|
|
{% extends "bootstrap/base.html" %}
|
|
|
|
|
{% import "bootstrap/utils.html" as utils %}
|
|
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
|
Haldis - Order {{ order.id }}
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block styles %}
|
|
|
|
|
{{ super() }}
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/main.css') }}" media="screen">
|
2019-11-21 10:52:08 +01:00
|
|
|
|
<link rel="stylesheet" href="/css" media="screen">
|
2019-05-29 20:12:19 +02:00
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/print.css') }}" media="print">
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
|
{{ super() }}
|
|
|
|
|
<script async defer id="github-bjs" src="https://buttons.github.io/buttons.js"></script>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block content -%}
|
|
|
|
|
{{ utils.flashed_messages(container=True) }}
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-sm-6 col-sm-offset-3 darker showcase" id="items-ordered">
|
2020-01-27 03:01:49 +01:00
|
|
|
|
<h1 class="text-center">Ordered dishes: {{ order.items.count() }}</h1>
|
|
|
|
|
{% for key, value in order.group_by_dish().items() -%}
|
|
|
|
|
<div class="dish">
|
|
|
|
|
<h2><span class="quantity">{{ value["count"] }}</span> × {{ key }}</h2>
|
|
|
|
|
{% if value["comments"]|any -%}
|
|
|
|
|
<ul class="comments">
|
|
|
|
|
{% for comment in value["comments"] -%}
|
|
|
|
|
<li>{% if comment %}{{ comment }}
|
|
|
|
|
{% else %}<i>No comment</i>
|
|
|
|
|
{% endif %}</li>
|
2019-05-29 20:12:19 +02:00
|
|
|
|
{% endfor %}
|
2020-01-27 03:01:49 +01:00
|
|
|
|
</ul>
|
2019-05-29 20:12:19 +02:00
|
|
|
|
{%- endif %}
|
2020-01-27 03:01:49 +01:00
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
{%- endfor %}
|
2019-05-29 20:12:19 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2019-10-31 11:11:52 +01:00
|
|
|
|
{%- endblock %}
|