2
0
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:
Oliver Walters
2019-04-13 21:04:23 +10:00
parent 73b7c178d4
commit 0cc59540ef
4 changed files with 44 additions and 1 deletions

View File

@@ -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,

View File

@@ -0,0 +1,3 @@
Export BOM for {{ part.name }}
{% include "modal_csrf.html" %}