Added a filter method in livesearch
[u/erikhf/frm.git] / src / components / search / search.html
CommitLineData
42930dd2 1<div class="search clearfix">
21341a61
EHF
2 <label class="sr-only" for="livesearch">Search</label>
3 <input
4 mou-live-search
5 (results)="orgunits = $event"
6 (loading)="loading = $event"
7 type="text"
8 autofocus
42930dd2 9 class="form-control"
21341a61
EHF
10 id="livesearch">
11 <img [hidden]="!loading"
12 src="https://www.brown.edu/sites/default/themes/pawtuxet/img/loader-larger.gif">
42930dd2
EHF
13
14 <div [hidden]="!orgunits.length">
15 <ul class="results" >
16 <li *ng-for="#orgunit of orgunits" (click)="getMoreInfo(orgunit)">
17 <a href="#">{{orgunit.name}}<br/><span>{{orgunit.lastUpdated}}</span></a>
18 </li>
19 </ul>
20 </div>
21341a61 21</div>