<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" #preferenceForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="preference.id">{{l("EditPreference")}}</span>
                        <span *ngIf="!preference.id">{{l("CreateNewPreference")}}</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="Preference_Code">{{l("Code")}}</label>
									<input type="text" id="Preference_Code" class="form-control" [(ngModel)]="preference.code" name="Code"    />
								</div>
					
								<div class="form-group">
									<label for="Preference_Description">{{l("Description")}}</label>
									<input type="text" id="Preference_Description" class="form-control" [(ngModel)]="preference.description" name="Description"    />
								</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]="!preferenceForm.form.valid" [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i> <span>{{l("Save")}}</span></button>
                </div>
            </form>
        </div>
    </div>

</div>