2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-20 13:56:30 +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

@ -1,4 +1,7 @@
{% load i18n %}
{% load inventree_extras %}
{% settings_value 'PART_SHOW_IMPORT' as show_import %}
<ul class='list-group'>
@ -30,7 +33,7 @@
</a>
</li>
{% if user.is_staff and roles.part.add %}
{% if show_import and user.is_staff and roles.part.add %}
<li class='list-group-item {% if tab == "import" %}active{% endif %}' title='{% trans "Import Parts" %}'>
<a href='{% url "part-import" %}'>
<span class='fas fa-file-upload'></span>