diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index ddadd73ab7..a681ce321a 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -535,6 +535,11 @@ background-color: #1A1; } +.part-properties > span { + padding-left: 5px; + padding-right: 5px; +} + .part-thumb { width: 200px; height: 200px; diff --git a/InvenTree/part/templates/part/part_base.html b/InvenTree/part/templates/part/part_base.html index 2724d0ce9f..1fc286b503 100644 --- a/InvenTree/part/templates/part/part_base.html +++ b/InvenTree/part/templates/part/part_base.html @@ -144,7 +144,6 @@ {% endif %} - {% endblock %} {% block details_right %} diff --git a/InvenTree/stock/templates/stock/item_base.html b/InvenTree/stock/templates/stock/item_base.html index 010480a78d..b4f6696bf1 100644 --- a/InvenTree/stock/templates/stock/item_base.html +++ b/InvenTree/stock/templates/stock/item_base.html @@ -22,147 +22,141 @@ {% endblock %} -{% block details_left %} -
- -
-
+{% block thumbnail %} + +{% endblock %} - {% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %} - {% if owner_control.value == "True" %} - {% authorized_owners item.owner as owners %} - {% endif %} - -

- {% trans "Stock Item" %} - {% if item.is_expired %} - {% trans "Expired" %} - {% else %} - {% if roles.stock.change %} - - {% endif %} - {% stock_status_label item.status large=True %} - {% if roles.stock.change %} - - {% endif %} - {% if item.is_stale %} - {% trans "Stale" %} - {% endif %} - {% endif %} -

-
-

- {% if roles.part.view %} - - {% endif %} +{% block details %} + +{% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %} +{% if owner_control.value == "True" %} + {% authorized_owners item.owner as owners %} +{% endif %} + +

{{ item.part.full_name}} {% if roles.part.view %} - {% endif %} {% if item.serialized %} - # {{ item.serial }} + # {{ item.serial }} {% else %} - × {% decimal item.quantity %} + × {% decimal item.quantity %} {% endif %} {% if user.is_staff and roles.stock.change %} - + {% endif %}

- +

+ {% if item.is_expired %} + {% trans "Expired" %} + {% else %} + {% if roles.stock.change %} + + {% endif %} + {% stock_status_label item.status large=True %} + {% if roles.stock.change %} + + {% endif %} + {% if item.is_stale %} + {% trans "Stale" %} + {% endif %} + {% endif %} +

+ +
+ + {% if barcodes %} +
- - {% if barcodes %} - -
- - -
- {% endif %} - -
- - -
- - - {% 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 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 %}
+
{% setting_object 'STOCK_OWNERSHIP_CONTROL' as owner_control %} @@ -251,13 +245,13 @@ {% trans "Serial Number" %} {% if previous %} - + {{ previous.serial }} {% endif %} {{ item.serial }} {% if next %} - + {{ next.serial }} {% endif %}