diff --git a/InvenTree/build/templates/build/detail.html b/InvenTree/build/templates/build/detail.html index f8500b0fe0..c412b1ea75 100644 --- a/InvenTree/build/templates/build/detail.html +++ b/InvenTree/build/templates/build/detail.html @@ -1,4 +1,4 @@ -{% include "base.html" %} +{% extends "base.html" %} {% block content %}

Build Details

diff --git a/InvenTree/customer/templates/customer/order_index.html b/InvenTree/customer/templates/customer/order_index.html index b71db4932b..2bc8554196 100644 --- a/InvenTree/customer/templates/customer/order_index.html +++ b/InvenTree/customer/templates/customer/order_index.html @@ -1,6 +1,6 @@ {% extends "base.html" %} -{% block contents %} +{% block content %} diff --git a/InvenTree/supplier/templates/supplier/order_detail.html b/InvenTree/supplier/templates/supplier/order_detail.html index 1a9f650410..1aa3d8c8e9 100644 --- a/InvenTree/supplier/templates/supplier/order_detail.html +++ b/InvenTree/supplier/templates/supplier/order_detail.html @@ -1,7 +1,50 @@ -{% include "base.html" %} +{% extends "base.html" %} {% block content %} -Details for supplier order {{ order.id }}. +

Supplier Order Details

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + +
Reference{{ order.internal_ref }}
Supplier + {% if order.supplier %} + {{ order.supplier.name }} + {% endif %} +
Status{% include "supplier/order_status.html" with order=order %}
Created Date{{ order.created_date }}
Issued Date{{ order.issued_date }}
Delivered Date{{ order.delivery_date }}
+ + +{% if order.notes %} +
+
Notes
+
{{ order.notes }}
+
+ +

TODO

+Here we list all the line ites which exist under this order... + +{% endif %} {% endblock %} \ No newline at end of file diff --git a/InvenTree/supplier/templates/supplier/order_status.html b/InvenTree/supplier/templates/supplier/order_status.html new file mode 100644 index 0000000000..49ccc7f170 --- /dev/null +++ b/InvenTree/supplier/templates/supplier/order_status.html @@ -0,0 +1,13 @@ +{% if order.status == order.PENDING %} + +{% elif order.status == order.PLACED %} + +{% elif order.status == order.RECEIVED %} + +{% elif order.status == order.CANCELLED %} + +{% else %} + +{% endif %} +{{ order.get_status_display }} + \ No newline at end of file diff --git a/InvenTree/supplier/templates/supplier/orders.html b/InvenTree/supplier/templates/supplier/orders.html index 84adf17585..29ac20dad0 100644 --- a/InvenTree/supplier/templates/supplier/orders.html +++ b/InvenTree/supplier/templates/supplier/orders.html @@ -18,7 +18,7 @@ {{ order.internal_ref }} {% if order.issued_date %}{{ order.issued_date }}{% endif %} {% if order.delivery_date %}{{ order.delivery_date }}{% endif %} - {{ order.get_status_display }} + {% include "supplier/order_status.html" with order=order %} {% endfor %} diff --git a/InvenTree/templates/base.html b/InvenTree/templates/base.html index 0124c9018d..3151fd1477 100644 --- a/InvenTree/templates/base.html +++ b/InvenTree/templates/base.html @@ -33,7 +33,7 @@ InvenTree {% include "navbar.html" %} -
+
{% block content %} {% endblock %}