diff --git a/InvenTree/part/api.py b/InvenTree/part/api.py index 644c5d32e2..75c8f3a60f 100644 --- a/InvenTree/part/api.py +++ b/InvenTree/part/api.py @@ -412,7 +412,7 @@ part_star_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'), ] diff --git a/InvenTree/templates/InvenTree/settings/part.html b/InvenTree/templates/InvenTree/settings/part.html index 7a125e8e70..48588d4809 100644 --- a/InvenTree/templates/InvenTree/settings/part.html +++ b/InvenTree/templates/InvenTree/settings/part.html @@ -7,7 +7,11 @@ {% block settings %}

Part Parameter Templates

- +
+ +
+ +
{% endblock %} @@ -43,4 +47,12 @@ ] }); + $("#new-param").click(function() { + launchModalForm("{% url 'part-param-template-create' %}", { + success: function() { + $("#param-table").bootstrapTable('refresh'); + }, + }); + }); + {% endblock %} \ No newline at end of file