Adds a tab for "allocations"

This commit is contained in:
Oliver 2022-01-27 14:25:57 +11:00
parent d25397e95c
commit 3889baf37a
2 changed files with 16 additions and 0 deletions

View File

@ -37,6 +37,18 @@
</div> </div>
</div> </div>
<div class='panel panel-hidden' id='panel-allocations'>
<div class='panel-heading'>
<div class='d-flex flex-wrap'>
<h4>{% trans "Part Allocations" %}</h4>
{% include "spacer.html" %}
</div>
</div>
<div class='panel-content'>
<table class='table table-striped table-condensed' id='part-allocation-table'></table>
</div>
</div>
<div class='panel panel-hidden' id='panel-test-templates'> <div class='panel panel-hidden' id='panel-test-templates'>
<div class='panel-heading'> <div class='panel-heading'>
<div class='d-flex flex-wrap'> <div class='d-flex flex-wrap'>

View File

@ -27,6 +27,10 @@
{% endif %} {% endif %}
{% trans "Pricing" as text %} {% trans "Pricing" as text %}
{% include "sidebar_item.html" with label="pricing" text=text icon="fa-dollar-sign" %} {% include "sidebar_item.html" with label="pricing" text=text icon="fa-dollar-sign" %}
{% if part.salable or part.component %}
{% trans "Allocations" as text %}
{% include "sidebar_item.html" with label="allocations" text=text icon="fa-bookmark" %}
{% endif %}
{% if part.purchaseable and roles.purchase_order.view %} {% if part.purchaseable and roles.purchase_order.view %}
{% trans "Suppliers" as text %} {% trans "Suppliers" as text %}
{% include "sidebar_item.html" with label="suppliers" text=text icon="fa-building" %} {% include "sidebar_item.html" with label="suppliers" text=text icon="fa-building" %}