mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +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>
|
||||
</tr>
|
||||
{% 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>
|
||||
|
||||
{% endblock %}
|
||||
|
Loading…
Reference in New Issue
Block a user