From 2da3a022bfa6c62b4e3e80e520c3849ba8d81bd1 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 17 May 2019 00:20:48 +1000 Subject: [PATCH] Add allocation tab --- InvenTree/build/templates/build/allocate.html | 11 +++++------ InvenTree/build/templates/build/allocation_item.html | 2 +- InvenTree/build/templates/build/tabs.html | 3 +++ 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/InvenTree/build/templates/build/allocate.html b/InvenTree/build/templates/build/allocate.html index 5b66ef6b57..ce84d86658 100644 --- a/InvenTree/build/templates/build/allocate.html +++ b/InvenTree/build/templates/build/allocate.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "build/build_base.html" %} {% load static %} {% load inventree_extras %} @@ -6,15 +6,14 @@ InvenTree | Allocate Parts {% endblock %} -{% block content %} +{% block details %} -

Allocate Parts for Build

+{% include "build/tabs.html" with tab='allocate' %} + +

Allocate Parts for Build

- -

{{ build.title }}

- {{ build.quantity }} x {{ build.part.lonname }}
diff --git a/InvenTree/build/templates/build/allocation_item.html b/InvenTree/build/templates/build/allocation_item.html index 94e9e043a2..96520008bb 100644 --- a/InvenTree/build/templates/build/allocation_item.html +++ b/InvenTree/build/templates/build/allocation_item.html @@ -9,7 +9,7 @@
- {{ item.sub_part.full_name }}
+ {{ item.sub_part.full_name }} {{ item.sub_part.description }}
{% endblock %} diff --git a/InvenTree/build/templates/build/tabs.html b/InvenTree/build/templates/build/tabs.html index b30ba7762f..c52309b132 100644 --- a/InvenTree/build/templates/build/tabs.html +++ b/InvenTree/build/templates/build/tabs.html @@ -5,6 +5,9 @@ Required + + Allocate +
\ No newline at end of file