0001-manager-reorganize-buttons-on-user-details-page-5564.patch
src/authentic2/manager/templates/authentic2/manager/user_detail.html | ||
---|---|---|
5 | 5 |
{{ block.super }} |
6 | 6 |
<span class="actions"> |
7 | 7 |
<a class="extra-actions-menu-opener"></a> |
8 | ||
9 |
{% if view.can_delete %} |
|
10 |
<a rel="popup" href="{% url "a2-manager-user-delete" pk=object.pk %}">{% trans "Delete" %}</a> |
|
11 |
{% else %} |
|
12 |
<a class="disabled" title="{% trans "You do not have the rights to delete this user." %}" href="#">{% trans "Delete" %}</a> |
|
13 |
{% endif %} |
|
14 | ||
8 |
<a href="{% url "a2-manager-user-journal" pk=object.pk %}">{% trans "Journal" %}</a> |
|
15 | 9 |
{% if view.can_change %} |
16 | 10 |
<a href="{% url "a2-manager-user-edit" pk=object.pk %}">{% trans "Edit" %}</a> |
17 | 11 |
{% else %} |
18 | 12 |
<a class="disabled" title="{% trans "You do not have the rights to edit this user." %}" href="#">{% trans "Edit" %}</a> |
19 | 13 |
{% endif %} |
20 | ||
21 | 14 |
<ul class="extra-actions-menu"> |
15 |
{% if view.can_delete %} |
|
16 |
<li><a rel="popup" href="{% url "a2-manager-user-delete" pk=object.pk %}">{% trans "Delete" %}</a></li> |
|
17 |
{% else %} |
|
18 |
<li><a class="disabled" title="{% trans "You do not have the rights to delete this user." %}" href="#">{% trans "Delete" %}</a></li> |
|
19 |
{% endif %} |
|
22 | 20 |
{% if view.is_oidc_services %} |
23 | 21 |
<li><a href="{% url "a2-manager-user-authorizations" pk=object.pk %}">{% trans "Consents" %}</a></li> |
24 | 22 |
{% endif %} |
25 |
<li><a href="{% url "a2-manager-user-journal" pk=object.pk %}">{% trans "Journal" %}</a></li> |
|
26 | 23 |
</ul> |
27 | 24 |
</span> |
28 | 25 |
{% endblock %} |
29 |
- |