mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Make a fancy badge
This commit is contained in:
parent
90aa205057
commit
82be9db3df
@ -5,7 +5,11 @@
|
|||||||
<a href="{% url 'po-detail' order.id %}">{% trans "Items" %}</a>
|
<a href="{% url 'po-detail' order.id %}">{% trans "Items" %}</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% if tab == 'attachments' %} class='active'{% endif %}>
|
<li{% if tab == 'attachments' %} class='active'{% endif %}>
|
||||||
<a href="{% url 'po-attachments' order.id %}">{% trans "Attachments" %}</a>
|
<a href="{% url 'po-attachments' order.id %}">{% trans "Attachments" %}
|
||||||
|
{% if order.attachments.count > 0 %}
|
||||||
|
<span class='badge'>{{ order.attachments.count }}</span>
|
||||||
|
{% endif %}
|
||||||
|
</a>
|
||||||
</li>
|
</li>
|
||||||
<li{% ifequal tab 'notes' %} class='active'{% endifequal %}>
|
<li{% ifequal tab 'notes' %} class='active'{% endifequal %}>
|
||||||
<a href="{% url 'po-notes' order.id %}">{% trans "Notes" %}{% if order.notes %} <span class='glyphicon glyphicon-small glyphicon-info-sign'></span>{% endif %}</a>
|
<a href="{% url 'po-notes' order.id %}">{% trans "Notes" %}{% if order.notes %} <span class='glyphicon glyphicon-small glyphicon-info-sign'></span>{% endif %}</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user