<div class="control-section" >
<!-- <div class="col-lg-12 content-wrapper"> -->
<ejs-schedule #scheduleObj cssClass='timeline-resource-grouping' [selectedDate]="selectedDate" [group]="group"
[eventSettings]="eventSettings" [firstDayOfWeek]='1' (actionComplete)="onAction($event)"
(popupOpen)="onPopupOpen($event)" (resizeStop)="onResizeStop($event)" (dragStop)="onDragStop($event)"
(eventRendered)="eventRendered($event)" (actionBegin)="onActionBegin($event)" (navigating)="onNavigate($event)"
[(currentView)]="currentView">
<ng-template #editorTemplate let-data>
<table *ngIf="data !== undefined" class='custom-event-editor' cellpadding='5'>
<tbody>
<tr>
<td class='e-textlabel'>Title</td>
<td class='e-textlabel'>Location</td>
</tr>
<tr>
<td>
<input id="Subject" class="e-field e-input" type="text" [(ngModel)]="data.Subject" (ngModelChange)='validateSubject($event)' data-name="Subject" />
<input type="hidden" name="Id" data-name="Id" class="e-field" [(ngModel)]="data.Id" />
</td>
<td>
<ejs-dropdownlist id="EntityId" class="e-field" data-name="EntityId" [dataSource]='entityDataSource'
[(ngModel)]="data.EntityId" [fields]='dropDownFieldsMapping'></ejs-dropdownlist>
</td>
</tr>
<tr>
<td colspan="2">
<div id='RecurrenceEditor'></div>
</td>
</tr>
<tr>
<td class='e-textlabel'>Start</td>
<td class='e-textlabel'>End</td>
</tr>
<tr>
<td>
<ejs-datetimepicker #startTimePicker id="StartTime" class="e-field" data-name="StartTime"
format="dd.MM.yyyy H:mm" [(ngModel)]='data.startTime || data.StartTime' [firstDayOfWeek]='1'
timeFormat="HH:mm" (change)='AppointmentTimeSelectionChanged($event)'></ejs-datetimepicker>
</td>
<td>
<ejs-datetimepicker #endTimePicker id="EndTime" class="e-field" data-name="EndTime"
format="dd.MM.yyyy H:mm" [(ngModel)]='data.endTime || data.EndTime' [firstDayOfWeek]='1'
timeFormat="HH:mm" (change)='AppointmentTimeSelectionChanged($event)'></ejs-datetimepicker>
</td>
</tr>
<tr>
<td>
<ejs-checkbox id="IsAllDay" class="e-field" label="All day" data-name="IsAllDay"
[(ngModel)]="data.IsAllDay"></ejs-checkbox>
</td>
</tr>
<tr>
<td class='e-textlabel' colspan="2">Booker</td>
</tr>
<tr>
<td colspan="2">
<ejs-dropdownlist id="BookerEntityId" class="e-field" data-name="BookerEntityId"
[dataSource]='bookerList' [(ngModel)]='data.BookerEntityId' [fields]='bookerFieldsMapping'>
</ejs-dropdownlist>
</td>
</tr>
<tr>
<td class='e-textlabel' colspan="2">Description</td>
</tr>
<tr>
<td colspan="2">
<textarea id="Description" class="e-field e-input" data-name="Description" rows="3" cols="50"
[(ngModel)]="data.Description"
style="width: 100%; height: 60px !important; resize: vertical"></textarea>
</td>
</tr>
</tbody>
</table>
</ng-template>
<e-resources>
<e-resource field='GroupId' title='Group' [dataSource]='groupDataSource' [allowMultiple]='false' name='Entities'
textField='text' idField='id'>
</e-resource>
<e-resource field='EntityId' title='Room' [dataSource]='entityDataSource' [allowMultiple]='false' name='Groups'
textField='text' idField='id' groupIDField='groupId' startHourField='startHour' endHourField='endHour'>
</e-resource>
</e-resources>
<e-views>
<e-view option="TimelineDay" displayName="Day" [allowVirtualScrolling]="virtualScroll"></e-view>
<e-view option="TimelineWeek" displayName="Week" [allowVirtualScrolling]="virtualScroll"></e-view>
<!-- <e-view option="Month" displayName="Month"></e-view> -->
<e-view option="Agenda"></e-view>
</e-views>
</ejs-schedule>
<!-- </div> -->
</div>