2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Option to disable filters for part table

This commit is contained in:
Oliver Walters
2020-04-16 21:41:45 +10:00
parent 7ab58f683f
commit 206d67337f
3 changed files with 12 additions and 4 deletions

View File

@ -104,6 +104,7 @@ InvenTree | {% trans "Search Results" %}
],
});
$("#location-results-table").inventreeTable({
url: "{% url 'api-location-list' %}",
queryParams: {
@ -124,16 +125,18 @@ InvenTree | {% trans "Search Results" %}
],
});
loadPartTable("#part-results-table",
"{% url 'api-part-list' %}",
{
params: {
search: "{{ query }}",
},
allowInactive: true,
checkbox: false,
disableFilters: true,
}
);
loadCompanyTable('#company-results-table', "{% url 'api-company-list' %}", {
params: {
@ -153,5 +156,5 @@ InvenTree | {% trans "Search Results" %}
},
}
);
{% endblock %}

View File

@ -11,6 +11,7 @@
{% block collapse_content %}
<div id='button-toolbar'>
<div class='button-toolbar container-fluid' style='float: right;'>
<button class='btn btn-default'>Hello</button>
<div class='filter-list' id='filter-list-parts'></div>
</div>
</div>