mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-06-04 13:30:02 -04:00
Changes those fields in the following forms: - SearchByNameForm - SearchUsersByEmailForm - SearchUsersForm - SearchNotificationsForm Includes changes to templates that use this form and associated tests.
21 lines
573 B
HTML
21 lines
573 B
HTML
{% from "components/textbox.html" import textbox %}
|
|
|
|
{% macro live_search(
|
|
target_selector=None,
|
|
show=False,
|
|
form=None,
|
|
label=None
|
|
) %}
|
|
{%- set search_label = label or form.search.label.text %}
|
|
{% if show %}
|
|
<div data-module="autofocus">
|
|
<div class="live-search js-header" data-module="live-search" data-targets="{{ target_selector }}">
|
|
{{ form.search(param_extensions={
|
|
"label": {"text": search_label},
|
|
"autocomplete": "off"
|
|
}) }}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endmacro %}
|