1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-12-16 11:37:13 +02:00
pigallery2/frontend/app/gallery/search/search.gallery.component.html

22 lines
1.0 KiB
HTML
Raw Normal View History

<div class="col-sm-4 col-md-5 pull-right">
2016-05-09 21:43:52 +02:00
<form class="navbar-form" role="search" #SearchForm="ngForm">
<div class="input-group">
2016-05-09 21:43:52 +02:00
<input type="text" class="form-control" placeholder="Search" (keyup)="onSearchChange($event)"
(blur)="onFocusLost($event)" [(ngModel)]="searchText" #name="ngForm" ngControl="search"
name="srch-term" id="srch-term" autocomplete="off" >
<div class="autocomplete-list" *ngIf="autoCompleteItems.length > 0" >
<div class="autocomplete-item" *ngFor="let item of autoCompleteItems">
{{item.preText}}<strong>{{item.highLightText}}</strong>{{item.postText}}
</div>
</div>
<div class="input-group-btn" style="display: block">
2016-05-09 21:43:52 +02:00
<button class="btn btn-default dropdown-toggle" type="button" (click)="onSearch()"><i
class="glyphicon glyphicon-search"></i>
</button>
</div>
</div>
</form>
</div>