From 68b273aae1720f9b8f4a7be34df2ebe20ad812e4 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 10 May 2019 22:18:56 +1000 Subject: [PATCH] Fixed some more part name displays --- InvenTree/part/templates/part/category_delete.html | 2 +- InvenTree/part/templates/part/detail.html | 6 +++--- InvenTree/part/templates/part/used_in.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/InvenTree/part/templates/part/category_delete.html b/InvenTree/part/templates/part/category_delete.html index 8b6d5618f3..c603637765 100644 --- a/InvenTree/part/templates/part/category_delete.html +++ b/InvenTree/part/templates/part/category_delete.html @@ -27,7 +27,7 @@ the top level 'Parts' category.

{% endif %} \ No newline at end of file diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 419409a95d..3242316136 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -34,7 +34,7 @@ - + @@ -147,7 +147,7 @@ $('#activate-part').click(function() { showQuestionDialog( 'Activate Part?', - 'Are you sure you wish to reactivate {{ part.name }}?', + 'Are you sure you wish to reactivate {{ part.long_name }}?', { accept_text: 'Activate', accept: function() { @@ -169,7 +169,7 @@ $('#deactivate-part').click(function() { showQuestionDialog( 'Deactivate Part?', - `Are you sure you wish to deactivate {{ part.name }}?
+ `Are you sure you wish to deactivate {{ part.long_name }}?
`, { accept_text: 'Deactivate', diff --git a/InvenTree/part/templates/part/used_in.html b/InvenTree/part/templates/part/used_in.html index f1a055695e..f7272dfea6 100644 --- a/InvenTree/part/templates/part/used_in.html +++ b/InvenTree/part/templates/part/used_in.html @@ -27,7 +27,7 @@ $("#used-table").bootstrapTable({ sortable: true, search: true, - formatNoMatches: function() { return "{{ part.name }} is not used to make any other parts"; }, + formatNoMatches: function() { return "{{ part.long_name }} is not used to make any other parts"; }, queryParams: function(p) { return { sub_part: {{ part.id }}
Part name{{ part.name }}{{ part.long_name }}
Description