diff options
-rw-r--r-- | inventar/templates/item.html | 7 | ||||
-rw-r--r-- | inventory/views.py | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/inventar/templates/item.html b/inventar/templates/item.html index d5c645b..8fa7a24 100644 --- a/inventar/templates/item.html +++ b/inventar/templates/item.html @@ -119,6 +119,13 @@ </td> </tr> + {% if supplier %} + <tr class="{% cycle rowcolor %}"> + <th><img src="/static/truck.svg" width="32" height="32" title="{% trans "Supplier" %}" alt="{% trans "Supplier" %}" /></th> + <td>{{ supplier }}</td> + </tr> + {% endif %} + {% if owner %} <tr class="{% cycle rowcolor %}"> <th><img src="/static/owner.svg" width="32" height="32" title="{% trans "Owner" %}" alt="{% trans "Owner" %}" /></th> diff --git a/inventory/views.py b/inventory/views.py index e97bbaa..77630d3 100644 --- a/inventory/views.py +++ b/inventory/views.py @@ -44,6 +44,7 @@ def item(request, selectedid): "name": p.item.name, "codes": p.item.barcodes(), "description": p.item.description, + "supplier": p.item.supplier, "note": p.item.note, "in_use": p.item.inUse, "parent": p.item.parent, |