aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/search/search.component.html
blob: b3afc95980587563a58517a497b3106238704199 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<div class="input-group">
  <div class="input-group-btn" dropdown>
    <button id="simple-btn-keyboard-nav" type="button" class="btn btn-default" dropdownToggle>
      {{ getStringChoice(searchCriterias.field) }} <span class="caret"></span>
    </button>
    <ul class="dropdown-menu" role="menu" aria-labelledby="simple-btn-keyboard-nav" dropdownMenu>
      <li *ngFor="let choice of choiceKeys" class="dropdown-item" role="menu-item">
        <a class="dropdown-item" href="#" (click)="choose($event, choice)">{{ getStringChoice(choice) }}</a>
      </li>
    </ul>
  </div>

  <input
    type="text" id="search-video" name="search-video" class="form-control" placeholder="Search a video..." class="form-control"
    [(ngModel)]="searchCriterias.value" (keyup.enter)="doSearch()"
  >
</div>