mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Adds "admin" button to supplier part page
This commit is contained in:
parent
791b14920a
commit
5a58e0a298
@ -17,6 +17,15 @@ src="{% static 'img/blank_image.png' %}"
|
||||
|
||||
{% block page_data %}
|
||||
<h3>{% trans "Supplier Part" %}</h3>
|
||||
<hr>
|
||||
<h4>
|
||||
{{ part.part.full_name }}
|
||||
{% if user.is_staff and perms.company.change_company %}
|
||||
<a href="{% url 'admin:company_supplierpart_change' part.pk %}">
|
||||
<span title='{% trans "Admin view" %}' class='fas fa-user-shield'></span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</h4>
|
||||
<p>{{ part.supplier.name }} - {{ part.SKU }}</p>
|
||||
|
||||
{% if roles.purchase_order.change %}
|
||||
|
Loading…
Reference in New Issue
Block a user