mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Create a new part parameter template
This commit is contained in:
parent
94ab7c5b0e
commit
67ea0fa887
@ -412,7 +412,7 @@ part_star_api_urls = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
part_param_api_urls = [
|
part_param_api_urls = [
|
||||||
url(r'^template/?$', PartParameterTemplateList.as_view(), name='api-part-param-template-list'),
|
url(r'^template/$', PartParameterTemplateList.as_view(), name='api-part-param-template-list'),
|
||||||
|
|
||||||
url(r'^.*$', PartParameterList.as_view(), name='api-part-param-list'),
|
url(r'^.*$', PartParameterList.as_view(), name='api-part-param-list'),
|
||||||
]
|
]
|
||||||
|
@ -7,7 +7,11 @@
|
|||||||
{% block settings %}
|
{% block settings %}
|
||||||
<h4>Part Parameter Templates</h4>
|
<h4>Part Parameter Templates</h4>
|
||||||
|
|
||||||
<table class='table table-striped table-condensed' id='param-table'>
|
<div id='param-buttons'>
|
||||||
|
<button class='btn btn-success' id='new-param'>New Parameter</button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<table class='table table-striped table-condensed' id='param-table' data-toolbar='#param-buttons'>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -43,4 +47,12 @@
|
|||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
|
||||||
|
$("#new-param").click(function() {
|
||||||
|
launchModalForm("{% url 'part-param-template-create' %}", {
|
||||||
|
success: function() {
|
||||||
|
$("#param-table").bootstrapTable('refresh');
|
||||||
|
},
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user