From c8be9cb90c6bcd042311fc56f0e863acc1e9202d Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 13 Sep 2019 20:58:17 +1000 Subject: [PATCH] Display template badge in part table --- InvenTree/InvenTree/static/script/inventree/part.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/InvenTree/static/script/inventree/part.js b/InvenTree/InvenTree/static/script/inventree/part.js index 18909fff0d..1056a7706b 100644 --- a/InvenTree/InvenTree/static/script/inventree/part.js +++ b/InvenTree/InvenTree/static/script/inventree/part.js @@ -137,6 +137,10 @@ function loadPartTable(table, url, options={}) { var display = imageHoverIcon(row.image) + renderLink(name, '/part/' + row.pk + '/'); + if (row.is_template) { + display = display + "TEMPLATE"; + } + if (!row.active) { display = display + "INACTIVE"; }