mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 13:28:49 +00:00
Display message if a part is a template or a variant
This commit is contained in:
parent
d70110690b
commit
0e684071fa
@ -4,12 +4,24 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="row">
|
|
||||||
{% if part.active == False %}
|
{% if part.active == False %}
|
||||||
<div class='alert alert-danger' style='display: block;'>
|
<div class='alert alert-danger alert-block'>
|
||||||
This part ({{ part.full_name }}) is not active:
|
This part is not active:
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if part.has_variants %}
|
||||||
|
<div class='alert alert-info alert-block'>
|
||||||
|
This part is a <i>template part</i>.<br>
|
||||||
|
It is not a <i>real</i> part, but real parts can be based on this template.
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if part.variant_of %}
|
||||||
|
<div class='alert alert-info alert-block'>
|
||||||
|
This part is a variant of <a href="{% url 'part-detail' part.variant_of.id %}">{{ part.variant_of.full_name }}</a>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<div class="media">
|
<div class="media">
|
||||||
<div class="media-left">
|
<div class="media-left">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user