2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 19:15:41 +00:00

Remove launchDeleteForm JS function

- All should be consolidated upon launchModalForm
- StockItem delete now uses this
This commit is contained in:
Oliver Walters
2019-05-13 22:47:36 +10:00
parent e35a9284eb
commit a78106526a
3 changed files with 9 additions and 65 deletions

View File

@ -194,7 +194,7 @@
{% endif %}
$("#stock-delete").click(function () {
launchDeleteForm(
launchModalForm(
"{% url 'stock-item-delete' item.id %}",
{
redirect: "{% url 'part-stock' item.part.id %}"

View File

@ -1,5 +1,11 @@
{% extends "modal_delete_form.html" %}
{% block pre_form_content %}
<div class='alert alert-danger alert-block'>
Are you sure you want to delete this stock item?
<br>
This will remove <b>{{ item.quantity }}</b> units of <b>{{ item.part.full_name }}</b> from stock.
</div>
{% endblock %}