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

@@ -10,12 +10,10 @@
{% if show %}
<div data-module="autofocus">
<div class="live-search js-header" data-module="live-search" data-targets="{{ target_selector }}">
{{ textbox(
form.search,
width='1-1',
label=search_label,
autocomplete="off"
) }}
{{ form.search(param_extensions={
"label": {"text": search_label},
"autocomplete": "off"
}) }}
</div>
</div>
{% endif %}