mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Template changes
This commit is contained in:
parent
27ca84fd2a
commit
47a4ab2ed8
@ -6,11 +6,14 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if part.virtual %}
|
||||
<div class='alert alert-info alert-block'>
|
||||
{% trans "This part is a virtual part" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if part.is_template %}
|
||||
<div class='alert alert-info alert-block'>
|
||||
{% trans "This part is a template part." %}
|
||||
<br>
|
||||
{% trans "It is not a real part, but real parts can be based on this template." %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if part.variant_of %}
|
||||
|
@ -13,9 +13,11 @@
|
||||
<a href="{% url 'part-variants' part.id %}">{% trans "Variants" %} <span class='badge'>{{ part.variants.count }}</span></span></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if not part.virtual %}
|
||||
<li{% ifequal tab 'stock' %} class="active"{% endifequal %}>
|
||||
<a href="{% url 'part-stock' part.id %}">{% trans "Stock" %} <span class="badge">{% decimal part.total_stock %}</span></a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if part.component or part.used_in_count > 0 %}
|
||||
<li{% ifequal tab 'allocation' %} class="active"{% endifequal %}>
|
||||
<a href="{% url 'part-allocation' part.id %}">{% trans "Allocated" %} <span class="badge">{% decimal part.allocation_count %}</span></a>
|
||||
|
Loading…
Reference in New Issue
Block a user