Add part image

This commit is contained in:
Oliver Walters 2019-05-17 00:31:35 +10:00
parent 489d5de9c4
commit 3a3662ae14

View File

@ -10,9 +10,23 @@ InvenTree | Build - {{ build }}
<div class='row'>
<div class='col-sm-6'>
<h3>Build Details</h3>
<p><b>{{ build.title }}</b>{% include "build_status.html" with build=build %}</p>
<p>Building {{ build.quantity }} &times {{ build.part.full_name }}</p>
<div class="media">
<div class="media-left">
<div class='dropzone' id='part-thumb'>
<img class="part-thumb"
{% if build.part.image %}
src="{{ build.part.image.url }}"
{% else %}
src="{% static 'img/blank_image.png' %}"
{% endif %}/>
</div>
</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>
</div>
</div>
</div>
<div class='col-sm-6'>
<h3>