LP#1893463: Protect against null emails
[Evergreen.git] / Open-ILS / src / eg2 / src / app / share / date-select / date-select.component.html
1 <ng-container *ngIf="readOnly">
2   {{initialDate | formatValue:'timestamp'}}
3 </ng-container>
4 <ng-container *ngIf="!readOnly">
5   <div class="input-group eg-date-select form-validated">
6     <input 
7       class="form-control"
8       type="text"
9       ngbDatepicker
10       #datePicker="ngbDatepicker"
11       [attr.id]="domId.length ? domId : null"
12       placeholder="yyyy-mm-dd"
13       class="form-control"
14       container="body"
15       name="{{fieldName}}"
16       [disabled]="disabled"
17       [required]="required"
18       (blur)="propagateTouch(); onDateEnter()"
19       [(ngModel)]="current"
20       (keyup.enter)="onDateEnter()"
21       (dateSelect)="onDateSelect($event)"/>
22     <div class="input-group-append">
23       <button class="btn btn-outline-secondary" [disabled]="disabled"
24         (click)="datePicker.toggle()" type="button">
25         <span title="Select Date" i18n-title
26           class="material-icons mat-icon-in-button">event</span>
27       </button>
28     </div>
29   </div>
30 </ng-container>