<div bsModal #createOrEditModal="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="createOrEditModal" aria-hidden="true" [config]="{backdrop: 'static'}">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <form *ngIf="active" #routeScheduleDetailForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="routeScheduleDetail.id">{{l("EditRouteScheduleDetail")}}</span>
                        <span *ngIf="!routeScheduleDetail.id">{{l("CreateNewRouteScheduleDetail")}}</span>
                    </h4>
                    <button type="button" class="close" (click)="close()" aria-label="Close" [disabled]="saving">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                 


								<div class="form-group">
									<label for="RouteScheduleDetail_RouteCode">{{l("RouteCode")}} *</label>
									<input type="text" id="RouteScheduleDetail_RouteCode" class="form-control" [(ngModel)]="routeScheduleDetail.routeCode" name="RouteCode"   minlength="1"  maxlength="50"  required/>
								</div>
					
								<div class="form-group">
									<label for="RouteScheduleDetail_EstimatedTimeOfArrival">{{l("EstimatedTimeOfArrival")}}</label>
									 <input required class="form-control m-input" type="datetime" bsDatepicker [(ngModel)]="routeScheduleDetail.estimatedTimeOfArrival._d" id="RouteScheduleDetail_EstimatedTimeOfArrival" name="RouteScheduleDetail_EstimatedTimeOfArrival">
								</div>
					
								<div class="form-group">
									<label for="RouteScheduleDetail_CutOff">{{l("CutOff")}}</label>
									 <input required class="form-control m-input" type="datetime" bsDatepicker [(ngModel)]="routeScheduleDetail.cutOff._d" id="RouteScheduleDetail_CutOff" name="RouteScheduleDetail_CutOff">
								</div>
					
								<br/><div class="m-checkbox-list">
									<label for="RouteScheduleDetail_Automatic" class="kt-checkbox">
										<input id="RouteScheduleDetail_Automatic" type="checkbox" name="Automatic" [(ngModel)]="routeScheduleDetail.automatic"> 
										{{l("Automatic")}}
										<span></span>
									</label>
								</div>
					
								<br/><div class="m-checkbox-list">
									<label for="RouteScheduleDetail_WillCall" class="kt-checkbox">
										<input id="RouteScheduleDetail_WillCall" type="checkbox" name="WillCall" [(ngModel)]="routeScheduleDetail.willCall"> 
										{{l("WillCall")}}
										<span></span>
									</label>
								</div>
					
								<div class="form-group">
									<label for="RouteScheduleDetail_OorRate">{{l("OorRate")}}</label>
									<input type="number" id="RouteScheduleDetail_OorRate" class="form-control" [(ngModel)]="routeScheduleDetail.oorRate" name="OorRate"  />
								</div>
					
								<div class="form-group">
									<label for="RouteScheduleDetail_EffectivityDate">{{l("EffectivityDate")}}</label>
									 <input class="form-control m-input" type="datetime" bsDatepicker [(ngModel)]="effectivityDate" id="RouteScheduleDetail_EffectivityDate" name="RouteScheduleDetail_EffectivityDate">
								</div>
					
								<div class="form-group">
									<label for="RouteScheduleDetail_RouteScheduleId">{{l("RouteScheduleId")}}</label>
									<input type="number" id="RouteScheduleDetail_RouteScheduleId" class="form-control" [(ngModel)]="routeScheduleDetail.routeScheduleId" name="RouteScheduleId"  />
								</div>
					
								<div class="form-group">
									<label for="RouteScheduleDetail_RouteTypeId">{{l("RouteTypeId")}}</label>
									<input type="number" id="RouteScheduleDetail_RouteTypeId" class="form-control" [(ngModel)]="routeScheduleDetail.routeTypeId" name="RouteTypeId"  />
								</div>
					

                </div>
                <div class="modal-footer">
                    <button [disabled]="saving" type="button" class="btn btn-default" (click)="close()">{{l("Cancel")}}</button>
                    <button type="submit" class="btn btn-primary blue" [disabled]="!routeScheduleDetailForm.form.valid" [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i> <span>{{l("Save")}}</span></button>
                </div>
            </form>
        </div>
    </div>

</div>