mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add part description to build allocation table
This commit is contained in:
parent
7dd7b68ed6
commit
7101d9cb7e
@ -6,17 +6,24 @@
|
||||
|
||||
<h3>Allocate Parts for Build</h3>
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-sm-6'>
|
||||
|
||||
<h4><a href="{% url 'build-detail' build.id %}">{{ build.title }}</a></h4>
|
||||
{{ build.quantity }} x {{ build.part.name }}
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
<div class='btn-group' style='float: right;'>
|
||||
<button class='btn btn-warning' type='button' id='complete-build'>Complete Build</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
{% for bom_item in bom_items.all %}
|
||||
{% include "build/allocation_item.html" with item=bom_item build=build collapse_id=bom_item.id %}
|
||||
{% endfor %}
|
||||
|
||||
<div>
|
||||
<button class='btn btn-warning' type='button' id='complete-build'>Complete Build</button>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
@ -3,7 +3,8 @@
|
||||
{% load inventree_extras %}
|
||||
|
||||
{% block collapse_title %}
|
||||
{{ item.sub_part.name }}
|
||||
{{ item.sub_part.name }}<br>
|
||||
<small><i>{{ item.sub_part.description }}</i></small>
|
||||
{% endblock %}
|
||||
|
||||
{% block collapse_heading %}
|
||||
|
Loading…
Reference in New Issue
Block a user