unblockuser.component.html 3.06 KB
<div class="row">
  <div class="col-sm-12 pageHeading">
    <h4>Unblock User</h4>
  </div>
  <div>
    <ng-template #template>
      <div class="modal-header">
        <h4 class="modal-title pull-left">Confirmation</h4>
        <button type="button" class="close pull-right" aria-label="Close" (click)="modalRef.hide()">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body">
        <p>Are you sure to unblock the selected user(s)?</p>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary btn-sm" (click)="UpdateUnBlockedUsers()">Yes</button>
        <button type="button" class="btn btn-primary btn-sm" (click)="modalRef.hide()">No</button>
      </div>
    </ng-template>
  </div>
  <ng-template #templatesuccess>
    <div class="modal-header">
      <h4 class="modal-title pull-left">Confirmation</h4>
      <button type="button" class="close pull-right" aria-label="Close" (click)="modalRef.hide()">
        <span aria-hidden="true">&times;</span>
      </button>
    </div>
    <div class="modal-body" [innerHTML]="modalAlerts">
    </div>
    <div class="modal-footer">
    </div>
  </ng-template>
  <div class="col-sm-12">

    <div class="container-fluid main-full">
      <div class="row">
        <div class="well marginBtm12" novalidate [formGroup]="UnBlockedUserFrm">
          <!--first-table-->
          <div class="table-responsive blue">
            <table class="table table-condensed table-bordered margin-btm0 table-striped table-hover">
              <thead>
                <tr>
                  <th>Select</th>
                  <th>First Name</th>
                  <th>Last Name</th>
                  <th>User ID</th>
                  <th>Password</th>
                  <th>Email ID</th>
                  <th>Blocked Date</th>
                  <th>Account Number</th>
                </tr>
              </thead>
              <tbody>
                <tr *ngFor="let UserEntity of UserList;let i = index">
                  <td>
                    <input type="checkbox" (change)="onChange(i, UserEntity.Id, $event.target.checked)">
                  </td>
                  <td>{{UserEntity.FirstName}}</td>
                  <td>{{UserEntity.LastName}}</td>
                  <td>{{UserEntity.LoginId}}</td>
                  <td>{{UserEntity.Password}}</td>
                  <td>{{UserEntity.EmailId}}</td>
                  <td>{{UserEntity.LoginTime| date: 'MM/dd/yyyy'}}</td>
                  <td>{{UserEntity.AccountNumber}}</td>
                </tr>

              </tbody>
            </table>
          </div>

          <!--first-table-->

          <div class="row">
            <div class="col-sm-12 marginTop20 text-center">
              <button class="btn btn-primary btn-sm" (click)="openModal(template)"><i class="fa fa-times-circle"></i> Unblock</button>
              <button class="btn btn-primary btn-sm"><i class="fa fa-close"></i> Cancel</button>
            </div>
          </div>
          <!--tab-content-->
        </div>
      </div>

    </div>
  </div>
</div>