houdini/app/views/campaigns/_search_for_npo.html.erb
2020-06-15 10:26:57 -05:00

16 lines
656 B
Text

<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<input type='text' placeholder="Type nonprofit name here" class='u-marginBottom--0'>
<!--= on "keyup" (search_nonprofits get_value) -->
<!--= set_value selected_result.name -->
<div class='typeAhead'>
<!--= show_if (length search_results) -->
<ul>
<li>
<!--= repeat search_results -->
<!--= on "click" (select_result.with_click this.i)-->
<!--= if (eq this.i selected_result_index) (select_result.with_arrows this.i) -->
<!--= put this.name -->
</li>
</ul>
</div>