2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-01 11:10:54 +00:00

Skeleton for AJAXified build table

This commit is contained in:
Oliver Walters
2020-04-11 19:36:01 +10:00
parent 2f71233d62
commit a4e45eab13
5 changed files with 73 additions and 18 deletions

View File

@ -23,6 +23,9 @@ InvenTree | Build List
<hr>
<table class='table table-striped table-condensed' id='build-table'>
</table>
{% include "build/build_list.html" with builds=active title="Active Builds" completed=False collapse_id='active' %}
{% include "build/build_list.html" with builds=completed completed=True title="Completed Builds" collapse_id="complete" %}
@ -44,6 +47,10 @@ InvenTree | Build List
});
});
loadBuildTable($("#build-table"), {
url: "{% url 'api-build-list' %}"
});
$(".build-table").inventreeTable({
formatNoMatches: function() { return 'No builds found'; },
columns: [