2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Filter by category too

This commit is contained in:
Oliver Walters
2019-09-09 19:59:56 +10:00
parent 776fc8b1e5
commit ddb041fe44
3 changed files with 28 additions and 14 deletions

View File

@@ -44,6 +44,7 @@
<div id='button-toolbar'>
<div class='button-toolbar container-fluid' style="float: right;">
<button class='btn btn-default' id='part-export' title='Export Part Data'>Export</button>
<button class='btn btn-success' id='part-create'>New Part</button>
<div class='dropdown' style='float: right;'>
<button id='part-options' class='btn btn-primary dropdown-toggle' type='button' data-toggle="dropdown">Options<span class='caret'></span></button>
@@ -104,6 +105,13 @@
});
})
$("#part-export").click(function() {
var url = "{% url 'part-export' %}?category={{ category.id }}";
location.href = url;
});
$("#part-create").click(function() {
launchModalForm(
"{% url 'part-create' %}",