mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 21:45:39 +00:00
replace labels with badges
This commit is contained in:
@ -51,7 +51,7 @@
|
||||
<!-- Part active -->
|
||||
{% if not part.active %}
|
||||
 
|
||||
<div class='label label-large label-large-red'>
|
||||
<div class='badge rounded-pill bg-danger'>
|
||||
<span class='fas fa-skull-crossbones' title='{% trans "Part is virtual (not a physical part)" %}'></span>
|
||||
{% trans 'Inactive' %}
|
||||
</div>
|
||||
@ -59,7 +59,7 @@
|
||||
<!-- Part virtual -->
|
||||
{% if part.virtual and part.active %}
|
||||
 
|
||||
<div class='label label-large label-large-yellow'>
|
||||
<div class='badge rounded-pill bg-warning'>
|
||||
<span class='fas fa-ghost' title='{% trans "Part is virtual (not a physical part)" %}'></span>
|
||||
{% trans 'Virtual' %}
|
||||
</div>
|
||||
|
@ -4,7 +4,7 @@
|
||||
{% decimal total_stock %}
|
||||
|
||||
{% if total_stock == 0 %}
|
||||
<span class='label label-danger label-right'>{% trans "No Stock" %}</span>
|
||||
<span class='badge rounded-pill bg-danger'>{% trans "No Stock" %}</span>
|
||||
{% elif total_stock < part.minimum_stock %}
|
||||
<span class='label label-warning label-right'>{% trans "Low Stock" %}</span>
|
||||
<span class='badge rounded-pill bg-warning'>{% trans "Low Stock" %}</span>
|
||||
{% endif %}
|
Reference in New Issue
Block a user