2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 20:45:44 +00:00

Add a form to select export format

This commit is contained in:
Oliver
2021-10-07 13:33:10 +11:00
parent d391c5059b
commit 64cf916c50
5 changed files with 76 additions and 23 deletions

View File

@ -39,6 +39,9 @@ src="{% static 'img/blank_image.png' %}"
<button type='button' class='btn btn-default' id='print-order-report' title='{% trans "Print" %}'>
<span class='fas fa-print'></span>
</button>
<button type='button' class='btn btn-default' id='export-order' title='{% trans "Export order to file" %}'>
<span class='fas fa-file-download'></span>
</button>
{% if roles.purchase_order.change %}
<button type='button' class='btn btn-default' id='edit-order' title='{% trans "Edit order information" %}'>
<span class='fas fa-edit icon-green'></span>
@ -61,9 +64,6 @@ src="{% static 'img/blank_image.png' %}"
</button>
{% endif %}
{% endif %}
<button type='button' class='btn btn-default' id='export-order' title='{% trans "Export order to file" %}'>
<span class='fas fa-file-download'></span>
</button>
</div>
</div>
{% endblock %}
@ -224,7 +224,7 @@ $("#cancel-order").click(function() {
});
$("#export-order").click(function() {
location.href = '{% url "po-export" order.id %}';
exportOrder('{% url "po-export" order.id %}');
});

View File

@ -202,7 +202,7 @@ $('#print-order-report').click(function() {
});
$('#export-order').click(function() {
location.href = '{% url "so-export" order.id %}';
exportOrder('{% url "so-export" order.id %}');
});
{% endblock %}