LP1807523: Associating labels and inputs in angular fmeditor
[Evergreen.git] / Open-ILS / src / eg2 / src / app / share / date-select / date-select.component.html
1
2 <div class="input-group">
3   <input 
4     class="form-control" 
5     ngbDatepicker
6     #datePicker="ngbDatepicker"
7     [attr.id]="domId.length ? domId : null"
8     placeholder="yyyy-mm-dd"
9     class="form-control"
10     name="{{fieldName}}"
11     [required]="required"
12     [(ngModel)]="current"
13     (dateSelect)="onDateSelect($event)">
14   <div class="input-group-append">
15     <button class="btn btn-outline-secondary" 
16       (click)="datePicker.toggle()" type="button">
17       <span title="Select Date" i18n-title                       
18         class="material-icons mat-icon-in-button">calendar_today</span>
19     </button>
20   </div>
21 </div>
22