mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Fix action buttons for "company" page
This commit is contained in:
parent
5e04f2acf3
commit
2d9f7364fd
@ -23,15 +23,20 @@
|
|||||||
<span class='fas fa-shopping-cart'/>
|
<span class='fas fa-shopping-cart'/>
|
||||||
</button>
|
</button>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if perms.company.change_company %}
|
{% if perms.company.change_company or perms.company.delete_company %}
|
||||||
<button type='button' class='btn btn-outline-secondary' id='company-edit' title='{% trans "Edit company information" %}'>
|
<div class='btn-group'>
|
||||||
<span class='fas fa-edit icon-green'/>
|
<button id='company-options' title='{% trans "Company actions" %}' class='btn btn-outline-secondary dropdown-toggle' type='button' data-bs-toggle='dropdown'>
|
||||||
</button>
|
<span class='fas fa-tools'></span> <span class='caret'></span>
|
||||||
{% endif %}
|
</button>
|
||||||
{% if perms.company.delete_company %}
|
<ul class='dropdown-menu' role='menu'>
|
||||||
<button type='button' class='btn btn-outline-secondary' id='company-delete' title='{% trans "Delete Company" %}'>
|
{% if perms.company.change_company %}
|
||||||
<span class='fas fa-trash-alt icon-red'/>
|
<li><a class='dropdown-item' href='#' id='company-edit'><span class='fas fa-edit icon-green'></span> {% trans "Edit Company" %}</a></li>
|
||||||
</button>
|
{% endif %}
|
||||||
|
{% if perms.company.delete_company %}
|
||||||
|
<li><a class='dropdown-item' href='#' id='company-delete'><span class='fas fa-trash-alt icon-red'></span> {% trans "Delete Company" %}</a></li>
|
||||||
|
{% endif %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user