mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Update form for deleting a BOM item
This commit is contained in:
parent
d679ee9971
commit
06e95819c9
@ -1,3 +1,7 @@
|
||||
{% extends "modal_delete_form.html" %}
|
||||
|
||||
{% block pre_form_content %}
|
||||
|
||||
Are you sure you want to delete this BOM item?
|
||||
<br>
|
||||
Deleting this entry will remove the BOM row from the following part:
|
||||
@ -7,3 +11,5 @@ Deleting this entry will remove the BOM row from the following part:
|
||||
<b>{{ item.part.full_name }}</b> - <i>{{ item.part.description }}</i>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
@ -193,7 +193,7 @@
|
||||
|
||||
|
||||
$('#delete-part').click(function() {
|
||||
launchDeleteForm(
|
||||
launchModalForm(
|
||||
"{% url 'part-delete' part.id %}",
|
||||
{
|
||||
redirect: {% if part.category %}"{% url 'category-detail' part.category.id %}"{% else %}"{% url 'part-index' %}"{% endif %}
|
||||
|
@ -184,7 +184,7 @@ function loadBomTable(table, options) {
|
||||
table.on('click', '.bom-delete-button', function() {
|
||||
var button = $(this);
|
||||
|
||||
launchDeleteForm(button.attr('url'), {
|
||||
launchModalForm(button.attr('url'), {
|
||||
success: function() {
|
||||
reloadBomTable(table);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user