2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-14 15:41:10 +00:00

Introspection of build allocation

Yay for dicts
This commit is contained in:
Oliver
2018-04-30 22:45:11 +10:00
parent b24ddac0b8
commit a2ff1d16f3
2 changed files with 16 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
{% extends "part/part_base.html" %}
{% load maths %}
{% block details %}
{% include "part/tabs.html" with tab="allocation" %}
@@ -12,15 +12,15 @@
<tr>
<th>Build</th>
<th>Making</th>
<th>Allocted</th>
<th>Allocated</th>
<th>Status</th>
</tr>
{% for build in part.allocated_builds %}
{% for allocation in part.build_allocation %}
<tr>
<td><a href="{% url 'build-detail' build.id %}">{{ build.title }}</a></td>
<td><a href="{% url 'part-detail' build.part.id %}">{{ build.part.name }}</a></td>
<td>Quantity</td>
<td>{% include "build_status.html" with build=build %}</td>
<td><a href="{% url 'build-detail' allocation.build.id %}">{{ allocation.build.title }}</a></td>
<td>{{ allocation.build.quantity }} &times <a href="{% url 'part-detail' allocation.build.part.id %}">{{ allocation.build.part.name }}</a></td>
<td>{{ allocation.quantity }}</td>
<td>{% include "build_status.html" with build=allocation.build %}</td>
</tr>
{% endfor %}
</table>