From 260d89005247d92250c0ea96062cd9c6c1715af4 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sun, 28 Apr 2019 23:08:54 +1000 Subject: [PATCH] If a part is not active, display an INACTIVE Message on part page --- InvenTree/part/templates/part/part_base.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index ceda740c16..79be275307 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -5,6 +5,11 @@ {% block content %}
+ {% if part.active == False %} +
+ This part ({{ part.name }}) is not active: +
+ {% endif %}
@@ -16,7 +21,7 @@ {% endif %}/>
-

{{ part.name }}

+

{{ part.name }}{% if part.active == False %} - INACTIVE{% endif %}

{% if part.description %}

{{ part.description }}

{% endif %}