-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add extra order items screen, clickable div with shadow
- Loading branch information
mcbloch
committed
May 29, 2019
1 parent
2314ec0
commit 2d9f7e7
Showing
4 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{% 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"> | ||
<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"> | ||
<h3 class="text-center">Ordered products: {{ order.items.count() }}</h3> | ||
{% for key, value in order.group_by_product().items() -%} | ||
<div class="product text-center"> | ||
<p> | ||
{{ key }}: {{ value["count"] }} | ||
{% if value["extras"] -%} | ||
<div class="extras"> | ||
{% for extra in value["extras"] -%} | ||
<div>{{ extra }}</div> | ||
{% endfor %} | ||
</div> | ||
{%- endif %} | ||
</p> | ||
</div> | ||
{%- endfor %} | ||
</div> | ||
</div> | ||
|
||
{%- endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters