mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-30 20:55:42 +00:00 
			
		
		
		
	Add part description to build allocation table
This commit is contained in:
		| @@ -6,17 +6,24 @@ | ||||
|  | ||||
| <h3>Allocate Parts for Build</h3> | ||||
|  | ||||
| <h4><a href="{% url 'build-detail' build.id %}">{{ build.title }}</a></h4> | ||||
| {{ build.quantity }} x {{ build.part.name }} | ||||
| <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 %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user