mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-01 13:06:45 +00:00
Show attachments for the Template part under attachments tab
This commit is contained in:
parent
08ac7e2a36
commit
9c1c008f33
@ -36,6 +36,20 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% if part.variant_of and part.variant_of.attachments.count > 0 %}
|
||||||
|
<tr>
|
||||||
|
<td colspan='3'>
|
||||||
|
Attachments for template part <b><i>{{ part.variant_of.full_name }}</i></b>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
{% for attachment in part.variant_of.attachments.all %}
|
||||||
|
<tr>
|
||||||
|
<td><a href='/media/{{ attachment.attachment }}'>{{ attachment.basename }}</a></td>
|
||||||
|
<td>{{ attachment.comment }}</td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user