2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Replace "edit part category" form

This commit is contained in:
Oliver
2021-06-30 01:04:39 +10:00
parent c425f36a35
commit 621f47e46c
8 changed files with 62 additions and 13 deletions

View File

@@ -268,13 +268,23 @@
{% if category %}
$("#cat-edit").click(function () {
launchModalForm(
"{% url 'category-edit' category.id %}",
constructForm(
'{% url "api-part-category-detail" category.pk %}',
{
fields: {
name: {},
description: {},
parent: {},
default_location: {},
default_keywords: {
icon: 'fa-key',
}
},
title: '{% trans "Edit Part Category" %}',
reload: true
},
}
);
return false;
});
{% if category.parent %}