Part view updates

This commit is contained in:
Oliver 2018-05-07 08:41:19 +10:00
parent ce30cd7b4d
commit deccdce6d9
3 changed files with 26 additions and 13 deletions

View File

@ -6,12 +6,20 @@
<h3>Part Stock</h3>
<div class='row'>
<div class='col-sm-6'>
<h3>Part Stock</h3>
</div>
<div class='col-sm-6'>
<h3>
<button style='float: right;' class='btn btn-success' id='add-stock-item'>Add new Stock Item</button>
</h3>
</div>
</div>
<table class='table table-striped table-condensed' id='stock-table'>
</table>
<div class='container-fluid'>
<button class='btn btn-success' id='add-stock-item'>Add new Stock Item</button>
</div>
{% endblock %}

View File

@ -4,20 +4,21 @@
{% include 'part/tabs.html' with tab='suppliers' %}
<div class='row'>
<div class='col-sm-6'>
<h3>Part Suppliers</h3>
</div>
<div class='col-sm-6'>
<h3>
<button class="btn btn-success float-right" id='supplier-create'>New Supplier Part</button>
</h3>
</div>
</div>
{% if part.supplier_count > 0 %}
<p><b>{{ part.name }}</b> is available from {{ part.supplier_count }} suppliers.</p>
<hr>
<table class="table table-striped table-condensed" id='supplier-table'>
</table>
{% else %}
<p><b>{{ part.name }}</b> is not available from any suppliers.</p>
{% endif %}
<div class='container-fluid'>
<button class="btn btn-success" id='supplier-create'>New Supplier Part</button>
</div>
{% endblock %}

View File

@ -121,3 +121,7 @@
margin-left: 2px;
margin-right: 2px;
}
.float-right {
float: right;
}