cf7b93d80f00eb34b19e65e1612ffa7512a5c0dc
[Evergreen.git] / Open-ILS / src / eg2 / src / app / share / org-select / org-select.component.html
1
2 <!-- todo disabled -->
3 <ng-template #displayTemplate let-r="result">
4 {{r.label}}
5 </ng-template>
6
7 <ng-container *ngIf="readOnly">
8   <span>{{selected.label}}</span>
9 </ng-container>
10
11 <ng-container *ngIf="!readOnly">
12
13   <input type="text" 
14     class="form-control"
15     [attr.id]="domId.length ? domId : null"
16     [placeholder]="placeholder"
17     [disabled]="disabled"
18     [(ngModel)]="selected" 
19     [ngbTypeahead]="filter"
20     [resultTemplate]="displayTemplate"
21     [inputFormatter]="formatter"
22     (click)="click$.next($event.target.value)"
23     (selectItem)="orgChanged($event)"
24     #instance="ngbTypeahead"
25   />
26
27 </ng-container>