Re-add 'new stock item' button

This commit is contained in:
Oliver Walters 2019-06-18 22:13:54 +10:00
parent 3349d0c0df
commit ee5722857f
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@
<td><b>Purchaseable</b></td>
<td>{% include "slide.html" with state=part.purchaseable field='purchaseable' %}</td>
{% if part.purchaseable %}
<td><Part can be purchased from external suppliers></td>
<td>Part can be purchased from external suppliers</td>
{% else %}
<td><i>Part can be purchased from external suppliers</i></td>
{% endif %}

View File

@ -1,6 +1,6 @@
<div id='button-toolbar'>
<div class='button-toolbar container-fluid' style='float: right;'>
{% if part.is_template == False %}
{% if not part or part.is_template == False %}
<button class="btn btn-success" id='item-create'>New Stock Item</button>
{% endif %}
<div class="dropdown" style='float: right;'>