Add BOM checksum info panels to the BOM view

This commit is contained in:
Oliver Walters 2019-05-12 13:24:58 +10:00
parent 9149619f38
commit d17e36b9f9
2 changed files with 19 additions and 0 deletions

View File

@ -11,6 +11,21 @@
<h3>Bill of Materials</h3>
{% if part.bom_checked_date %}
{% if part.is_bom_valid %}
<div class='alert alert-block alert-info'>
{% else %}
<div class='alert alert-block alert-danger'>
The BOM for <i>{{ part.full_name }}</i> has changed, and must be validated.<br>
{% endif %}
The BOM for <i>{{ part.full_name }}</i> was last checked by {{ part.bom_checked_by }} on {{ part.bom_checked_date }}
</div>
{% else %}
<div class='alert alert-danger alert-block'>
<b>The BOM for <i>{{ part.full_name }}</i> has not been validated.</b>
</div>
{% endif %}
<div id='button-toolbar'>
{% if editing_enabled %}
<div class='btn-group' style='float: right;'>

View File

@ -224,6 +224,10 @@
pointer-events: all;
}
.alert-block {
display: block;
}
.btn {
margin-left: 2px;
margin-right: 2px;