diff options
author | Marius Peter <marius.peter@tutanota.com> | 2022-05-01 21:38:59 +0200 |
---|---|---|
committer | Marius Peter <marius.peter@tutanota.com> | 2022-05-01 21:38:59 +0200 |
commit | caa0e1db19c0616031f7879d4298ed152b05f557 (patch) | |
tree | 927a70654c46c27cb9f313ac6020efa863b32035 /app/templates/modules/orders.html | |
parent | ce73f10a4aaa717de025fd2dc591294fea0db8de (diff) |
Jinja2 templates.
Diffstat (limited to 'app/templates/modules/orders.html')
-rw-r--r-- | app/templates/modules/orders.html | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/app/templates/modules/orders.html b/app/templates/modules/orders.html new file mode 100644 index 0000000..bf94d3d --- /dev/null +++ b/app/templates/modules/orders.html @@ -0,0 +1,37 @@ +{# -*- mode: web; -*- #} + +{% extends "base.html" %} +{% block title %} +Orders +{% endblock %} + +{% block content %} +<i>Track your orders and their payment status here.</i> + +<p> + <a href="{{ url_for('add_item', item='order') }}" class="button">Add order</a> +</p> + +<table> + <thead> + <tr> + <th>ID</th> + <th>Date</th> + <th>Customer</th> + <th>Content</th> + <th>Updated</th> + </tr> + </thead> + <tbody> + {% for order in orders %} + <tr> + <td>{{ order.id }}</td> + <td>{{ order.date }}</td> + <td>{{ order.customer }}</td> + <td>{{ order.content }}</td> + <td>{{ order.updated }}</td> + </tr> + {% endfor %} + </tbody> +</table> +{% endblock %} |