mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
Add search bar to team member list
Another thing we did for templates, when they started to get unmanageable, was add a find-as-you type search. We’ve observed real users interacting with this to great effect, so I think it makes sense for users too. Like for templates, it only shows up when there are more than 7, so that it’s not clutter for teams who don’t have a lot of members.
This commit is contained in:
@@ -17,7 +17,8 @@ from notifications_python_client.errors import HTTPError
|
||||
from app.main import main
|
||||
from app.main.forms import (
|
||||
InviteUserForm,
|
||||
PermissionsForm
|
||||
PermissionsForm,
|
||||
SearchUsersForm,
|
||||
)
|
||||
from app import (user_api_client, current_service, service_api_client, invite_api_client)
|
||||
from app.notify_client.models import roles
|
||||
@@ -40,6 +41,8 @@ def manage_users(service_id):
|
||||
'views/manage-users.html',
|
||||
users=users,
|
||||
current_user=current_user,
|
||||
show_search_box=(len(users) > 7),
|
||||
form=SearchUsersForm(),
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user