diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index f631c1b6ff..f1820f08d3 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -70,7 +70,7 @@ {% endif %} diff --git a/InvenTree/templates/js/translated/filters.js b/InvenTree/templates/js/translated/filters.js index a889902543..965717daff 100644 --- a/InvenTree/templates/js/translated/filters.js +++ b/InvenTree/templates/js/translated/filters.js @@ -308,22 +308,28 @@ function setupFilterList(tableKey, table, target, options={}) { // Construct a set of buttons var buttons = ''; - // Add 'print reports' button - if (options.report && global_settings.REPORT_ENABLE) { - buttons += makeFilterButton({ - id: `print-report-${tableKey}`, - title: options.report.title || '{% trans "Print reports for selected items" %}', - icon: 'fa-print', - }); - } + let report_button = options.report && global_settings.REPORT_ENABLE; + let labels_button = options.labels && global_settings.LABEL_ENABLE; - // Add 'print labels' button - if (options.labels && global_settings.LABEL_ENABLE) { - buttons += makeFilterButton({ - id: `print-labels-${tableKey}`, - title: options.labels.title || '{% trans "Print labels for selected items" %}', - icon: 'fa-tag', - }); + if (report_button || labels_button) { + let print_buttons = ` +
+ +
`; + + buttons += print_buttons; } // Add download button