From 75b21bdd8fe4599b23a892d3a36984b7c787f039 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 26 May 2019 00:20:03 +1000 Subject: [PATCH] Visual tweaks --- InvenTree/part/templates/part/stock.html | 6 ++++++ InvenTree/part/templates/part/variants.html | 3 ++- InvenTree/templates/stock_table.html | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/stock.html b/InvenTree/part/templates/part/stock.html index 3b2bdec166..e9c22bf1d9 100644 --- a/InvenTree/part/templates/part/stock.html +++ b/InvenTree/part/templates/part/stock.html @@ -13,6 +13,12 @@
+{% if part.is_template %} +
+ Showing stock for all variants of {{ part.full_name }} +
+{% endif %} + {% include "stock_table.html" %} {% endblock %} diff --git a/InvenTree/part/templates/part/variants.html b/InvenTree/part/templates/part/variants.html index 1afcda25d3..0cf9735364 100644 --- a/InvenTree/part/templates/part/variants.html +++ b/InvenTree/part/templates/part/variants.html @@ -39,7 +39,8 @@ {% endif %} - {{ variant.full_name }} + {{ variant.full_name }} + {{ variant.description }} {{ variant.total_stock }} diff --git a/InvenTree/templates/stock_table.html b/InvenTree/templates/stock_table.html index f5411fabb8..fae7b04214 100644 --- a/InvenTree/templates/stock_table.html +++ b/InvenTree/templates/stock_table.html @@ -1,6 +1,8 @@
+ {% if part.is_template == False %} + {% endif %}