2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Create template for stock table

This commit is contained in:
Oliver Walters
2019-05-16 22:15:44 +10:00
parent b8f5c8cca7
commit 0a1887477c
4 changed files with 30 additions and 47 deletions

View File

@ -7,19 +7,20 @@
<h3>Supplier Stock</h3>
<table class='table table-striped table-condensed' id='stock-table'>
</table>
{% include "stock_table.html" %}
{% endblock %}
{% block js_ready %}
{{ block.super }}
loadStockTable($('#stock-table'),
{
url: "{% url 'api-stock-list' %}",
params: {
supplier: {{ company.id }},
}
loadStockTable($('#stock-table'), {
url: "{% url 'api-stock-list' %}",
params: {
supplier: {{ company.id }},
},
buttons: [
'#stock-options',
]
});
{% endblock %}