LP1809288 Angular fm-editor read-only additions
[working/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     [(ngModel)]="selected" 
18     [ngbTypeahead]="filter"
19     [resultTemplate]="displayTemplate"
20     [inputFormatter]="formatter"
21     (click)="click$.next($event.target.value)"
22     (selectItem)="orgChanged($event)"
23     #instance="ngbTypeahead"
24   />
25
26 </ng-container>