Cleaup for delete supplier part form

This commit is contained in:
Oliver Walters 2019-05-13 22:52:20 +10:00
parent 0e0096467c
commit fcdddf6bb6
3 changed files with 7 additions and 2 deletions

View File

@ -1 +1,5 @@
Are you sure you want to delete this supplier part?
{% extends "modal_delete_form.html" %}
{% block pre_form_content %}
Are you sure you want to delete this supplier part?
{% endblock %}

View File

@ -109,7 +109,7 @@ InvenTree | {{ company.name }} - Parts
});
$('#delete-part').click(function() {
launchDeleteForm(
launchModalForm(
"{% url 'supplier-part-delete' part.id %}",
{
redirect: "{% url 'company-index' %}"

View File

@ -804,3 +804,4 @@ class SupplierPartDelete(AjaxDeleteView):
success_url = '/supplier/'
ajax_template_name = 'company/partdelete.html'
ajax_form_title = 'Delete Supplier Part'
context_object_name = 'supplier_part'