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

@ -33,7 +33,12 @@ src="{% static 'img/blank_image.png' %}"
{% block page_data %}
<h3>{% trans "Build" %} {% build_status_label build.status large=True %}</h3>
<hr>
<h4>{{ build.quantity }} x {{ build.part.full_name }}</h4>
<h4>
{{ build.quantity }} x {{ build.part.full_name }}
{% if user.is_staff %}
<a href="{% url 'admin:build_build_change' build.pk %}"><span title="{% trans 'Admin view' %}" class='fas fa-user-shield'></span></a>
{% endif %}
</h4>
<div class='btn-row'>
<div class='btn-group action-buttons'>
<button type='button' class='btn btn-default' id='build-edit' title='Edit Build'>