Convert SearchFields to GovukSearchFields

Changes those fields in the following forms:
- SearchByNameForm
- SearchUsersByEmailForm
- SearchUsersForm
- SearchNotificationsForm

Includes changes to templates that use this form
and associated tests.
This commit is contained in:
Tom Byers
2020-08-07 10:16:24 +01:00
parent f95d57cfde
commit d21b9475ba
11 changed files with 37 additions and 44 deletions

View File

@@ -164,10 +164,9 @@ def view_notifications(service_id, message_type=None):
message_type=message_type,
status=request.args.get('status') or 'sending,delivered,failed',
page=request.args.get('page', 1),
to=request.form.get('to', ''),
search_form=SearchNotificationsForm(
message_type=message_type,
to=request.form.get('to', ''),
to=request.form.get('to'),
),
things_you_can_search_by={
'email': ['email address'],