2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 21:15:41 +00:00

Add direct admin links if the user is staff

This commit is contained in:
Oliver Walters
2020-09-30 00:02:10 +10:00
parent 0e5f10c020
commit d1cce7df94
6 changed files with 32 additions and 6 deletions

View File

@ -21,7 +21,12 @@ InvenTree | {% trans "Company" %} - {{ company.name }}
{% block page_data %}
<h3>{% trans "Company" %}</h3>
<hr>
<h4>{{ company.name }}</h4>
<h4>
{{ company.name }}
{% if user.is_staff %}
<a href="{% url 'admin:company_company_change' company.pk %}"><span title="{% trans 'Admin view' %}" class='fas fa-user-shield'></span></a>
{% endif %}
</h4>
<p>{{ company.description }}</p>
<div class='btn-group action-buttons'>
{% if company.is_supplier %}