semi working live search
[u/erikhf/frm.git] / src / components / search / search.html
CommitLineData
690e4045
EHF
1
2 <section class="form-group">
6e8d36df 3 <label class="sr-only" for="livesearch">Search</label>
690e4045
EHF
4 <input
5 mou-live-search
6 (results)="orgunits = $event"
7 (loading)="loading = $event"
8 type="text"
9 autofocus
10 id="livesearch">
11 <img style="width: 20px; position: absolute;"
12 [hidden]="!loading"
13 src="https://www.brown.edu/sites/default/themes/pawtuxet/img/loader-larger.gif">
14 </section>
15 <section>
16 <div *ng-for="#orgunit of orgunits" style="padding: 0.5em 0.5em 0.5em 0;">
17 <p>{{orgunit.name}}</p>
18 </div>
19 </section>