mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
find_users_by_email view loads a page with search form and is linked to
This commit is contained in:
@@ -26,6 +26,7 @@ from app.main.views import ( # noqa
|
||||
invites,
|
||||
feedback,
|
||||
providers,
|
||||
find_users,
|
||||
platform_admin,
|
||||
letter_jobs,
|
||||
email_branding,
|
||||
|
||||
16
app/main/views/find_users.py
Normal file
16
app/main/views/find_users.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from flask import abort, render_template, request, url_for
|
||||
from flask_login import login_required
|
||||
|
||||
from app.main import main
|
||||
from app.utils import user_is_platform_admin
|
||||
from app.main.forms import SearchUsersForm
|
||||
|
||||
|
||||
@main.route("/find-users-by-email", methods=['GET'])
|
||||
@login_required
|
||||
@user_is_platform_admin
|
||||
def find_users_by_email():
|
||||
return render_template(
|
||||
'views/find-users/find-users-by-email.html',
|
||||
form=SearchUsersForm(),
|
||||
)
|
||||
Reference in New Issue
Block a user