mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 12:36:45 +00:00
Adds refresh and filtering for "company" table
This commit is contained in:
parent
09777c5764
commit
0a21512329
@ -25,6 +25,7 @@
|
|||||||
<div class='panel-content'>
|
<div class='panel-content'>
|
||||||
|
|
||||||
<div id='button-toolbar'>
|
<div id='button-toolbar'>
|
||||||
|
{% include "filter_list.html" with id='company' %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class='table table-striped table-condensed' id='company-table' data-toolbar='#button-toolbar'>
|
<table class='table table-striped table-condensed' id='company-table' data-toolbar='#button-toolbar'>
|
||||||
|
@ -380,6 +380,7 @@ function loadCompanyTable(table, url, options={}) {
|
|||||||
url: url,
|
url: url,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
queryParams: filters,
|
queryParams: filters,
|
||||||
|
original: params,
|
||||||
groupBy: false,
|
groupBy: false,
|
||||||
sidePagination: 'server',
|
sidePagination: 'server',
|
||||||
formatNoMatches: function() {
|
formatNoMatches: function() {
|
||||||
|
@ -381,6 +381,24 @@ function getAvailableTableFilters(tableKey) {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Filters for "company" table
|
||||||
|
if (tableKey == 'company') {
|
||||||
|
return {
|
||||||
|
is_manufacturer: {
|
||||||
|
type: 'bool',
|
||||||
|
title: '{% trans "Manufacturer" %}',
|
||||||
|
},
|
||||||
|
is_supplier: {
|
||||||
|
type: 'bool',
|
||||||
|
title: '{% trans "Supplier" %}',
|
||||||
|
},
|
||||||
|
is_customer: {
|
||||||
|
type: 'bool',
|
||||||
|
title: '{% trans "Customer" %}',
|
||||||
|
},
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// Filters for the "Parts" table
|
// Filters for the "Parts" table
|
||||||
if (tableKey == 'parts') {
|
if (tableKey == 'parts') {
|
||||||
return {
|
return {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user