<div bsModal #createOrEditModal="bs-modal" (onShown)="onShown()" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="createOrEditModal" aria-hidden="true" [config]="{backdrop: 'static', keyboard: !saving}">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <form *ngIf="active" #userForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span>{{"OrderStatusTypeCreate" | localize}}</span>
                    </h4>
                    <button type="button" class="close" (click)="close()" [attr.aria-label]="l('Close')" [disabled]="saving">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
    
                    <div class="form-group">
                        <label for="Code">{{"Code" | localize}} *</label>
                        <input id="Code" #code="ngModel" type="email" name="Code" class="form-control" [(ngModel)]="orderStatusType.code" required/>
                        <validation-messages [formCtrl]="code"></validation-messages>
                    </div>

                    <div class="form-group">
                        <label for="Description">{{"Description" | localize}}</label>
                        <input id="Description" type="text" name="Description" class="form-control" [(ngModel)]="orderStatusType.description">
                    </div>

                    <div class="form-group">
                        <label for="SortOrder">{{"SortOrder" | localize}} *</label>
                        <input id="SortOrder" #sortOrder="ngModel" type="text" name="SortOrder" class="form-control" [(ngModel)]="orderStatusType.sortOrder" required>
                        <validation-messages [formCtrl]="sortOrder"></validation-messages>
                    </div>

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