mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 12:06:44 +00:00
Hide pricing history tab if not enabled
This commit is contained in:
parent
8c52924020
commit
525b6d399d
@ -126,9 +126,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% settings_value "PART_SHOW_PRICE_HISTORY" as show_price_history %}
|
||||||
|
{% if show_price_history %}
|
||||||
<div class='panel panel-hidden' id='panel-pricing'>
|
<div class='panel panel-hidden' id='panel-pricing'>
|
||||||
{% include "part/prices.html" %}
|
{% include "part/prices.html" %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class='panel panel-hidden' id='panel-part-notes'>
|
<div class='panel panel-hidden' id='panel-part-notes'>
|
||||||
<div class='panel-heading'>
|
<div class='panel-heading'>
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
{% settings_value "PART_INTERNAL_PRICE" as show_internal_price %}
|
{% settings_value "PART_INTERNAL_PRICE" as show_internal_price %}
|
||||||
{% settings_value 'PART_SHOW_RELATED' as show_related %}
|
{% settings_value 'PART_SHOW_RELATED' as show_related %}
|
||||||
|
{% settings_value "PART_SHOW_PRICE_HISTORY" as show_price_history %}
|
||||||
|
|
||||||
{% trans "Parameters" as text %}
|
{% trans "Parameters" as text %}
|
||||||
{% include "sidebar_item.html" with label="part-parameters" text=text icon="fa-th-list" %}
|
{% include "sidebar_item.html" with label="part-parameters" text=text icon="fa-th-list" %}
|
||||||
@ -25,8 +26,10 @@
|
|||||||
{% trans "Used In" as text %}
|
{% trans "Used In" as text %}
|
||||||
{% include "sidebar_item.html" with label="used-in" text=text icon="fa-layer-group" %}
|
{% include "sidebar_item.html" with label="used-in" text=text icon="fa-layer-group" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if show_price_history %}
|
||||||
{% 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" %}
|
||||||
|
{% endif %}
|
||||||
{% if part.salable or part.component %}
|
{% if part.salable or part.component %}
|
||||||
{% trans "Allocations" as text %}
|
{% trans "Allocations" as text %}
|
||||||
{% include "sidebar_item.html" with label="allocations" text=text icon="fa-bookmark" %}
|
{% include "sidebar_item.html" with label="allocations" text=text icon="fa-bookmark" %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user