From 3ec2396ec194e8f9ff1ef3796a2f26f7779a9843 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 27 Oct 2020 23:33:51 +1100 Subject: [PATCH] Updated allocation card view --- InvenTree/build/templates/build/allocate.html | 6 ++---- .../build/templates/build/allocation_card.html | 14 +++----------- InvenTree/build/templates/build/tabs.html | 2 +- InvenTree/build/views.py | 4 ++-- 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/InvenTree/build/templates/build/allocate.html b/InvenTree/build/templates/build/allocate.html index 09646cd270..49a932c8aa 100644 --- a/InvenTree/build/templates/build/allocate.html +++ b/InvenTree/build/templates/build/allocate.html @@ -12,8 +12,7 @@ InvenTree | Allocate Parts {% include "build/tabs.html" with tab='allocate' %} -{% if build.incomplete_outputs %} -

{% trans "Tracked Build Ouputs" %}

+

{% trans "Incomplete Build Ouputs" %}

{% for item in build.incomplete_outputs %} {% include "build/allocation_card.html" with item=item %} @@ -21,8 +20,7 @@ InvenTree | Allocate Parts

-

{% trans "Untracked Parts" %}

-{% endif %} +

{% trans "Assigned Stock" %}

{% if build.status == BuildStatus.PENDING %} diff --git a/InvenTree/build/templates/build/allocation_card.html b/InvenTree/build/templates/build/allocation_card.html index fa8a72139a..b77f375231 100644 --- a/InvenTree/build/templates/build/allocation_card.html +++ b/InvenTree/build/templates/build/allocation_card.html @@ -1,23 +1,15 @@ {% load i18n %} {% load inventree_extras %} -{% if item %} {% define item.pk as pk %} -{% else %} -{% define 'untracked' as pk %} -{% endif %}