From deccdce6d963137e10cc95ef1fce6116483c35ee Mon Sep 17 00:00:00 2001 From: Oliver Date: Mon, 7 May 2018 08:41:19 +1000 Subject: [PATCH] Part view updates --- InvenTree/part/templates/part/stock.html | 14 +++++++++++--- InvenTree/part/templates/part/supplier.html | 21 +++++++++++---------- InvenTree/static/css/inventree.css | 4 ++++ 3 files changed, 26 insertions(+), 13 deletions(-) diff --git a/InvenTree/part/templates/part/stock.html b/InvenTree/part/templates/part/stock.html index e7373e223d..3efe9af05e 100644 --- a/InvenTree/part/templates/part/stock.html +++ b/InvenTree/part/templates/part/stock.html @@ -6,12 +6,20 @@

Part Stock

+
+
+

Part Stock

+
+
+

+ +

+
+
+
-
- -
{% endblock %} diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html index 579ef0a0f3..fcaa360e2b 100644 --- a/InvenTree/part/templates/part/supplier.html +++ b/InvenTree/part/templates/part/supplier.html @@ -4,20 +4,21 @@ {% include 'part/tabs.html' with tab='suppliers' %} -

Part Suppliers

+
+
+

Part Suppliers

+
+
+

+ +

+
+
-{% if part.supplier_count > 0 %} -

{{ part.name }} is available from {{ part.supplier_count }} suppliers.

+
-{% else %} -

{{ part.name }} is not available from any suppliers.

-{% endif %} - -
- -
{% endblock %} diff --git a/InvenTree/static/css/inventree.css b/InvenTree/static/css/inventree.css index e23039a58e..1a618945eb 100644 --- a/InvenTree/static/css/inventree.css +++ b/InvenTree/static/css/inventree.css @@ -120,4 +120,8 @@ .btn { margin-left: 2px; margin-right: 2px; +} + +.float-right { + float: right; } \ No newline at end of file