manager: remove unused test on table templates (#47057)
This commit is contained in:
parent
14f37aeedd
commit
c37db0f8e2
|
@ -2,11 +2,9 @@
|
|||
|
||||
{% load i18n %}
|
||||
|
||||
{% if perms.auth.change_group %}
|
||||
{% block table.head.last.column %}
|
||||
<th></th>
|
||||
{% endblock %}
|
||||
{% block table.tbody.last.column %}
|
||||
<td class="remove-icon-column">{% if table.context.view.can_manage_members and row.record.direct %}<a class="js-remove-object" data-confirm="{% blocktrans with username=row.record.get_full_name role=table.context.object %}Do you really want to remove user "{{ username }}" from role "{{ role }}" ?{% endblocktrans %}" href="#" data-pk-arg="user"><span class="icon-remove-sign"></span></a>{% endif %}</td>
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
|
|
@ -2,11 +2,9 @@
|
|||
|
||||
{% load i18n %}
|
||||
|
||||
{% if perms.auth.change_group %}
|
||||
{% block table.head.last.column %}
|
||||
<th></th>
|
||||
{% endblock %}
|
||||
{% block table.tbody.last.column %}
|
||||
<td class="remove-icon-column">{% if table.context.view.can_change %}<a class="js-remove-object" href="#" data-pk-arg="permission"><span class="icon-remove-sign"></span></a>{% endif %}</td>
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
|
|
@ -2,11 +2,9 @@
|
|||
|
||||
{% load i18n %}
|
||||
|
||||
{% if perms.auth.change_group %}
|
||||
{% block table.head.last.column %}
|
||||
<th></th>
|
||||
{% endblock %}
|
||||
{% block table.tbody.last.column %}
|
||||
<td class="remove-icon-column">{% if table.context.view.can_change %}<a class="js-remove-object" data-confirm="{% blocktrans with name=row.record.name slug=table.context.object %}Do you really want to remove role "{{ name }}" from service "{{ slug }}" ?{% endblocktrans %}" href="#" data-pk-arg="role"><span class="icon-remove-sign"></span></a>{% endif %}</td>
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
{% load i18n %}
|
||||
|
||||
{% if perms.auth.change_group %}
|
||||
{% block table.head.last.column %}
|
||||
<th></th>
|
||||
{% endblock %}
|
||||
|
@ -13,4 +12,3 @@
|
|||
{% endif %}
|
||||
</td>
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in New Issue