From edc2cc49c281b2365d304ecacec2a15ef4848401 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Mon, 13 May 2019 23:03:32 +1000 Subject: [PATCH] Fix deletion form for BuildItem --- InvenTree/build/templates/build/delete_build_item.html | 6 +++++- InvenTree/static/script/inventree/build.js | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/InvenTree/build/templates/build/delete_build_item.html b/InvenTree/build/templates/build/delete_build_item.html index 23993feb95..37ed0dfa32 100644 --- a/InvenTree/build/templates/build/delete_build_item.html +++ b/InvenTree/build/templates/build/delete_build_item.html @@ -1,3 +1,7 @@ +{% extends "modal_delete_form.html" %} + +{% block pre_form_content %} Are you sure you want to unallocate these parts?
-This will remove {{ item.quantity }} parts from build '{{ item.build.title }}'. \ No newline at end of file +This will remove {{ item.quantity }} parts from build '{{ item.build.title }}'. +{% endblock %} \ No newline at end of file diff --git a/InvenTree/static/script/inventree/build.js b/InvenTree/static/script/inventree/build.js index 4ecd4214a2..c982cc254c 100644 --- a/InvenTree/static/script/inventree/build.js +++ b/InvenTree/static/script/inventree/build.js @@ -87,7 +87,7 @@ function loadAllocationTable(table, part_id, part, url, required, button) { table.on('click', '.item-del-button', function() { var button = $(this); - launchDeleteForm(button.attr('url'), { + launchModalForm(button.attr('url'), { success: function() { table.bootstrapTable('refresh'); }