Fixed bugs where searchresult did not update, where searchlist got duplicated when...
[u/erikhf/frm.git] / src / components / search / search.html
1 <div id="search">
2
3     <label class="sr-only" for="livesearch">Search</label>
4
5     <form>
6         <div class="row">
7             <input
8                     mou-live-search
9                     (results)="orgunits = $event"
10                     (loading)="loading = $event"
11                     type="text"
12                     autofocus
13                     class="livesearch col-md-10"
14                     name="livesearch"
15                     id="livesearch"
16                     placeholder="Search"
17                     value=""
18                     (change)="checkOrgunits()"/>
19
20
21             <!--<button class="exitsearch" id="exitsearch" (click)="emptyByClick()">
22           &cross; </button>-->
23             <button type="button" class="knapp col-md-2" (click)="toggle()"
24                     data-toggle="collapse" data-target="#dropdown-menu">
25                 {{ visible ? '&xdtri;' : '&cross;' }}
26             </button>
27         </div>
28     </form>
29
30 <span [hidden]="hideDiv()">
31
32
33     <div class="divresult" id="divresult" [hidden]="checkOrgunits()">
34         <ul id="d" class="dropdown-menu result">
35             <li id="c" *ng-for="#orgunit of filteredOrgunits" id="orglist" (click)="getMoreInfo(orgunit)">
36                 <a id="left-menu" href="#">{{orgunit.name}}<br/><span>{{orgunit.lastUpdated}}</span></a>
37             </li>
38         </ul>
39     </div>
40
41 </span>
42
43
44     <ul id="dropdown-menu" class="dropdown-menu">
45         <li><select class="form-control filtervalg" id="ownershipSelector" (click)="setFilter()">
46
47         </select></li>
48         <li><select class="form-control filtervalg" id="typeSelector" (click)="setFilter()">
49
50         </select></li>
51         <li><select class="form-control filtervalg" id="locationSelector" (click)="setFilter()">
52
53         </select></li>
54     </ul>
55
56
57 </div>
58
59
60
61
62