From 2178f37d6a6f555e8813a2e2b4732c1385bff2fe Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Tue, 3 Oct 2017 18:02:07 +0200 Subject: [PATCH] deletion of orders working --- ordr2/templates/orders/delete.jinja2 | 66 +++++++++++++++++++ .../orders/edit_multiple_stati.jinja2 | 2 + ordr2/views/orders.py | 58 ++++++++++++++++ 3 files changed, 126 insertions(+) create mode 100755 ordr2/templates/orders/delete.jinja2 diff --git a/ordr2/templates/orders/delete.jinja2 b/ordr2/templates/orders/delete.jinja2 new file mode 100755 index 0000000..dba95fd --- /dev/null +++ b/ordr2/templates/orders/delete.jinja2 @@ -0,0 +1,66 @@ +{% extends "ordr2:templates/layout.jinja2" %} +{% import 'ordr2:templates/macros.jinja2' as macros with context %} + +{% block subtitle %} Orders | Confirm Delete {% endblock subtitle %} + +{% block content %} +
+ +
+
+
+

Delete Order{{ 's' if orders|length > 1 }}

+
+
+ +
+
+ +
+

The following order{{ 's' if orders|length > 1 }} will be deleted:

+
+ +
+ + + + + + + + + + + + + {% for order in orders %} + + + + + + + + {% endfor %} + +
Date CreatedCAS / DescriptionVendorPlaced byStatus
+ + {{ order.created_date }} + {{ order.cas_description }} {{ order.vendor }} {{ order.created_by }} {{ macros.colored_status(order.status) }}
+ +
+
+ + +
+
+ +
+ +
+
+ +
+ +
+{% endblock content %} diff --git a/ordr2/templates/orders/edit_multiple_stati.jinja2 b/ordr2/templates/orders/edit_multiple_stati.jinja2 index 21f8516..930e09a 100644 --- a/ordr2/templates/orders/edit_multiple_stati.jinja2 +++ b/ordr2/templates/orders/edit_multiple_stati.jinja2 @@ -27,6 +27,7 @@ Date Created CAS / Description + Vendor Placed by Status @@ -36,6 +37,7 @@ {{ order.created_date }} {{ order.cas_description }} + {{ order.vendor }} {{ order.created_by }}