Make live-search into a component

This commit is contained in:
Tom Byers
2018-08-15 20:13:49 +01:00
parent 71be0eaeb4
commit 47798b218c
7 changed files with 31 additions and 31 deletions

View File

@@ -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 %}