mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix search result tables
This commit is contained in:
parent
539b000460
commit
7ab58f683f
@ -137,29 +137,30 @@
|
|||||||
|
|
||||||
$("#cat-create").click(function() {
|
$("#cat-create").click(function() {
|
||||||
launchModalForm(
|
launchModalForm(
|
||||||
"{% url 'category-create' %}",
|
"{% url 'category-create' %}",
|
||||||
{
|
{
|
||||||
follow: true,
|
follow: true,
|
||||||
{% if category %}
|
{% if category %}
|
||||||
data: {
|
data: {
|
||||||
category: {{ category.id }}
|
category: {{ category.id }}
|
||||||
},
|
},
|
||||||
{% endif %}
|
{% endif %}
|
||||||
secondary: [
|
secondary: [
|
||||||
{
|
{
|
||||||
field: 'default_location',
|
field: 'default_location',
|
||||||
label: 'New Location',
|
label: 'New Location',
|
||||||
title: 'Create new location',
|
title: 'Create new location',
|
||||||
url: "{% url 'stock-location-create' %}",
|
url: "{% url 'stock-location-create' %}",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'parent',
|
field: 'parent',
|
||||||
label: 'New Category',
|
label: 'New Category',
|
||||||
title: 'Create new category',
|
title: 'Create new category',
|
||||||
url: "{% url 'category-create' %}",
|
url: "{% url 'category-create' %}",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
});
|
}
|
||||||
|
);
|
||||||
})
|
})
|
||||||
|
|
||||||
$("#part-export").click(function() {
|
$("#part-export").click(function() {
|
||||||
|
@ -127,7 +127,7 @@ InvenTree | {% trans "Search Results" %}
|
|||||||
loadPartTable("#part-results-table",
|
loadPartTable("#part-results-table",
|
||||||
"{% url 'api-part-list' %}",
|
"{% url 'api-part-list' %}",
|
||||||
{
|
{
|
||||||
query: {
|
params: {
|
||||||
search: "{{ query }}",
|
search: "{{ query }}",
|
||||||
},
|
},
|
||||||
allowInactive: true,
|
allowInactive: true,
|
||||||
@ -137,7 +137,7 @@ InvenTree | {% trans "Search Results" %}
|
|||||||
|
|
||||||
loadCompanyTable('#company-results-table', "{% url 'api-company-list' %}", {
|
loadCompanyTable('#company-results-table', "{% url 'api-company-list' %}", {
|
||||||
params: {
|
params: {
|
||||||
serach: "{{ query }}",
|
search: "{{ query }}",
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -9,6 +9,12 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block collapse_content %}
|
{% block collapse_content %}
|
||||||
|
<div id='button-toolbar'>
|
||||||
|
<div class='button-toolbar container-fluid' style='float: right;'>
|
||||||
|
<div class='filter-list' id='filter-list-parts'></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<table class='table table-striped table-condensed' data-toolbar="#button-toolbar" id='part-results-table'>
|
<table class='table table-striped table-condensed' data-toolbar="#button-toolbar" id='part-results-table'>
|
||||||
</table>
|
</table>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user