]> git.uio.no Git - u/erikhf/frm.git/blame - src/components/search/search.html
Added auto filling in filter selectors
[u/erikhf/frm.git] / src / components / search / search.html
CommitLineData
5bc68022
RM
1<div id="search" >
2
3 <label class="sr-only" for="livesearch">Search</label>
4
5 <input mou-live-search
6 (results)="orgunits = $event"
7 (loading)="loading = $event"
8 type="text"
9 autofocus
10 class="livesearch"
11 name="livesearch"
12 id="livesearch"
4c04388b
RM
13 placeholder="Search"
14 />
1aec1256 15 <img class="loadingpic" [hidden]="!loading"
5bc68022
RM
16 src="https://www.brown.edu/sites/default/themes/pawtuxet/img/loader-larger.gif">
17
18
4c04388b 19 <div class="divresult" id="divresult" [hidden]="!orgunits.length">
5bc68022
RM
20 <ul class="dropdown-menu result" >
21 <li *ng-for="#orgunit of orgunits" (click)="getMoreInfo(orgunit)">
22 <a href="#">{{orgunit.name}}<br/><span>{{orgunit.lastUpdated}}</span></a>
23 </li>
24 </ul>
25 </div>
26
1aec1256 27
4c04388b 28
21341a61 29</div>
5bc68022 30
1aec1256
RM
31<button type="button" class="knapp" data-toggle="collapse" data-target="#dropdown-menu">
32
33e62f7e 33
1aec1256
RM
34 <!--pil opp og ned-->
35
36 <div class="zippy">
37 <div (click)="toggle()" class="zippy__title">
38 {{ visible ? '&xdtri;' : '&xutri;' }} {{title}}
39 </div>
40 <div [hidden]="!visible" class="zippy__content">
41 <content></content>
42 </div>
43 </div>
44
45</button>
5bc68022
RM
46
47<div>
48<ul id="dropdown-menu" class="dropdown-menu">
b486567f 49 <li><select class="form-control filtervalg" id="ownershipSelector" (click)="setFilter()">
5cc1f6d0 50
7f3e9674 51 </select></li>
b486567f 52 <li><select class="form-control filtervalg" id="typeSelector" (click)="setFilter()">
5cc1f6d0 53
7f3e9674 54 </select></li>
b486567f 55 <li><select class="form-control filtervalg" id="locationSelector" (click)="setFilter()">
5cc1f6d0 56
7f3e9674 57 </select></li>
5bc68022
RM
58</ul>
59
60</div>
61