Updated form to delete part category

This commit is contained in:
Oliver Walters 2019-05-13 22:55:40 +10:00
parent ffa5a25fa9
commit 00b37b62db
2 changed files with 7 additions and 2 deletions
InvenTree/part/templates/part

View File

@ -111,7 +111,7 @@
{% endif %}
$('#cat-delete').click(function() {
launchDeleteForm("{% url 'category-delete' category.id %}",
launchModalForm("{% url 'category-delete' category.id %}",
{
redirect: redirect
});

View File

@ -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 %}