change-password.component.html 5.4 KB
<div class="container-fluid">

  <!-- navigation -->
  <nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
      <site-menu></site-menu>
    </div>
  </nav>
  <div class="clearfix"></div>


  <div class="row">
    <!-- main-heading -->
    <div class="col-sm-12 pageHeading">
      <h4>Change Password</h4>
    </div>
    <!-- main-heading -->
    <!-- container -->
    <div class="col-sm-10 col-sm-offset-1 col-md-8 col-md-offset-2 col-lg-6 col-lg-offset-3">
      <div class="container-fluid main-full">
        <div class="row">
          <div class="well">
            <div class="row">
              <div class="col-sm-12">
                <h5 class="text-center text-success"><strong>**To change your profile fill all the text fields carefully.</strong></h5>
                <div class="panel-body">
                  <!-- form -->
                  <form class="form-horizontal" [formGroup]="changePasswordForm" (ngSubmit)="submitForm(changePasswordForm.value)" novalidate>
                    <div class="form-group">
                      <label for="userId" class="col-sm-4 control-label">User Id <span class="red">*</span> :</label>
                      <div class="col-sm-7">
                        <input type="text" class="form-control" formControlName="userId" id="userId" placeholder="Superadmin">
                      </div>
                        <div *ngIf="formErrors.userId" class="alert alert-danger">
                            {{ formErrors.userId }}
                        </div>
                    </div>
                    <div class="form-group">
                      <label for="oldPassword" class="col-sm-4 control-label">Old Password <span class="red">*</span> :</label>
                      <div class="col-sm-7">
                        <input type="password" class="form-control" formControlName="oldPassword" id="oldPassword" placeholder="">
                      </div>
                        <div *ngIf="formErrors.oldPassword" class="alert alert-danger">
                            {{ formErrors.oldPassword }}
                        </div>
                    </div>
                    <div class="form-group">
                      <label for="newPassword" class="col-sm-4 control-label">New Password <span class="red">*</span> :</label>
                      <div class="col-sm-7">
                        <input type="password" class="form-control" formControlName="newPassword" id="newPassword" placeholder="">
                        <span class="help-block">(Minimum 8 characters)</span>
                      </div>
                        <div *ngIf="formErrors.newPassword" class="alert alert-danger">
                            {{ formErrors.newPassword }}
                        </div>
                    </div>
                    <div class="form-group">
                      <label for="confirmPassword" class="col-sm-4 control-label">Confirm Password <span class="red">*</span> :</label>
                      <div class="col-sm-7">
                        <input type="password" class="form-control" formControlName="confirmPassword" id="confirmPassword" placeholder="">
                      </div>
                        <div *ngIf="formErrors.confirmPassword" class="alert alert-danger">
                            {{ formErrors.confirmPassword }}
                        </div>
                    </div>
                    <div class="form-group">
                      <div class="col-sm-offset-4 col-sm-7 mar-top17">
                        <button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#mymodal"><i class="fa fa-check"></i> Update</button>
                        <!--cancel-button-->
                        <div class="modal fade bs-example-modal-sm" tabindex="-1" role="dialog" id="mymodal">
                          <div class="modal-dialog modal-sm" role="document">
                            <div class="modal-content">
                              <div class="modal-header annotation-modal-header ui-draggable-handle">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
                                <h4 class="modal-title" id="">Alert</h4>
                              </div>
                              <div class="modal-body">
                                <h5>Please enter your old password</h5>
                              </div>
                              <div class="modal-footer">
                                <div class="row">
                                  <div class="col-sm-12"><button class="btn btn-primary btn-sm">Ok</button></div>
                                </div>
                              </div>

                            </div><!-- /.modal-content -->
                          </div><!-- /.modal-dialog -->
                        </div><!-- /.modal -->
                        <!--cancel-button-->
                        <button type="submit" class="btn btn-primary btn-sm"><i class="fa fa-close"></i> Cancel</button>
                      </div>

                    </div>
                  </form>
                  <!-- form -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
    <!-- container -->




  </div>

</div>