From 6434bfc24ac8c98a3ad9f956a0f88a92d3dae8a4 Mon Sep 17 00:00:00 2001 From: James Newlands Date: Tue, 17 Apr 2018 23:12:35 +1000 Subject: [PATCH] Split table of customer orders into separate template from customer orders index page --- .../customer_orders/customer_orders_list.html | 14 ++++++++++++++ .../templates/customer_orders/index.html | 16 +--------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 InvenTree/customer_orders/templates/customer_orders/customer_orders_list.html diff --git a/InvenTree/customer_orders/templates/customer_orders/customer_orders_list.html b/InvenTree/customer_orders/templates/customer_orders/customer_orders_list.html new file mode 100644 index 0000000000..c33d615951 --- /dev/null +++ b/InvenTree/customer_orders/templates/customer_orders/customer_orders_list.html @@ -0,0 +1,14 @@ + + + + + + + {% for order in customer_orders %} + + + + + + {% endfor %} +
Internal RefCustomerCustomer Ref
{{ order.internal_ref }}{{ order.customer }}{{ order.customer_ref }}
\ No newline at end of file diff --git a/InvenTree/customer_orders/templates/customer_orders/index.html b/InvenTree/customer_orders/templates/customer_orders/index.html index 4c49b9d019..2987484fc7 100644 --- a/InvenTree/customer_orders/templates/customer_orders/index.html +++ b/InvenTree/customer_orders/templates/customer_orders/index.html @@ -5,21 +5,7 @@ {% if customer_orders.all|length > 0 %}

Customer Orders

- - - - - - - {% for order in customer_orders %} - - - - - - {% endfor %} -
Internal RefCustomerCustomer Ref
{{ order.internal_ref }}{{ order.customer }}{{ order.customer_ref }}
- + {% include "customer_orders/customer_orders_list.html" with customer_orders=customer_orders %} {% endif %} {% endblock %} \ No newline at end of file