diff --git a/authentic2/manager/templates/authentic2/manager/role.html b/authentic2/manager/templates/authentic2/manager/role.html index f213987..6113209 100644 --- a/authentic2/manager/templates/authentic2/manager/role.html +++ b/authentic2/manager/templates/authentic2/manager/role.html @@ -9,15 +9,7 @@ {% block content %}
-
- {% csrf_token %} - -
-

{% trans "Users with role" %}: {{ active_role.name }} Edit

-
- {% trans "Search" %}: - -
+

{% trans "Users with role" %}: {{ active_role.name }}

{% render_table users "authentic2/manager/table.html" %} diff --git a/authentic2/manager/templates/authentic2/manager/roles.html b/authentic2/manager/templates/authentic2/manager/roles.html index 88ae421..cff7425 100644 --- a/authentic2/manager/templates/authentic2/manager/roles.html +++ b/authentic2/manager/templates/authentic2/manager/roles.html @@ -3,7 +3,20 @@ {% block title %}{{ block.super }} - {% trans "Roles management" %}{% endblock %} -{% block page_title %}{% trans "Roles management" %}{% endblock %} +{% block page_title %}{% trans "Roles management" %} +{% if active_role %} — {{ active_role.name }}{% endif %} +{% endblock %} + +{% block appbar %} + {{ block.super }} + {% if active_role %} + {% trans "Delete" %} + {% trans "Edit" %} + {% else %} +

{% trans "Add role" %}

+ {% endif %} +{% endblock %} + {% block sidebar %} -

{% trans "Add role" %}

-

{% trans "Users management" %}

+ + {% if active_role %} +
+
+

{% trans "Search" %}

+ + +
+ {% endif %} {% endblock %} {% block content %} diff --git a/authentic2/manager/templates/authentic2/manager/users.html b/authentic2/manager/templates/authentic2/manager/users.html index 9c39cd0..da9bebe 100644 --- a/authentic2/manager/templates/authentic2/manager/users.html +++ b/authentic2/manager/templates/authentic2/manager/users.html @@ -14,12 +14,11 @@

{% trans "Search" %}

- - + +

{{ users.count }} users

-

{% trans "Roles management" %}

{% endblock %} {% block content %}