mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-02-22 09:29:35 +00:00
Fixed visual bug of tags column in parts lot
This commit is contained in:
parent
8ad3c2e612
commit
5b4c1505b7
1 changed files with 18 additions and 16 deletions
|
|
@ -41,35 +41,37 @@
|
||||||
{{ lot.amount | format_amount(part.partUnit, {'decimals': 5}) }}
|
{{ lot.amount | format_amount(part.partUnit, {'decimals': 5}) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="d-flex flex-column align-items-start">
|
<td >
|
||||||
{% if lot.owner %}
|
<div class="d-flex flex-column align-items-start">
|
||||||
<span class="badge text-bg-light mb-1" title="{% trans %}part_lot.owner{% endtrans %}">
|
{% if lot.owner %}
|
||||||
|
<span class="badge text-bg-light mb-1" title="{% trans %}part_lot.owner{% endtrans %}">
|
||||||
{{ helper.user_icon_link(lot.owner) }}
|
{{ helper.user_icon_link(lot.owner) }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if lot.expirationDate %}
|
{% if lot.expirationDate %}
|
||||||
<span class="badge text-bg-info mb-1" title="{% trans %}part_lots.expiration_date{% endtrans %}">
|
<span class="badge text-bg-info mb-1" title="{% trans %}part_lots.expiration_date{% endtrans %}">
|
||||||
<i class="fas fa-calendar-alt fa-fw"></i> {{ lot.expirationDate | format_date() }}<br>
|
<i class="fas fa-calendar-alt fa-fw"></i> {{ lot.expirationDate | format_date() }}<br>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if lot.expired %}
|
{% if lot.expired %}
|
||||||
<span class="badge text-bg-warning mb-1">
|
<span class="badge text-bg-warning mb-1">
|
||||||
<i class="fas fa-exclamation-circle fa-fw"></i>
|
<i class="fas fa-exclamation-circle fa-fw"></i>
|
||||||
{% trans %}part_lots.is_expired{% endtrans %}
|
{% trans %}part_lots.is_expired{% endtrans %}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if lot.needsRefill %}
|
{% if lot.needsRefill %}
|
||||||
<span class="badge text-bg-warning mb-1">
|
<span class="badge text-bg-warning mb-1">
|
||||||
<i class="fas fa-dolly fa-fw"></i>
|
<i class="fas fa-dolly fa-fw"></i>
|
||||||
{% trans %}part_lots.need_refill{% endtrans %}
|
{% trans %}part_lots.need_refill{% endtrans %}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if lot.lastStocktakeAt %}
|
{% if lot.lastStocktakeAt %}
|
||||||
<span class="badge text-bg-secondary" title="{% trans %}part_lot.edit.last_stocktake_at{% endtrans %}">
|
<span class="badge text-bg-secondary" title="{% trans %}part_lot.edit.last_stocktake_at{% endtrans %}">
|
||||||
<i class="fas fa-clipboard-check fa-fw"></i>
|
<i class="fas fa-clipboard-check fa-fw"></i>
|
||||||
{{ lot.lastStocktakeAt | format_datetime("short") }}
|
{{ lot.lastStocktakeAt | format_datetime("short") }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<div class="btn-group" role="group">
|
<div class="btn-group" role="group">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue