2
0
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:
Oliver Walters 2019-05-13 22:55:40 +10:00
parent ffa5a25fa9
commit 00b37b62db
2 changed files with 7 additions and 2 deletions

View File

@ -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
}); });

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 }}'? 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 %}