Add icons to inventory page that indicate common issues

This commit is contained in:
2023-12-05 17:18:39 +01:00
parent 1b6d0c40f3
commit 3d9ad49020
3 changed files with 22 additions and 0 deletions
+5
View File
@@ -3,6 +3,7 @@
{% block content %}
<table>
<tr>
<th>Stat</th>
<th>ID</th>
<th>Barcode</th>
<th>Name</th>
@@ -17,6 +18,10 @@
</tr>
{% for item in items %}
<tr>
<td>
{% if item.units_left == 0 %}<span title="Leerer aktiver Inventareintrag">🅾️</span>{% endif %}
{% if item.other_lines_count != 0 %}<span title="{% if item.other_lines_count == 1 %}Neuerer Eintrag mit demselben Barcode ist aktiv{% else %}{{ item.other_lines_count }} Einträge mit demselben Barcode sind aktiv{% endif %}">🔄</span>{% endif %}
</td>
<td><a href="/inventory/item/{{ item.item_id }}">{{ item.item_id }}</a></td>
<td><code>{{ item.item_barcode }}</code></td>
<td>{{ item.name }}</td>