2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 05:46:34 +00:00

Update a bunch more tables

This commit is contained in:
Oliver Walters
2019-09-22 22:18:53 +10:00
parent 2046c12600
commit ae2e2f36e4
20 changed files with 26 additions and 88 deletions

View File

@ -29,9 +29,7 @@
{% block js_ready %}
$("#build-table").bootstrapTable({
search: true,
sortable: true,
$("#build-table").inventreeTable({
columns: [
{
title: 'Build',

View File

@ -89,9 +89,7 @@
});
});
$("#attachment-table").bootstrapTable({
search: true,
sortable: true,
$("#attachment-table").inventreeTable({
});
{% endblock %}

View File

@ -31,12 +31,7 @@
});
});
$("#build-table").bootstrapTable({
sortable: true,
search: true,
pagination: true,
pageSize: 50,
pageList: [25, 50, 100, 'all'],
$("#build-table").inventreeTable({
queryParams: function(p) {
return {
part: {{ part.id }},

View File

@ -26,9 +26,7 @@
{% block js_ready %}
{{ block.super }}
$("#po-table").bootstrapTable({
search: true,
sortable: true,
$("#po-table").inventreeTable({
});
$("#part-order2").click(function() {

View File

@ -44,9 +44,7 @@
{% block js_ready %}
{{ block.super }}
$('#param-table').bootstrapTable({
search: true,
sortable: true,
$('#param-table').inventreeTable({
});
$('#param-create').click(function() {

View File

@ -50,9 +50,7 @@
});
});
$("#supplier-table").bootstrapTable({
sortable: true,
search: true,
$("#supplier-table").inventreeTable({
formatNoMatches: function() { return "No supplier parts available for {{ part.full_name }}"; },
queryParams: function(p) {
return {

View File

@ -16,9 +16,7 @@
{% block js_ready %}
{{ block.super }}
$("#used-table").bootstrapTable({
sortable: true,
search: true,
$("#used-table").inventreeTable({
formatNoMatches: function() { return "{{ part.full_name }} is not used to make any other parts"; },
queryParams: function(p) {
return {

View File

@ -53,9 +53,7 @@
{{ block.super }}
$('#variant-table').bootstrapTable({
search: true,
sortable: true,
$('#variant-table').inventreeTable({
});
$('#new-variant').click(function() {