mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
More icons
This commit is contained in:
parent
bb844ab94b
commit
c170d3f87a
@ -34,42 +34,50 @@
|
|||||||
<h3>{% trans "Category Details" %}</h3>
|
<h3>{% trans "Category Details" %}</h3>
|
||||||
<table class='table table-condensed table-striped'>
|
<table class='table table-condensed table-striped'>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-sitemap'></span></td>
|
||||||
<td>{% trans "Category Path" %}</td>
|
<td>{% trans "Category Path" %}</td>
|
||||||
<td>{{ category.pathstring }}</td>
|
<td>{{ category.pathstring }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-info-circle'></span></td>
|
||||||
<td>{% trans "Category Description" %}</td>
|
<td>{% trans "Category Description" %}</td>
|
||||||
<td>{{ category.description }}</td>
|
<td>{{ category.description }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if category.default_location %}
|
{% if category.default_location %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-map-marker-alt'></span></td>
|
||||||
<td>{% trans "Default Location" %}</td>
|
<td>{% trans "Default Location" %}</td>
|
||||||
<td><a href="{% url 'stock-location-detail' category.default_location.pk %}">{{ category.default_location.pathstring }}</a></td>
|
<td><a href="{% url 'stock-location-detail' category.default_location.pk %}">{{ category.default_location.pathstring }}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if category.default_keywords %}
|
{% if category.default_keywords %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-key'></span></td>
|
||||||
<td>{% trans "Keywords" %}</td>
|
<td>{% trans "Keywords" %}</td>
|
||||||
<td>{{ category.default_keywords }}</td>
|
<td>{{ category.default_keywords }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-sitemap'></span></td>
|
||||||
<td>{% trans "Subcategories" %}</td>
|
<td>{% trans "Subcategories" %}</td>
|
||||||
<td>{{ category.children.count }}</td>
|
<td>{{ category.children.count }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-shapes'></span></td>
|
||||||
<td>{% trans "Parts (Including subcategories)" %}</td>
|
<td>{% trans "Parts (Including subcategories)" %}</td>
|
||||||
<td>{{ category.partcount }}</td>
|
<td>{{ category.partcount }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{% else %}
|
{% else %}
|
||||||
<h3>{% trans "Part Details" %}</h3>
|
<h3>{% trans "Category Details" %}</h3>
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed'>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-sitemap'></span></td>
|
||||||
<td>{% trans "Part Categories" %}</td>
|
<td>{% trans "Part Categories" %}</td>
|
||||||
<td>{{ category_count }}</td>
|
<td>{{ category_count }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-shapes'></span></td>
|
||||||
<td>{% trans "Parts" %}</td>
|
<td>{% trans "Parts" %}</td>
|
||||||
<td>{{ part_count }}</td>
|
<td>{{ part_count }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -14,44 +14,52 @@
|
|||||||
<div class='col-sm-6'>
|
<div class='col-sm-6'>
|
||||||
<table class='table table-striped'>
|
<table class='table table-striped'>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Part name" %}</b></td>
|
<td><b>{% trans "Part name" %}</b></td>
|
||||||
<td>{{ part.name }}</td>
|
<td>{{ part.name }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if part.IPN %}
|
{% if part.IPN %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "IPN" %}</b></td>
|
<td><b>{% trans "IPN" %}</b></td>
|
||||||
<td>{{ part.IPN }}</td>
|
<td>{{ part.IPN }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.revision %}
|
{% if part.revision %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Revision" %}</b></td>
|
<td><b>{% trans "Revision" %}</b></td>
|
||||||
<td>{{ part.revision }}</td>
|
<td>{{ part.revision }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Description" %}</b></td>
|
<td><b>{% trans "Description" %}</b></td>
|
||||||
<td>{{ part.description }}</td>
|
<td>{{ part.description }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if part.variant_of %}
|
{% if part.variant_of %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Variant Of" %}</b></td>
|
<td><b>{% trans "Variant Of" %}</b></td>
|
||||||
<td><a href="{% url 'part-detail' part.variant_of.id %}">{{ part.variant_of.full_name }}</a></td>
|
<td><a href="{% url 'part-detail' part.variant_of.id %}">{{ part.variant_of.full_name }}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.keywords %}
|
{% if part.keywords %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Keywords" %}</b></td>
|
<td><b>{% trans "Keywords" %}</b></td>
|
||||||
<td>{{ part.keywords }}</td>
|
<td>{{ part.keywords }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.URL %}
|
{% if part.URL %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans "URL" %}</b></td>
|
<td><span class='fas fa-link'></span></td>
|
||||||
|
<td><b>{% trans "Link" %}</b></td>
|
||||||
<td><a href="{{ part.URL }}">{{ part.URL }}</a></td>
|
<td><a href="{{ part.URL }}">{{ part.URL }}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Category" %}</b></td>
|
<td><b>{% trans "Category" %}</b></td>
|
||||||
<td>
|
<td>
|
||||||
{% if part.category %}
|
{% if part.category %}
|
||||||
@ -61,12 +69,14 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% if part.default_location %}
|
{% if part.default_location %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-map-marker-alt'></span></td>
|
||||||
<td><b>{% trans "Default Location" %}</b></td>
|
<td><b>{% trans "Default Location" %}</b></td>
|
||||||
<td><a href="{% url 'stock-location-detail' part.default_location.id %}">{{ part.default_location.pathstring }}</a></td>
|
<td><a href="{% url 'stock-location-detail' part.default_location.id %}">{{ part.default_location.pathstring }}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.default_supplier %}
|
{% if part.default_supplier %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Default Supplier" %}</b></td>
|
<td><b>{% trans "Default Supplier" %}</b></td>
|
||||||
<td><a href="{% url 'supplier-part-detail' part.default_supplier.id %}">
|
<td><a href="{% url 'supplier-part-detail' part.default_supplier.id %}">
|
||||||
{{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }}
|
{{ part.default_supplier.supplier.name }} | {{ part.default_supplier.SKU }}
|
||||||
@ -74,27 +84,32 @@
|
|||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Units" %}</b></td>
|
<td><b>{% trans "Units" %}</b></td>
|
||||||
<td>{{ part.units }}</td>
|
<td>{{ part.units }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if part.minimum_stock > 0 %}
|
{% if part.minimum_stock > 0 %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td><b>{% trans "Minimum Stock" %}</b></td>
|
<td><b>{% trans "Minimum Stock" %}</b></td>
|
||||||
<td>{{ part.minimum_stock }}</td>
|
<td>{{ part.minimum_stock }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-calendar-alt'></span></td>
|
||||||
<td><b>{% trans "Creation Date" %}</b></td>
|
<td><b>{% trans "Creation Date" %}</b></td>
|
||||||
<td>{{ part.creation_date }}</td>
|
<td>{{ part.creation_date }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% if part.creation_user %}
|
{% if part.creation_user %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-user'></span></td>
|
||||||
<td><b>{% trans "Created By" %}</b></td>
|
<td><b>{% trans "Created By" %}</b></td>
|
||||||
<td>{{ part.creation_user }}</td>
|
<td>{{ part.creation_user }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if part.responsible %}
|
{% if part.responsible %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-user'>d</span></td>
|
||||||
<td><b>{% trans "Responsible User" %}</b></td>
|
<td><b>{% trans "Responsible User" %}</b></td>
|
||||||
<td>{{ part.responsible }}</td>
|
<td>{{ part.responsible }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -37,18 +37,22 @@
|
|||||||
<h3>{% trans "Location Details" %}</h3>
|
<h3>{% trans "Location Details" %}</h3>
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed'>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-sitemap'></span></td>
|
||||||
<td>{% trans "Location Path" %}</td>
|
<td>{% trans "Location Path" %}</td>
|
||||||
<td>{{ location.pathstring }}</td>
|
<td>{{ location.pathstring }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-info-circle'></span></td>
|
||||||
<td>{% trans "Location Description" %}</td>
|
<td>{% trans "Location Description" %}</td>
|
||||||
<td>{{ location.description }}</td>
|
<td>{{ location.description }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-map-marker-alt'></span></td>
|
||||||
<td>{% trans "Sublocations" %}</td>
|
<td>{% trans "Sublocations" %}</td>
|
||||||
<td>{{ location.children.count }}</td>
|
<td>{{ location.children.count }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-boxes'></span></td>
|
||||||
<td>{% trans "Stock Items" %}</td>
|
<td>{% trans "Stock Items" %}</td>
|
||||||
<td>{{ location.item_count }}</td>
|
<td>{{ location.item_count }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -57,10 +61,12 @@
|
|||||||
<h3>{% trans "Stock Details" %}</h3>
|
<h3>{% trans "Stock Details" %}</h3>
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed'>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-map-marker-alt'></span></td>
|
||||||
<td>{% trans "Stock Locations" %}</td>
|
<td>{% trans "Stock Locations" %}</td>
|
||||||
<td>{{ loc_count }}</td>
|
<td>{{ loc_count }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td><span class='fas fa-boxes'></span></td>
|
||||||
<td>{% trans "Stock Items" %}</td>
|
<td>{% trans "Stock Items" %}</td>
|
||||||
<td>{{ stock_count }}</td>
|
<td>{{ stock_count }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
Loading…
Reference in New Issue
Block a user