manager: use full page to edit roles (#25675)

This commit is contained in:
Frédéric Péters 2018-08-14 09:07:08 +02:00
parent d4d4aa65c5
commit dac6d3b080
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
<a class="disabled" title="{% trans "This role is technical, you cannot delete it." %}" href="#">{% trans "Delete" %}</a>
{% endif %}
{% if view.can_change and not object.is_internal %}
<a rel="popup" href="{% url "a2-manager-role-edit" pk=object.pk %}">{% trans "Edit" %}</a>
<a href="{% url "a2-manager-role-edit" pk=object.pk %}">{% trans "Edit" %}</a>
{% else %}
{% if not view.can_change %}
<a class="disabled" title="{% trans "Permission denied" %}" href="#">{% trans "Edit" %}</a>

View File

@ -13,7 +13,7 @@
<a rel="popup" href="{% url "a2-manager-role-delete" pk=object.pk %}">{% trans "Delete" %}</a>
{% endif %}
{% if view.can_change and not object.is_internal %}
<a rel="popup" href="{% url "a2-manager-role-edit" pk=object.pk %}">{% trans "Edit" %}</a>
<a href="{% url "a2-manager-role-edit" pk=object.pk %}">{% trans "Edit" %}</a>
{% endif %}
<a href="{% url "a2-manager-role-members" pk=object.pk %}">{% trans "Members" %}</a>
{% endblock %}