diff --git a/InvenTree/stock/templates/stock/location.html b/InvenTree/stock/templates/stock/location.html index 0faeb66216..c0212f2c5f 100644 --- a/InvenTree/stock/templates/stock/location.html +++ b/InvenTree/stock/templates/stock/location.html @@ -97,7 +97,7 @@ }); $('#location-delete').click(function() { - launchDeleteForm("{% url 'stock-location-delete' location.id %}", + launchModalForm("{% url 'stock-location-delete' location.id %}", { redirect: "{% url 'stock-index' %}" }); diff --git a/InvenTree/stock/templates/stock/location_delete.html b/InvenTree/stock/templates/stock/location_delete.html index ecb60ae1f1..ef5cee7541 100644 --- a/InvenTree/stock/templates/stock/location_delete.html +++ b/InvenTree/stock/templates/stock/location_delete.html @@ -1,3 +1,6 @@ +{% extends "modal_delete_form.html" %} + +{% block pre_form_content %} Are you sure you want to delete stock location '{{ location.name }}'?
@@ -34,3 +37,4 @@ If this location is deleted, these items will be moved to the top level 'Stock' {% endfor %} {% endif %} +{% endblock %} \ No newline at end of file