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

Load testresult table for stock item

- Uses the API / bootstrap table
- Is pretty!
- Provides link to the attachment (if one exists)
This commit is contained in:
Oliver Walters
2020-05-16 23:54:07 +10:00
parent 3b53437f46
commit e23a9c1269
3 changed files with 134 additions and 1 deletions

View File

@ -10,11 +10,30 @@
<hr>
<h4>{% trans "Test Results" %}</h4>
<table class='table table-striped table-condensed' id='test-result-table'></table>
<div id='button-toolbar'>
<div class='button-toolbar container-fluid' style="float: right;">
<!-- TODO - Add a button here to manually upload a new test result -->
<div class='filter-list' id='filter-list-stocktests'>
<!-- Empty div -->
</div>
</div>
</div>
<table class='table table-striped table-condensed' data-toolbar='#button-toolbar' id='test-result-table'></table>
{% endblock %}
{% block js_ready %}
{{ block.super }}
loadStockTestResultsTable(
$("#test-result-table"), {
params: {
stock_item: {{ item.id }},
user_detail: true,
attachment_detail: true,
},
}
);
{% endblock %}