mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Add "installed items" section to default TestReport
This commit is contained in:
parent
4fdb18318a
commit
87d4a51575
@ -56,6 +56,10 @@ content: "{% trans 'Stock Item Test Report' %}";
|
|||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block pre_page_content %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
{% block page_content %}
|
{% block page_content %}
|
||||||
|
|
||||||
<div class='container'>
|
<div class='container'>
|
||||||
@ -80,6 +84,7 @@ content: "{% trans 'Stock Item Test Report' %}";
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if resul_list|length > 0 %}
|
||||||
<h3>{% trans "Test Results" %}</h3>
|
<h3>{% trans "Test Results" %}</h3>
|
||||||
|
|
||||||
<table class='table test-table'>
|
<table class='table test-table'>
|
||||||
@ -112,5 +117,37 @@ content: "{% trans 'Stock Item Test Report' %}";
|
|||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% if installed_items|length > 0 %}
|
||||||
|
<h3>{% trans "Installed Items" %}</h3>
|
||||||
|
|
||||||
|
<table class='table test-table'>
|
||||||
|
<thead>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for sub_item in installed_items %}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<img src='{% part_image sub_item.part %}' class='part-img' style='max-width: 24px; max-height: 24px;'>
|
||||||
|
{{ sub_item.part.full_name }}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{% if sub_item.serialized %}
|
||||||
|
{% trans "Serial" %}: {{ sub_item.serial }}
|
||||||
|
{% else %}
|
||||||
|
{% trans "Quantity" %}: {% decimal sub_item.quantity %}
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block post_page_content %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue
Block a user