mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-14 15:41:10 +00:00
Generate modal form to export BOM
- Doesn't do anything yet - Extends AjaxView
This commit is contained in:
@@ -18,6 +18,10 @@
|
||||
<button type='button' class='btn btn-success' id='new-bom-item'>Add BOM Item</button>
|
||||
</div>
|
||||
|
||||
<div class='container-fluid'>
|
||||
<button type='button' class='btn btn-basic' id='export-bom'>Export BOM</button>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
{% block js_ready %}
|
||||
{{ block.super }}
|
||||
@@ -57,6 +61,19 @@
|
||||
});
|
||||
});
|
||||
|
||||
$("#export-bom").click(function () {
|
||||
launchModalForm(
|
||||
"{% url 'bom-export' part.id %}",
|
||||
{
|
||||
/*
|
||||
reload: true,
|
||||
data: {
|
||||
format: 'csv',
|
||||
}
|
||||
*/
|
||||
});
|
||||
});
|
||||
|
||||
$("#bom-table").bootstrapTable({
|
||||
sortable: true,
|
||||
search: true,
|
||||
|
3
InvenTree/part/templates/part/bom_export.html
Normal file
3
InvenTree/part/templates/part/bom_export.html
Normal file
@@ -0,0 +1,3 @@
|
||||
Export BOM for {{ part.name }}
|
||||
|
||||
{% include "modal_csrf.html" %}
|
Reference in New Issue
Block a user