From 0bb2507dd6a412fa7f6c481f2e1e6b6fead54c8b Mon Sep 17 00:00:00 2001 From: eeintech Date: Wed, 7 Apr 2021 14:02:50 -0400 Subject: [PATCH] Added manufacturer part deletion warning when deleting a part --- .../part/templates/part/partial_delete.html | 22 ++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/InvenTree/part/templates/part/partial_delete.html b/InvenTree/part/templates/part/partial_delete.html index 7b51bf2e89..11910eec66 100644 --- a/InvenTree/part/templates/part/partial_delete.html +++ b/InvenTree/part/templates/part/partial_delete.html @@ -1,14 +1,15 @@ {% extends "modal_form.html" %} +{% load i18n %} {% block pre_form_content %}
- Are you sure you want to delete part '{{ part.full_name }}'? + {% trans "Are you sure you want to delete part" %} '{{ part.full_name }}'?
{% if part.used_in_count %}
-

This part is used in BOMs for {{ part.used_in_count }} other parts. If you delete this part, the BOMs for the following parts will be updated: +

{% trans "This part is used in BOMs for" %} {{ part.used_in_count }} {% trans "other parts. If you delete this part, the BOMs for the following parts will be updated" %}: