mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 18:28:24 -04:00
Make live-search into a component
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
{% from "components/tick-cross.html" import tick_cross %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/live-search.html" import live_search %}
|
||||
|
||||
{% block org_page_title %}
|
||||
Team members
|
||||
@@ -23,12 +24,7 @@
|
||||
|
||||
{% if show_search_box %}
|
||||
<div data-module="autofocus">
|
||||
<div class="live-search" data-module="live-search" data-targets=".user-list-item">
|
||||
{{ textbox(
|
||||
form.search,
|
||||
width='1-1'
|
||||
) }}
|
||||
</div>
|
||||
{{ live_search(target_selector='.user-list-item', show=True, form=form) }}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user