<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" #tagForm="ngForm" novalidate (ngSubmit)="save()" autocomplete="off">
                <div class="modal-header">
                    <h4 class="modal-title">
                        <span *ngIf="tag.id">{{l("EditTag")}}</span>
                        <span *ngIf="!tag.id">{{l("CreateNewTag")}}</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="Tag_TagTypeId">{{l("TagTypeId")}}</label>
                                    <!-- <input type="number" id="Tag_TagTypeId" class="form-control" [(ngModel)]="tag.tagTypeId" name="TagTypeId"  /> -->
                                    <select class="form-control kt-select2" id="selectTagType" data-placeholder="Select City" name="selectPreview" >
                                            <!-- <option value="0">Select Tag Type</option> -->
                                            <option *ngFor="let tagType of filteredTagType"  [(value)]="tagType.id" [selected]="tagType.id == tag.tagTypeId">
                                                {{tagType.name}}
                                            </option>
                                    </select>
								</div>
					
								<div class="form-group">
									<label for="Tag_Name">{{l("Name")}} *</label>
									<input type="text" id="Tag_Name" class="form-control" [(ngModel)]="tag.name" name="Name"   minlength="1"  maxlength="32"  required/>
								</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]="!tagForm.form.valid" [buttonBusy]="saving" [busyText]="l('SavingWithThreeDot')"><i class="fa fa-save"></i> <span>{{l("Save")}}</span></button>
                </div>
            </form>
        </div>
    </div>

</div>