<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" #routeTypeForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="routeType.id">{{l("EditRouteType")}}</span>
                        <span *ngIf="!routeType.id">{{l("CreateNewRouteType")}}</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="RouteType_RouteTypeCode">{{l("RouteTypeCode")}} *</label>
									<input type="text" id="RouteType_RouteTypeCode" class="form-control" [(ngModel)]="routeType.routeTypeCode" name="RouteTypeCode"   minlength="1"  maxlength="10"  required/>
								</div>
					
								<div class="form-group">
									<label for="RouteType_Description">{{l("Description")}} *</label>
									<input type="text" id="RouteType_Description" class="form-control" [(ngModel)]="routeType.description" name="Description"   minlength="1"  maxlength="255"  required/>
								</div>
					
								<div class="form-group">
									<label for="RouteType_DisplayColor">{{l("DisplayColor")}} *</label>
									<!-- <input type="text" id="RouteType_DisplayColor" class="form-control" [(ngModel)]="routeType.displayColor" name="DisplayColor"   minlength="1"  maxlength="16"  required/> -->
                                    <br>
                                    <p-colorPicker #color="ngModel" [(ngModel)]="routeType.displayColor" id="RouteType_DisplayColor"  required name="DisplayColor" ></p-colorPicker>
								</div>
					

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

</div>