From 76e6094977a21f969bd6f3f39cd50fca2a7c8d24 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 14 May 2019 23:30:32 +1000 Subject: [PATCH] Add secondary modal to BOM --- InvenTree/part/templates/part/bom.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/InvenTree/part/templates/part/bom.html b/InvenTree/part/templates/part/bom.html index 295fed23d6..e75efdfe77 100644 --- a/InvenTree/part/templates/part/bom.html +++ b/InvenTree/part/templates/part/bom.html @@ -83,7 +83,15 @@ { success: function() { $("#bom-table").bootstrapTable('refresh'); - } + }, + secondary: [ + { + field: 'sub_part', + label: 'New Part', + title: 'Create New Part', + url: "{% url 'part-create' %}", + }, + ] } ); });