2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Settings to show import-button

This commit is contained in:
2021-05-26 09:20:50 +02:00
parent 3c5bb048a1
commit 4319ba16af
3 changed files with 31 additions and 1 deletions

View File

@ -37,6 +37,22 @@
</tbody>
</table>
<h4>{% trans "Part Import" %}</h4>
<button class='btn btn-success' id='import-part'>
<span class='fas fa-plus-circle'></span> {% trans "Import Part" %}
</button>
<table class='table table-striped table-condensed'>
{% include "InvenTree/settings/header.html" %}
<tbody>
{% include "InvenTree/settings/setting.html" with key="PART_SHOW_IMPORT" icon="fa-file-upload" %}
</tbody>
</table>
<h4>{% trans "Part Parameter Templates" %}</h4>
<div id='param-buttons'>
@ -121,4 +137,8 @@
});
});
$("#import-part").click(function() {
launchModalForm("{% url 'part-import' %}", {});
});
{% endblock %}