33 lines
1.0 KiB
HTML
33 lines
1.0 KiB
HTML
{% extends "authentic2/manager/role_common.html" %}
|
|
{% load i18n staticfiles django_tables2 %}
|
|
|
|
{% block breadcrumb %}
|
|
{{ block.super }}
|
|
<a href="..">{{ object }}</a>
|
|
<a href="#">{% trans "Permissions" %}</a>
|
|
{% endblock %}
|
|
|
|
{% block appbar %}
|
|
{{ block.super }}
|
|
{% if view.can_delete %}
|
|
<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 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 %}
|
|
|
|
{% block main %}
|
|
<div class="role-info">
|
|
{% render_table table "authentic2/manager/role_permissions_table.html" %}
|
|
</div>
|
|
{% if perms.a2_rbac.change_role %}
|
|
<form method="post" id="add-role-permission">
|
|
{% csrf_token %}
|
|
{{ form }}
|
|
<button>{% trans "Add" %}</button>
|
|
</form>
|
|
{% endif %}
|
|
{% endblock %}
|