mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Cleaup for delete supplier part form
This commit is contained in:
parent
0e0096467c
commit
fcdddf6bb6
@ -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 %}
|
@ -109,7 +109,7 @@ InvenTree | {{ company.name }} - Parts
|
||||
});
|
||||
|
||||
$('#delete-part').click(function() {
|
||||
launchDeleteForm(
|
||||
launchModalForm(
|
||||
"{% url 'supplier-part-delete' part.id %}",
|
||||
{
|
||||
redirect: "{% url 'company-index' %}"
|
||||
|
@ -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'
|
Loading…
Reference in New Issue
Block a user