More UI stuff for the Build page

This commit is contained in:
Oliver Walters 2019-05-17 16:35:23 +10:00
parent a2eeb7e946
commit 0ce5240361
2 changed files with 21 additions and 7 deletions

View File

@ -23,8 +23,20 @@ InvenTree | Build - {{ build }}
</div>
<div class='media-body'>
<h4>Build Details</h4>
<p><b>{{ build.title }}</b>{% include "build_status.html" with build=build %}</p>
<p>Building {{ build.quantity }} &times {{ build.part.full_name }}</p>
<table class='table table-striped table-condensed'>
<tr>
<td>{{ build.title }}</td>
<td>{% include "build_status.html" with build=build %}</td>
</tr>
<tr>
<td>Part</td>
<td>{{ build.part.full_name }}</td>
</tr>
<tr>
<td>Quantity</td>
<td>{{ build.quantity }}</td>
</tr>
</table>
</div>
</div>
</div>

View File

@ -60,11 +60,13 @@
<td>Completed</td><td>{{ build.completion_date }}{% if build.completed_by %}<span class='badge'>{{ build.completed_by }}</span>{% endif %}</td>
</tr>
{% endif %}
{% if build.notes %}
<tr>
<td>Notes</td><td>{{ build.notes }}</td>
</tr>
{% endif %}
</table>
{% if build.notes %}
<div class="panel panel-default">
<div class="panel-heading"><b>Notes</b></div>
<div class="panel-body">{{ build.notes }}</div>
</div>
{% endif %}
{% endblock %}