diff --git a/app/assets/stylesheets/access_permissions/access_modal.scss b/app/assets/stylesheets/access_permissions/access_modal.scss index 057277f4c..fcd16a038 100644 --- a/app/assets/stylesheets/access_permissions/access_modal.scss +++ b/app/assets/stylesheets/access_permissions/access_modal.scss @@ -1,10 +1,10 @@ #user_assignments_modal { .btn-role-select { - padding: 0; + padding: 0 0 0 16px; &:hover { - background-color: $color-white; + background-color: $color-concrete; } &:focus { diff --git a/app/helpers/user_roles_helper.rb b/app/helpers/user_roles_helper.rb index 1a491c882..17bf224dd 100644 --- a/app/helpers/user_roles_helper.rb +++ b/app/helpers/user_roles_helper.rb @@ -6,7 +6,11 @@ module UserRolesHelper permissions = permission_group.constants.map { |const| permission_group.const_get(const) } roles = user_roles_subset_by_permissions(permissions).order(id: :asc).pluck(:name, :id) - roles = [[t('access_permissions.reset'), 'reset']] + roles if with_inherit + if with_inherit + roles = [[t('access_permissions.reset'), 'reset', + t("access_permissions.partials.#{object.class.name.underscore}_member_field.reset_description")]] + + roles + end roles end diff --git a/app/views/access_permissions/partials/_member_field.html.erb b/app/views/access_permissions/partials/_member_field.html.erb index 656cfa96f..d78808c3e 100644 --- a/app/views/access_permissions/partials/_member_field.html.erb +++ b/app/views/access_permissions/partials/_member_field.html.erb @@ -29,7 +29,7 @@