Map position is updated live
[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
431ff5c5
YF
19
20 <div class="divresult" id="divresult" [hidden]="checkOrgunits()" >
21 <ul class="dropdown-menu result">
22 <li *ng-for="#orgunit of filteredOrgunits" id="orglist" (click)="getMoreInfo(orgunit)" >
5bc68022
RM
23 <a href="#">{{orgunit.name}}<br/><span>{{orgunit.lastUpdated}}</span></a>
24 </li>
25 </ul>
26 </div>
27
1aec1256 28
4c04388b 29
431ff5c5
YF
30<!--
31<a var-unit id="testunit" (click)="getMoreInfo(unit.id)" href="#"></a>
32*ng-for="#orgunit of filteredOrgunits"
33<a href="#">{{orgunit.name}}<br/><span>{{orgunit.lastUpdated}}</span></a>
34(click)="getMoreInfo(orgunit)"
35-->
36
21341a61 37</div>
5bc68022 38
1aec1256
RM
39<button type="button" class="knapp" data-toggle="collapse" data-target="#dropdown-menu">
40
33e62f7e 41
1aec1256
RM
42 <!--pil opp og ned-->
43
44 <div class="zippy">
45 <div (click)="toggle()" class="zippy__title">
46 {{ visible ? '&xdtri;' : '&xutri;' }} {{title}}
47 </div>
48 <div [hidden]="!visible" class="zippy__content">
49 <content></content>
50 </div>
51 </div>
52
53</button>
5bc68022
RM
54
55<div>
56<ul id="dropdown-menu" class="dropdown-menu">
b486567f 57 <li><select class="form-control filtervalg" id="ownershipSelector" (click)="setFilter()">
5cc1f6d0 58
7f3e9674 59 </select></li>
b486567f 60 <li><select class="form-control filtervalg" id="typeSelector" (click)="setFilter()">
5cc1f6d0 61
7f3e9674 62 </select></li>
b486567f 63 <li><select class="form-control filtervalg" id="locationSelector" (click)="setFilter()">
5cc1f6d0 64
7f3e9674 65 </select></li>
5bc68022
RM
66</ul>
67
68</div>
69