mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Consolidate visual style for "Part" tabs
This commit is contained in:
parent
3e6cdb15be
commit
afcbd73026
@ -3,7 +3,7 @@
|
||||
{% block form %}
|
||||
|
||||
<h4>
|
||||
Step 1 of 2 - Select Parts
|
||||
Step 1 of 2 - Select Part Suppliers
|
||||
</h4>
|
||||
|
||||
{% if parts|length > 0 %}
|
||||
|
@ -5,25 +5,26 @@
|
||||
|
||||
{% include 'part/tabs.html' with tab='attachments' %}
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Part Attachments</h4>
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
<div class="btn-group" style="float: right;">
|
||||
<button type='button' class='btn btn-success' id='new-attachment'>Add Attachment</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<table class='table table-striped table-condensed' data-toolbar='#toolbar' id='attachment-table'>
|
||||
<div id='attachment-buttons'>
|
||||
<div class="btn-group">
|
||||
<button type='button' class='btn btn-success' id='new-attachment'>Add Attachment</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<table class='table table-striped table-condensed' data-toolbar='#attachment-buttons' id='attachment-table'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>File</th>
|
||||
<th>Comment</th>
|
||||
<th data-field='file' data-searchable='true'>File</th>
|
||||
<th data-field='comment' data-searchable='true'>Comment</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for attachment in part.attachments.all %}
|
||||
<tr>
|
||||
<td><a href='/media/{{ attachment.attachment }}'>{{ attachment.basename }}</a></td>
|
||||
@ -36,6 +37,7 @@
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
{% if part.variant_of and part.variant_of.attachments.count > 0 %}
|
||||
<tr>
|
||||
<td colspan='3'>
|
||||
@ -83,4 +85,9 @@
|
||||
});
|
||||
});
|
||||
|
||||
$("#attachment-table").bootstrapTable({
|
||||
search: true,
|
||||
sortable: true,
|
||||
});
|
||||
|
||||
{% endblock %}
|
@ -4,9 +4,12 @@
|
||||
|
||||
{% include 'part/tabs.html' with tab='detail' %}
|
||||
|
||||
<h4>Part Details</h4>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Part Details</h4>
|
||||
<table class='table table-striped'>
|
||||
<tr>
|
||||
<td><b>Part name</b></td>
|
||||
@ -75,7 +78,6 @@
|
||||
</table>
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Part Type</h4>
|
||||
<table class='table table-striped'>
|
||||
<tr>
|
||||
<td><b>Virtual</b></td>
|
||||
|
@ -5,15 +5,16 @@
|
||||
|
||||
{% include 'part/tabs.html' with tab='orders' %}
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Open Part Orders</h4>
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Part Orders</h4>
|
||||
<hr>
|
||||
|
||||
<div id='button-bar'>
|
||||
<div class='btn-group'>
|
||||
<button class='btn btn-primary' type='button' id='part-order-2' title='Order part'>Order Part</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% include "order/po_table.html" with orders=part.open_purchase_orders %}
|
||||
{% include "order/po_table.html" with orders=part.open_purchase_orders toolbar='#button-bar' %}
|
||||
|
||||
{% if part.closed_purchase_orders|length > 0 %}
|
||||
<h4>Closed Orders</h4>
|
||||
@ -21,3 +22,21 @@
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
|
||||
$("#po-table").bootstrapTable({
|
||||
search: true,
|
||||
sortable: true,
|
||||
});
|
||||
|
||||
$("#part-order-2").click(function() {
|
||||
launchModalForm("/order/purchase-order/order-parts/", {
|
||||
data: {
|
||||
part: {{ part.id }},
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
{% endblock %}
|
@ -4,13 +4,7 @@
|
||||
|
||||
{% include 'part/tabs.html' with tab='stock' %}
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Part Stock</h4>
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
|
||||
{% if part.is_template %}
|
||||
|
@ -4,14 +4,7 @@
|
||||
|
||||
{% include 'part/tabs.html' with tab='suppliers' %}
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Part Suppliers</h4>
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div id='button-toolbar'>
|
||||
|
@ -49,5 +49,3 @@
|
||||
<a href="{% url 'part-attachments' part.id %}">Attachments {% if part.attachment_count > 0 %}<span class="badge">{{ part.attachment_count }}</span>{% endif %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<br>
|
@ -4,15 +4,7 @@
|
||||
|
||||
{% include 'part/tabs.html' with tab='used' %}
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-sm-6'>
|
||||
<h4>Used to Build</h4>
|
||||
</div>
|
||||
<div class='col-sm-6'>
|
||||
<div class="btn-group" style="float: right;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h4>Assemblies</h4>
|
||||
|
||||
<hr>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user