diff --git a/module/CommonBundle/Resources/views/common/admin/role/manage.twig b/module/CommonBundle/Resources/views/common/admin/role/manage.twig index 0a282fe84e..7f09f704a8 100644 --- a/module/CommonBundle/Resources/views/common/admin/role/manage.twig +++ b/module/CommonBundle/Resources/views/common/admin/role/manage.twig @@ -18,19 +18,6 @@ -
-
Success
-
-

The members were successfully removed!

-
-
-
-
Error
-
-

An error occurred while trying to delete the members.

-
-
-
@@ -126,31 +113,12 @@ {% endif %} - - {% if hasAccess('common_admin_role', 'deleteAllMembers') %} - - {% endif %} {% endblock %} {% block content_script %} {% endblock %} diff --git a/module/CommonBundle/Resources/views/common/admin/role/members.twig b/module/CommonBundle/Resources/views/common/admin/role/members.twig index 7742ec4aa7..c711577224 100644 --- a/module/CommonBundle/Resources/views/common/admin/role/members.twig +++ b/module/CommonBundle/Resources/views/common/admin/role/members.twig @@ -22,37 +22,41 @@

Role

Name: {{ role.getName() }}

-

Direct members

+ {% if members %} +

Direct members

-
- - - - - {% for member in members %} - - - +
NameActions
{{ member.getFullName() }} - {% if hasAccess('common_admin_role', 'deleteMember') %} - Delete - {% endif %} -
+ + + - {% endfor %} -
NameActions
+ {% for member in members %} + + {{ member.getFullName() }} + + {% if hasAccess('common_admin_role', 'deleteMember') %} + Delete + {% endif %} + + + {% endfor %} + + {% endif %} -

Unit members

+ {% if unitMembers %} +

Unit members

- - - - - {% for member in unitMembers %} - - +
Name
{{ member.getFullName() }}
+ + - {% endfor %} -
Name
+ {% for member in unitMembers %} + + {{ member.getFullName() }} + + {% endfor %} + + {% endif %}