<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" #orderStatusTypeForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="orderStatusType.id">{{l("EditOrderStatusType")}}</span>
                        <span *ngIf="!orderStatusType.id">{{l("CreateNewOrderStatusType")}}</span>
                    </h4>
                    <button type="button" class="close btn-pill" (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="OrderStatusType_Code">{{l("Code")}}</label>
									<input type="text" id="OrderStatusType_Code" class="form-control" [(ngModel)]="orderStatusType.code" name="Code"   minlength="1"  maxlength="32" />
								</div>
					
								<div class="form-group">
									<label for="OrderStatusType_Description">{{l("Description")}}</label>
									<input type="text" id="OrderStatusType_Description" class="form-control" [(ngModel)]="orderStatusType.description" name="Description"   minlength="1"  maxlength="255" />
								</div>
					
								<div class="form-group">
									<label for="OrderStatusType_SortOrder">{{l("SortOrder")}}</label>
									<input type="number" id="OrderStatusType_SortOrder" class="form-control" [(ngModel)]="orderStatusType.sortOrder" name="SortOrder"  />
								</div>
					

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

</div>