mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-29 03:56:43 +00:00
Added BOM button to bottom of Bill of Materials table on part detail view
This commit is contained in:
parent
5d6423fb64
commit
fbc99257bd
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user