diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index a6bd2753b0..ddadd73ab7 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -229,16 +229,26 @@ /* Extra label styles */ +.label { + display: inline; + font-size: 75%; + line-height: 1; + padding-left: 4px; + padding-right: 4px; + text-align: center; + white-space: nowrap; + vertical-align: baseline; + border-radius: 5px; +} + .label-large { margin: 3px; - font-size: 100%; + font-size: 90%; border: 3px solid; border-radius: 15px; background: none; - padding-right: 10px; - padding-left: 10px; - padding-top: 5px; - padding-bottom: 5px; + padding: 3px; + border-radius: 10px; } .label-large-red { @@ -254,18 +264,7 @@ border-radius: 5px; } -.label { - display: inline; - font-size: 75%; - line-height: 1; - padding-left: 4px; - padding-right: 4px; - color: white; - text-align: center; - white-space: nowrap; - vertical-align: baseline; - border-radius: .25em; -} + .label-red { background: var(--label-red); diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 65d47678e0..1b1da5f14d 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -11,6 +11,88 @@ {% block page_content %} +
+ | {% trans "IPN" %} | +{{ part.IPN }}{% include "clip.html"%} | +
+ | {% trans "Name" %} | +{{ part.name }}{% include "clip.html"%} | +
+ | {% trans "Description" %} | +{{ part.description }}{% include "clip.html"%} | +
+ | {% trans "Revision" %} | +{{ part.revision }}{% include "clip.html"%} | +
+ | {% trans "Keywords" %} | +{{ part.keywords }}{% include "clip.html"%} | +
+ | {% trans "External Link" %} | +{{ part.link }}{% include "clip.html"%} | +
+ | {% trans "Creation Date" %} | ++ {{ part.creation_date }} + {% if part.creation_user %} + {{ part.creation_user }} + {% endif %} + | +
+ | {% trans "Latest Serial Number" %} | +{{ part.getLatestSerialNumber }}{% include "clip.html"%} | +
+ | {% trans "Default Location" %} | +{{ part.default_location }} | +
+ | {% trans "Default Supplier" %} | +{{ part.default_supplier }} | +
-
- - -
-{% trans "Available Stock" %} |
- {% decimal available %}{% if part.units %} {{ part.units }}{% endif %} |
- |
- | {% trans "In Stock" %} | -{% include "part/stock_count.html" %} | -
- | {% trans "On Order" %} | -{% decimal on_order %} | -
- | {% trans "Required for Build Orders" %} | -{% decimal required_build_order_quantity %} - |
- | {% trans "Required for Sales Orders" %} | -{% decimal required_sales_order_quantity %} - |
- | {% trans "Allocated to Orders" %} | -{% decimal allocated %} | -
- {% trans "Build Status" %}- |
- ||
- | {% trans "Can Build" %} | -{% decimal part.can_build %} | -
- | {% trans "Building" %} | -{% decimal quantity_being_built %} | -
- | {% trans "IPN" %} | -{{ part.IPN }}{% include "clip.html"%} | -
- | {% trans "Name" %} | -{{ part.name }}{% include "clip.html"%} | -
- | {% trans "Description" %} | -{{ part.description }}{% include "clip.html"%} | -
- | {% trans "Revision" %} | -{{ part.revision }}{% include "clip.html"%} | -
- | {% trans "Keywords" %} | -{{ part.keywords }}{% include "clip.html"%} | -
- | {% trans "External Link" %} | -{{ part.link }}{% include "clip.html"%} | -
- | {% trans "Creation Date" %} | -- {{ part.creation_date }} - {% if part.creation_user %} - {{ part.creation_user }} - {% endif %} - | -
- | {% trans "Latest Serial Number" %} | -{{ part.getLatestSerialNumber }}{% include "clip.html"%} | -
- | {% trans "Default Location" %} | -{{ part.default_location }} | -
- | {% trans "Default Supplier" %} | -{{ part.default_supplier }} | -
{% trans "Available Stock" %} |
+ {% decimal available %}{% if part.units %} {{ part.units }}{% endif %} |
+ |
+ | {% trans "In Stock" %} | +{% include "part/stock_count.html" %} | +
+ | {% trans "On Order" %} | +{% decimal on_order %} | +
+ | {% trans "Required for Build Orders" %} | +{% decimal required_build_order_quantity %} + |
+ | {% trans "Required for Sales Orders" %} | +{% decimal required_sales_order_quantity %} + |
+ | {% trans "Allocated to Orders" %} | +{% decimal allocated %} | +
+ {% trans "Build Status" %}+ |
+ ||
+ | {% trans "Can Build" %} | +{% decimal part.can_build %} | +
+ | {% trans "Building" %} | +{% decimal quantity_being_built %} | +