From 7101d9cb7e33eb491e59d9e6c5a995bd0a055984 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 7 May 2019 23:09:36 +1000 Subject: [PATCH] Add part description to build allocation table --- InvenTree/build/templates/build/allocate.html | 17 ++++++++++++----- .../build/templates/build/allocation_item.html | 3 ++- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/InvenTree/build/templates/build/allocate.html b/InvenTree/build/templates/build/allocate.html index 0a3867af8e..d6657ea196 100644 --- a/InvenTree/build/templates/build/allocate.html +++ b/InvenTree/build/templates/build/allocate.html @@ -6,17 +6,24 @@

Allocate Parts for Build

-

{{ build.title }}

-{{ build.quantity }} x {{ build.part.name }} +
+
+ +

{{ build.title }}

+ {{ build.quantity }} x {{ build.part.name }} +
+
+
+ +
+
+

{% for bom_item in bom_items.all %} {% include "build/allocation_item.html" with item=bom_item build=build collapse_id=bom_item.id %} {% endfor %} -
- -
{% endblock %} diff --git a/InvenTree/build/templates/build/allocation_item.html b/InvenTree/build/templates/build/allocation_item.html index f9e92a63a8..2b8767a32c 100644 --- a/InvenTree/build/templates/build/allocation_item.html +++ b/InvenTree/build/templates/build/allocation_item.html @@ -3,7 +3,8 @@ {% load inventree_extras %} {% block collapse_title %} -{{ item.sub_part.name }} +{{ item.sub_part.name }}
+{{ item.sub_part.description }} {% endblock %} {% block collapse_heading %}