diff --git a/InvenTree/company/templates/company/detail_part.html b/InvenTree/company/templates/company/detail_part.html index 1db55c12d5..797446472f 100644 --- a/InvenTree/company/templates/company/detail_part.html +++ b/InvenTree/company/templates/company/detail_part.html @@ -39,6 +39,7 @@ $("#part-table").bootstrapTable({ sortable: true, search: true, + formatNoMatches: function() { return "No supplier parts found for {{ company.name }}"; }, queryParams: function(p) { return { supplier: {{ company.id }} diff --git a/InvenTree/company/templates/company/index.html b/InvenTree/company/templates/company/index.html index a9cb7e2700..7cfd7d18de 100644 --- a/InvenTree/company/templates/company/index.html +++ b/InvenTree/company/templates/company/index.html @@ -31,6 +31,7 @@ sortable: true, search: true, pagination: true, + formatNoMatches: function() { return "No company information found"; }, columns: [ { field: 'pk', diff --git a/InvenTree/part/templates/part/supplier.html b/InvenTree/part/templates/part/supplier.html index fba1ec38db..0f417eb650 100644 --- a/InvenTree/part/templates/part/supplier.html +++ b/InvenTree/part/templates/part/supplier.html @@ -40,6 +40,7 @@ $("#supplier-table").bootstrapTable({ sortable: true, search: true, + formatNoMatches: function() { return "No supplier parts available for {{ part.name }}"; }, queryParams: function(p) { return { part: {{ part.id }} diff --git a/InvenTree/part/templates/part/used_in.html b/InvenTree/part/templates/part/used_in.html index bce5dfcffa..118f335468 100644 --- a/InvenTree/part/templates/part/used_in.html +++ b/InvenTree/part/templates/part/used_in.html @@ -6,21 +6,9 @@
- {{ part.name }} is used to make {{ part.used_in_count }} other parts. -
-- {{ part.name }} is not used to make any other parts. -
-{% endif %} - {% endblock %} {% block js_ready %} @@ -29,6 +17,7 @@ $("#used-table").bootstrapTable({ sortable: true, search: true, + formatNoMatches: function() { return "{{ part.name }} is not used to make any other parts"; }, queryParams: function(p) { return { sub_part: {{ part.id }} diff --git a/InvenTree/static/script/inventree/bom.js b/InvenTree/static/script/inventree/bom.js index 1b58b81a93..777acbd4ef 100644 --- a/InvenTree/static/script/inventree/bom.js +++ b/InvenTree/static/script/inventree/bom.js @@ -164,6 +164,7 @@ function loadBomTable(table, options) { table.bootstrapTable({ sortable: true, search: true, + formatNoMatches: function() { return "No BOM items found"; }, clickToSelect: true, queryParams: function(p) { return { diff --git a/InvenTree/templates/InvenTree/search.html b/InvenTree/templates/InvenTree/search.html index ceb79cc5a3..a3e709870f 100644 --- a/InvenTree/templates/InvenTree/search.html +++ b/InvenTree/templates/InvenTree/search.html @@ -27,6 +27,7 @@ sortable: true, search: true, pagination: true, + formatNoMatches: function() { return "No parts found matching search query"; }, queryParams: function(p) { return { search: "{{ query }}",