If a part is not active, display an INACTIVE Message on part page

This commit is contained in:
Oliver Walters 2019-04-28 23:08:54 +10:00
parent c2a35b6656
commit 260d890052

View File

@ -5,6 +5,11 @@
{% block content %}
<div class="row">
{% if part.active == False %}
<div class='alert alert-danger' style='display: block;'>
This part ({{ part.name }}) is not active:
</div>
{% endif %}
<div class="col-sm-6">
<div class="media">
<div class="media-left">
@ -16,7 +21,7 @@
{% endif %}/>
</div>
<div class="media-body">
<h4>{{ part.name }}</h4>
<h4>{{ part.name }}{% if part.active == False %} <i>- INACTIVE</i>{% endif %}</h4>
{% if part.description %}
<p><i>{{ part.description }}</i></p>
{% endif %}