diff --git a/InvenTree/part/templates/part/detail.html b/InvenTree/part/templates/part/detail.html index 8a78eb85a5..ecfddf66c5 100644 --- a/InvenTree/part/templates/part/detail.html +++ b/InvenTree/part/templates/part/detail.html @@ -18,131 +18,6 @@
- | {% trans "Part name" %} | -{{ part.name }}{% include "clip.html"%} | -
- | {% trans "IPN" %} | -{{ part.IPN }}{% include "clip.html"%} | -
- | {% trans "Revision" %} | -{{ part.revision }}{% include "clip.html"%} | -
- | {% trans "Latest Serial Number" %} | -- {% if part.getLatestSerialNumber %} - {{ part.getLatestSerialNumber }}{% include "clip.html"%} - {% else %} - {% trans "No serial numbers recorded" %} - {% endif %} - | -
- | {% trans "Description" %} | -{{ part.description }}{% include "clip.html"%} | -
- | {% trans "Variant Of" %} | -{{ part.variant_of.full_name }}{% include "clip.html"%} | -
- | {% trans "Keywords" %} | -{{ part.keywords }}{% include "clip.html"%} | -
- | {% trans "Category" %} | -- {% if part.category %} - {{ part.category.pathstring }}{% include "clip.html"%} - {% endif %} - | -
- | {% trans "External Link" %} | -{{ part.link }}{% include "clip.html"%} | -
- | {% trans "Default Location" %} | -{{ part.default_location.pathstring }}{% include "clip.html"%} | -
- | {% trans "Default Supplier" %} | -- {{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }} - {% include "clip.html"%} | -
- | {% trans "Units" %} | -{{ part.units }}{% include "clip.html"%} | -
- | {% trans "Minimum Stock" %} | -{{ part.minimum_stock }} | -
- | {% trans "Stock Expiry Time" %} | -{{ part.default_expiry }} {% trans "days" %} | -
- | {% trans "Creation Date" %} | -{{ part.creation_date }} | -
- | {% trans "Created By" %} | -{{ part.creation_user }} | -
- | {% trans "Responsible User" %} | -{{ part.responsible }} | -
@@ -171,96 +46,7 @@ |
- | {% trans "Virtual" %} | -{% include "slide.html" with state=part.virtual field='virtual' %} | - {% if part.virtual %} -{% trans "Part is virtual (not a physical part)" %} | - {% else %} -{% trans "Part is not a virtual part" %} | - {% endif %} -
- | {% trans "Template" %} | -{% include "slide.html" with state=part.is_template field='is_template' %} | - {% if part.is_template %} -{% trans "Part is a template part (variants can be made from this part)" %} | - {% else %} -{% trans "Part is not a template part" %} | - {% endif %} -
- | {% trans "Assembly" %} | -{% include "slide.html" with state=part.assembly field='assembly' %} | - {% if part.assembly %} -{% trans "Part can be assembled from other parts" %} | - {% else %} -{% trans "Part cannot be assembled from other parts" %} | - {% endif %} -
- | {% trans "Component" %} | -{% include "slide.html" with state=part.component field='component' %} | - {% if part.component %} -{% trans "Part can be used in assemblies" %} | - {% else %} -{% trans "Part cannot be used in assemblies" %} | - {% endif %} -
- | {% trans "Trackable" %} | -{% include "slide.html" with state=part.trackable field='trackable' %} | - {% if part.trackable %} -{% trans "Part stock is tracked by serial number" %} | - {% else %} -{% trans "Part stock is not tracked by serial number" %} | - {% endif %} -
- | {% trans "Purchaseable" %} | -{% include "slide.html" with state=part.purchaseable field='purchaseable' %} | - {% if part.purchaseable %} -{% trans "Part can be purchased from external suppliers" %} | - {% else %} -{% trans "Part can be purchased from external suppliers" %} | - {% endif %} -
- | {% trans "Salable" %} | -{% include "slide.html" with state=part.salable field='salable' %} | - {% if part.salable %} -{% trans "Part can be sold to customers" %} | - {% else %} -{% trans "Part cannot be sold to customers" %} | - {% endif %} -
- {% if part.active %} - - {% else %} - - {% endif %} - | -{% trans "Active" %} | -{% include "slide.html" with state=part.active field='active' disabled=False %} | - {% if part.active %} -{% trans "Part is active" %} | - {% else %} -{% trans "Part is not active" %} | - {% endif %} -
{{ part.description }}
+ {% endif %} ++
- | {% trans "IPN" %} | -{{ part.IPN }} | ++ | {% trans "Keywords" %} | +{{ part.keywords }} |
+ | {% trans "Creation Date" %} | ++ {{ part.creation_date }} + {% if part.creation_user %} + {{ part.creation_user }} + {% endif %} + | |||
+ | {% trans "Latest Serial Number" %} | +{{ part.getLatestSerialNumber }}{% include "clip.html"%} | +