mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Move attachments list to attachments tab
This commit is contained in:
parent
ad6f4e19b1
commit
9614ac2958
@ -11,6 +11,16 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<table class='table table-striped table-condensed' data-toolbar='#toolbar' id='attachment-table'>
|
<table class='table table-striped table-condensed' data-toolbar='#toolbar' id='attachment-table'>
|
||||||
|
<tr>
|
||||||
|
<th>File</th>
|
||||||
|
<th>Comment</th>
|
||||||
|
</tr>
|
||||||
|
{% for attachment in part.attachments.all %}
|
||||||
|
<tr>
|
||||||
|
<td><a href='/media/{{ attachment.attachment }}'>{{ attachment.basename }}</a></td>
|
||||||
|
<td>{{ attachment.comment }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -66,13 +66,6 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<h4>Attachments</h4>
|
|
||||||
<ul>
|
|
||||||
{% for attachment in part.attachments.all %}
|
|
||||||
<li><a href="/media/{{ attachment.attachment }}">{{ attachment.basename }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -1,6 +1,15 @@
|
|||||||
<ul class="nav nav-tabs">
|
<ul class="nav nav-tabs">
|
||||||
<li{% ifequal tab 'detail' %} class="active"{% endifequal %}>
|
<li{% ifequal tab 'detail' %} class="active"{% endifequal %}>
|
||||||
<a href="{% url 'part-detail' part.id %}">Details</a></li>
|
<a href="{% url 'part-detail' part.id %}">Details</a>
|
||||||
|
</li>
|
||||||
|
<li{% ifequal tab 'stock' %} class="active"{% endifequal %}>
|
||||||
|
<a href="{% url 'part-stock' part.id %}">Stock <span class="badge">{{ part.total_stock }}</span></a>
|
||||||
|
</li>
|
||||||
|
{% if part.allocation_count > 0 %}
|
||||||
|
<li{% ifequal tab 'allocation' %} class="active"{% endifequal %}>
|
||||||
|
<a href="{% url 'part-allocation' part.id %}">Allocated <span class="badge">{{ part.allocation_count }}</span></a>
|
||||||
|
</li>
|
||||||
|
{% endif %}
|
||||||
{% if part.buildable %}
|
{% if part.buildable %}
|
||||||
<li{% ifequal tab 'bom' %} class="active"{% endifequal %}>
|
<li{% ifequal tab 'bom' %} class="active"{% endifequal %}>
|
||||||
<a href="{% url 'part-bom' part.id %}">BOM<span class="badge">{{ part.bom_count }}</span></a></li>
|
<a href="{% url 'part-bom' part.id %}">BOM<span class="badge">{{ part.bom_count }}</span></a></li>
|
||||||
@ -11,12 +20,6 @@
|
|||||||
<li{% ifequal tab 'used' %} class="active"{% endifequal %}>
|
<li{% ifequal tab 'used' %} class="active"{% endifequal %}>
|
||||||
<a href="{% url 'part-used-in' part.id %}">Used In{% if part.used_in_count > 0 %}<span class="badge">{{ part.used_in_count }}</span>{% endif %}</a></li>
|
<a href="{% url 'part-used-in' part.id %}">Used In{% if part.used_in_count > 0 %}<span class="badge">{{ part.used_in_count }}</span>{% endif %}</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<li{% ifequal tab 'stock' %} class="active"{% endifequal %}>
|
|
||||||
<a href="{% url 'part-stock' part.id %}">Stock <span class="badge">{{ part.total_stock }}</span></a></li>
|
|
||||||
{% if part.allocation_count > 0 %}
|
|
||||||
<li{% ifequal tab 'allocation' %} class="active"{% endifequal %}>
|
|
||||||
<a href="{% url 'part-allocation' part.id %}">Allocated <span class="badge">{{ part.allocation_count }}</span></a></li>
|
|
||||||
{% endif %}
|
|
||||||
{% if part.purchaseable %}
|
{% if part.purchaseable %}
|
||||||
<li{% ifequal tab 'suppliers' %} class="active"{% endifequal %}>
|
<li{% ifequal tab 'suppliers' %} class="active"{% endifequal %}>
|
||||||
<a href="{% url 'part-suppliers' part.id %}">Suppliers
|
<a href="{% url 'part-suppliers' part.id %}">Suppliers
|
||||||
|
Loading…
Reference in New Issue
Block a user