mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 20:16:44 +00:00
Updated form to delete part category
This commit is contained in:
parent
ffa5a25fa9
commit
00b37b62db
@ -111,7 +111,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
$('#cat-delete').click(function() {
|
$('#cat-delete').click(function() {
|
||||||
launchDeleteForm("{% url 'category-delete' category.id %}",
|
launchModalForm("{% url 'category-delete' category.id %}",
|
||||||
{
|
{
|
||||||
redirect: redirect
|
redirect: redirect
|
||||||
});
|
});
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
{% extends "modal_delete_form.html" %}
|
||||||
|
|
||||||
|
{% block pre_form_content %}
|
||||||
Are you sure you want to delete category '{{ category.name }}'?
|
Are you sure you want to delete category '{{ category.name }}'?
|
||||||
|
|
||||||
{% if category.children.all|length > 0 %}
|
{% if category.children.all|length > 0 %}
|
||||||
@ -31,3 +34,5 @@ the top level 'Parts' category.
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user