mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Improve rendering of 'Complete Build' form
This commit is contained in:
parent
7835562396
commit
345913bc90
@ -7,18 +7,42 @@ Are you sure you want to mark this build as complete?
|
|||||||
<hr>
|
<hr>
|
||||||
{% if taking %}
|
{% if taking %}
|
||||||
The following items will be removed from stock:
|
The following items will be removed from stock:
|
||||||
<ul class='list-group'>
|
|
||||||
|
<table class='table table-striped table-condensed'>
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th>Part</th>
|
||||||
|
<th>Quantity</th>
|
||||||
|
<th>Location</th>
|
||||||
|
</tr>
|
||||||
{% for item in taking %}
|
{% for item in taking %}
|
||||||
<li>{{ item.quantity }} x {{ item.stock_item.part.name }} from {{ item.stock_item.location }}</li>
|
<tr>
|
||||||
|
<td>
|
||||||
|
<a class='hover-icon'>
|
||||||
|
<img class='hover-img-thumb' src='{{ item.stock_item.part.image.url }}'>
|
||||||
|
<img class='hover-img-large' src='{{ item.stock_item.part.image.url }}'>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ item.stock_item.part.name }}<br>
|
||||||
|
<i>{{ item.stock_item.part.description }}</i>
|
||||||
|
</td>
|
||||||
|
<td>{{ item.quantity }}</td>
|
||||||
|
<td>{{ item.stock_item.location }}</td>
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</table>
|
||||||
{% else %}
|
{% else %}
|
||||||
No parts have been allocated to this build.
|
No parts have been allocated to this build.
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<hr>
|
<hr>
|
||||||
The following items will be created:
|
The following items will be created:
|
||||||
<ul>
|
<div class='panel panel-default'>
|
||||||
<li>{{ build.quantity }} x {{ build.part.name }}</li>
|
<a class='hover-icon'>
|
||||||
</ul>
|
<img class='hover-img-thumb' src='{{ build.part.image.url }}'>
|
||||||
|
<img class='hover-img-large' src='{{ build.part.image.url }}'>
|
||||||
|
</a>
|
||||||
|
{{ build.quantity }} x {{ build.part.name }}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user