hide the action buttons if special object

This commit is contained in:
Matthias 2022-03-30 01:31:02 +02:00
parent 44239cba08
commit 0d2fbe16f5
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -27,12 +27,12 @@
<span class='fas fa-tools'></span> <span class='caret'></span>
</button>
<ul class='dropdown-menu' role='menu'>
{% if perms.company.change_company %}
{% if perms.company.change_company and not company.is_deleted %}
<li><a class='dropdown-item' href='#' id='company-edit' title='{% trans "Edit company information" %}'>
<span class='fas fa-edit icon-green'></span> {% trans "Edit Company" %}
</a></li>
{% endif %}
{% if perms.company.delete_company %}
{% if perms.company.delete_company and not company.is_deleted %}
<li><a class='dropdown-item' href='#' id='company-delete' title='{% trans "Delete company" %}'>
<span class='fas fa-trash-alt icon-red'></span> {% trans "Delete Company" %}
</a></li>