2
0
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:
Oliver Walters
2019-04-16 21:46:12 +10:00
parent be60fbcc25
commit 7eea9d1a20
7 changed files with 68 additions and 30 deletions

View File

@@ -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 %}

View File

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