mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Display list of part parameter templates in the part settings page
This commit is contained in:
parent
f415e2040e
commit
94ab7c5b0e
@ -5,5 +5,42 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block settings %}
|
||||
<h4>Part Parameter Templates</h4>
|
||||
|
||||
<table class='table table-striped table-condensed' id='param-table'>
|
||||
</table>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
|
||||
$("#param-table").bootstrapTable({
|
||||
url: "{% url 'api-part-param-template-list' %}",
|
||||
queryParams: {
|
||||
ordering: 'name',
|
||||
},
|
||||
sortable: true,
|
||||
search: true,
|
||||
formatNoMatches: function() { return "No part parameter templates found"; },
|
||||
columns: [
|
||||
{
|
||||
field: 'pk',
|
||||
title: 'ID',
|
||||
visible: false,
|
||||
},
|
||||
{
|
||||
field: 'name',
|
||||
title: 'Name',
|
||||
sortable: 'true',
|
||||
},
|
||||
{
|
||||
field: 'units',
|
||||
title: 'Units',
|
||||
sortable: 'true',
|
||||
},
|
||||
|
||||
]
|
||||
});
|
||||
|
||||
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user