<div bsModal #createModal="bs-modal" (onShown)="onShown()" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="createModal"
     aria-hidden="true" [config]="{backdrop: 'static', keyboard: !saving}">
    <div class="modal-dialog modal-md">

        <div class="modal-content">

            <form #userLocationCreateForm="ngForm" role="form" novalidate class="form-validation" *ngIf="active" (submit)="save()">
                <div class="modal-header">
                    <h5 class="modal-title">
                        <span>{{"CreateUserLocation" | localize}}</span>
                    </h5>
                    <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">
                          <!-- <p-autoComplete [(ngModel)]="locationInput"
                                          id="locationSelectInput"
                                          [suggestions]="location"
                                          (completeMethod)="filterLocations($event)"
                                          field="name"
                                          dataKey="id"
                                          placeholder="Enter Location"
                                          [minLength]="1"
                                          name="LocationSelectInput"
                                          styleClass="width-percent-100"
                                          [style]="{'width':'100%'}"
                                          [inputStyle]="{'width':'95%','height':'33px'}"
                                          [dropdown]="true">
                                          >
                          </p-autoComplete> -->

                          <select class="form-control kt-select2" data-placeholder="Select Location" id="locationSelectInput" name="locationSelectInput" tabindex="-1" aria-hidden="true">
                              <option></option>
                              <option  *ngFor="let location of locations" value="{{location.id}}">{{location.name}}</option>
                          </select>
                          <!-- <validation-messages [formCtrl]="TimeZoneSelectInput"></validation-messages> -->
                      </div>
                      <div class="form-group">
                         <!--  <p-autoComplete [(ngModel)]="userInput"
                                          id="UserSelectInput"
                                          [suggestions]="user"
                                          (completeMethod)="filterUsers($event)"
                                          field="name"
                                          dataKey="id"
                                          placeholder="Enter User"
                                          [minLength]="1"
                                          name="UserSelectInput"
                                          styleClass="width-percent-100"
                                          [style]="{'width':'100%'}"
                                          [inputStyle]="{'width':'95%','height':'33px'}"
                                          [dropdown]="true">
                                          >
                          </p-autoComplete> -->
                          <select class="form-control kt-select2" data-placeholder="Select User" id="userSelectInput" name="userSelectInput" tabindex="-1" aria-hidden="true">
                              <option></option>
                              <option  *ngFor="let user of users" value="{{user.id}}">{{user.name}}</option>
                          </select>
                          <!-- <validation-messages [formCtrl]="TimeZoneSelectInput"></validation-messages> -->
                      </div>
                    
                    
                 

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