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:
@ -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 %}
|
Reference in New Issue
Block a user