mirror of
https://github.com/inventree/InvenTree.git
synced 2025-08-14 23:51:08 +00:00
Launch a modal to select BOM download format
- This will have to change! A client-side hack for now.. - Work out a better way to do this!
This commit is contained in:
@@ -70,8 +70,11 @@
|
||||
});
|
||||
|
||||
$("#export-bom").click(function () {
|
||||
//TODO - Select format of the data
|
||||
location.href = "{% url 'bom-export' part.id %}";
|
||||
downloadBom({
|
||||
modal: '#modal-form',
|
||||
url: "{% url 'bom-export' part.id %}"
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
{% endif %}
|
||||
|
@@ -1,7 +0,0 @@
|
||||
Export BOM (Bill of Materials) for {{ part.name }}
|
||||
|
||||
<form method="post" action='' class='js-modal-form' enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{% load crispy_forms_tags %}
|
||||
{% crispy form %}
|
||||
</form>
|
Reference in New Issue
Block a user