2019-04-24 11:26:53 +02:00
|
|
|
<form class="navbar-form">
|
|
|
|
<div class="input-group input-search">
|
2019-04-25 11:03:22 +02:00
|
|
|
<input type="text" value="" class="form-control" placeholder="{{ 'DASHBOARD.SEARCH' | translate }}"
|
|
|
|
[formControl]="searchControl" [matAutocomplete]="auto">
|
2019-04-24 11:26:53 +02:00
|
|
|
<button type="submit" class="btn btn-link"><i class="material-icons">search</i></button>
|
|
|
|
</div>
|
2019-04-25 11:03:22 +02:00
|
|
|
<mat-autocomplete autoActiveFirstOption #auto="matAutocomplete" (optionSelected)="onOptionSelected($event)">
|
|
|
|
<mat-option *ngFor="let option of (filteredOptions | async)" [value]="option" class="option">
|
2019-04-24 11:26:53 +02:00
|
|
|
<span>{{ option.label }}</span>
|
|
|
|
<br />
|
2020-01-03 15:52:27 +01:00
|
|
|
<small>{{ transformType(option.type, option.isPublished) }}</small>
|
2019-04-24 11:26:53 +02:00
|
|
|
</mat-option>
|
|
|
|
</mat-autocomplete>
|
|
|
|
</form>
|