From d679ee997115b7daf87fddfc459fd24675cc0312 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 13 May 2019 22:58:42 +1000 Subject: [PATCH] Update form for deleting stock location --- InvenTree/stock/templates/stock/location.html | 2 +- InvenTree/stock/templates/stock/location_delete.html | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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