mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Updated form to delete part category
This commit is contained in:
parent
ffa5a25fa9
commit
00b37b62db
InvenTree/part/templates/part
@ -111,7 +111,7 @@
|
||||
{% endif %}
|
||||
|
||||
$('#cat-delete').click(function() {
|
||||
launchDeleteForm("{% url 'category-delete' category.id %}",
|
||||
launchModalForm("{% url 'category-delete' category.id %}",
|
||||
{
|
||||
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 }}'?
|
||||
|
||||
{% if category.children.all|length > 0 %}
|
||||
@ -30,4 +33,6 @@ the top level 'Parts' category.
|
||||
<li class='list-group-item'><b>{{ part.full_name }}</b> - <i>{{ part.description }}</i></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
Loading…
Reference in New Issue
Block a user