2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-29 12:06:44 +00:00
Added BOM button to bottom of Bill of Materials table on part detail view
This commit is contained in:
Richard Lawson 2022-10-06 22:23:53 -04:00 committed by GitHub
parent 5d6423fb64
commit fbc99257bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -286,6 +286,12 @@
</div> </div>
<div class='panel-content'> <div class='panel-content'>
{% include "part/bom.html" with part=part %} {% include "part/bom.html" with part=part %}
{% if roles.part.change %}
<button class='btn btn-success' type='button' title='{% trans "New BOM Item" %}' id='bom-item-new-footer'>
<span class='fas fa-plus-circle'></span> {% trans "Add BOM Item" %}
</button>
<br/>
{% endif %}
</div> </div>
</div> </div>
@ -611,7 +617,7 @@
}); });
}); });
$("#bom-item-new").click(function () { $("[id^=bom-item-new]").click(function () {
var fields = bomItemFields(); var fields = bomItemFields();