Added message for no result when searching
[u/erikhf/frm.git] / src / components / search / search.html
CommitLineData
3562820e 1<div id="search">
5bc68022
RM
2
3 <label class="sr-only" for="livesearch">Search</label>
4
f800869b
EHF
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"
27cd7c38 17 value=""/>
f800869b
EHF
18
19
20 <!--<button class="exitsearch" id="exitsearch" (click)="emptyByClick()">
21 &cross; </button>-->
22 <button type="button" class="knapp col-md-2" (click)="toggle()"
f800869b
EHF
23 data-toggle="collapse" data-target="#dropdown-menu">
24 {{ visible ? '&xdtri;' : '&cross;' }}
25 </button>
26 </div>
27 </form>
5bc68022 28
18709ba8 29<span [hidden]="hideDiv()">
5bc68022 30
431ff5c5 31
f800869b 32 <div class="divresult" id="divresult" [hidden]="checkOrgunits()">
cf28de25 33 <ul id="d" class="dropdown-menu result">
f800869b 34 <li id="c" *ng-for="#orgunit of filteredOrgunits" id="orglist" (click)="getMoreInfo(orgunit)">
3562820e 35 <a id="left-menu" href="#">{{orgunit.name}}<br/><span>{{orgunit.lastUpdated}}</span></a>
5bc68022 36 </li>
27cd7c38
YF
37 <li *ng-if="filteredOrgunits.length == 0">
38 No matching results
39 </li>
5bc68022
RM
40 </ul>
41 </div>
42
18709ba8 43</span>
1aec1256 44
4c04388b 45
f800869b
EHF
46 <ul id="dropdown-menu" class="dropdown-menu">
47 <li><select class="form-control filtervalg" id="ownershipSelector" (click)="setFilter()">
1aec1256 48
f800869b
EHF
49 </select></li>
50 <li><select class="form-control filtervalg" id="typeSelector" (click)="setFilter()">
33e62f7e 51
f800869b
EHF
52 </select></li>
53 <li><select class="form-control filtervalg" id="locationSelector" (click)="setFilter()">
1aec1256 54
f800869b
EHF
55 </select></li>
56 </ul>
1aec1256 57
5bc68022 58
5bc68022 59</div>
5cc1f6d0 60
5cc1f6d0 61
5cc1f6d0 62
5bc68022 63
5bc68022 64