From 19ce05931c87cd2bc4da94f116f7b886500c40bb Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 6 May 2018 19:21:33 +1000 Subject: [PATCH] Re-added missing "New Part" button --- InvenTree/part/templates/part/category.html | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/InvenTree/part/templates/part/category.html b/InvenTree/part/templates/part/category.html index b287207a51..4a7fc9704e 100644 --- a/InvenTree/part/templates/part/category.html +++ b/InvenTree/part/templates/part/category.html @@ -43,6 +43,10 @@
+
+ +
+ {% endblock %} {% block js_ready %} @@ -61,6 +65,19 @@ }); }) + $("#part-create").click(function() { + launchModalForm("#modal-form", + "{% url 'part-create' %}", + { + follow: true, + data: { + {% if category %} + category: {{ category.id }} + {% endif %} + } + }); + }); + {% if category %} $("#cat-edit").click(function () { launchModalForm("#modal-form",