<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" #packageForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="package.id">{{l("EditPackage")}}</span>
                        <span *ngIf="!package.id">{{l("CreateNewPackage")}}</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="Package_Name">{{l("Name")}} *</label>
                        <input type="text" id="Package_Name" class="form-control" [(ngModel)]="package.name" name="Name"
                            minlength="1" maxlength="50" required /><br>
                        <div class="form-group">
                            <label for="Package_Name">{{l("Price")}} *</label>
                            <input type="number" id="Package_Price" class="form-control" [(ngModel)]="package.price"
                                name="Price" required />
                        </div>
                    </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]="!packageForm.form.valid"
                        [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i>
                        <span>{{l("Save")}}</span></button>
                </div>
            </form>
        </div>
    </div>

</div>