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:
@ -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 %}
|
||||
|
Reference in New Issue
Block a user