<div bsModal #modalEdit="bs-modal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="modal" aria-hidden="true" [config]="{backdrop: 'static'}">
    <div class="modal-dialog modal-md">
        <div class="modal-content">
            <form *ngIf="active" #postalCodeForm="ngForm" novalidate (ngSubmit)="save()">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span>{{"CreateNewPostalCode" | localize}}</span>
                    </h4>
                    <button type="button" class="close" (click)="close()" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <div class="form-group">
                        <label>{{"PostalCode" | localize}}</label>
                        <input class="form-control" type="text" name="postalcode" [(ngModel)]="postalCodes.value" required maxlength="32">
                        <br>
                        <label>{{"Country" | localize}}</label>
                        <input class="form-control" type="text" name="country" [(ngModel)]="postalCodes.country" required maxlength="32">
                        <br>
                        <label>{{"City" | localize}}</label>
                        <input class="form-control" type="text" name="city" [(ngModel)]="postalCodes.city" required maxlength="32">
                        <br>
                        <label>{{"State" | localize}}</label>
                        <input class="form-control" type="text" name="state" [(ngModel)]="postalCodes.state" required maxlength="32">
                    </div>
                </div>
                <div class="modal-footer">
                    <button [disabled]="saving" type="button" class="btn btn-secondary btn-elevate btn-pill" (click)="close()">{{"Cancel" | localize}}</button>
                    <button type="submit" class="btn btn-primary btn-elevate btn-pill" [disabled]="!postalCodeForm.form.valid" [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot' | localize)"><i class="fa fa-save"></i> <span>{{"Save" | localize}}</span></button>
                </div>
            </form>
        </div>
    </div>
</div>