diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index 82d8625256..5a58e2e04f 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -22,106 +22,96 @@ {% url 'admin:stock_stockitem_change' item.pk as url %} {% include "admin_button.html" with url=url %} {% endif %} - +{% if barcodes %} +
- + +
- +{% endif %} +
- - {% if barcodes %} - -
- + + +
+ + +{% if owner_control.value == "False" or owner_control.value == "True" and user in owners or user.is_superuser %} + {% if roles.stock.change and not item.is_building %} +
+
{% endif %} - -
- + + {% if roles.stock.change and not item.is_building %} +
+
- - - {% if owner_control.value == "False" or owner_control.value == "True" and user in owners or user.is_superuser %} - {% if roles.stock.change and not item.is_building %} -
- - -
- {% endif %} - - {% if roles.stock.change and not item.is_building %} -
- - -
- {% endif %} {% endif %} -
- +{% endif %} {% endblock %} {% block thumbnail %} @@ -491,10 +481,6 @@ $("#stock-edit").click(function () { ); }); -$('#stock-edit-2').click(function() { - editStockItem({{ item.pk }}); -}); - $('#stock-edit-status').click(function () { constructForm('{% url "api-stock-detail" item.pk %}', {