change-user-id.component.html 6.81 KB
<div class="container-fluid">

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

    <div class="clearfix"></div>


    <div class="row">
        <!-- main-heading -->
        <div class="col-sm-12 pageHeading">
            <h4>Change User ID</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 user ID fill all the text fields carefully.</strong></h5>
                                <div class="panel-body">
                                    <!-- form -->
                                    <form class="form-horizontal" [formGroup]="changeUserIdForm" novalidate>
                                        <!--submitForm(changeUserIdForm.value) (ngSubmit)="getUserDetailsByIdandLoginId(changeUserIdForm.valid)"    #changeUserIdForm="ngForm" --> <!--updateUserID(changeUserIdForm.value, changeUserIdForm.valid)-->
                                        <div class="form-group">
                                            <label for="oldUserId" class="col-sm-4 control-label">Old User Id <span class="red">*</span> :</label>
                                            <div class="col-sm-7">
                                                <input type="text" class="form-control" formControlName="oldUserId" id="oldUserId" [ngModel]="oldUserId" placeholder="">
                                            </div><div>{{oldUserId}}</div>
                                            <div *ngIf="formErrors.oldUserId" class="alert alert-danger">
                                                {{ formErrors.oldUserId }}
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="newUserId" class="col-sm-4 control-label">New User Id <span class="red">*</span> :</label>
                                            <div class="col-sm-7">
                                                <input class="form-control" formControlName="newUserId" id="newUserId" placeholder="" [ngModel]="newUserId" reverse="true">
                                                <span class="help-block">(Minimum 8 characters)</span>
                                            </div><div>{{newUserId}}</div>
                                            <div *ngIf="formErrors.newUserId" class="alert alert-danger">
                                                {{ formErrors.newUserId }}
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label for="confirmUserId" class="col-sm-4 control-label">Confirm User Id <span class="red">*</span> :</label>
                                            <div class="col-sm-7">
                                                <input class="form-control" formControlName="confirmUserId" id="confirmUserId" placeholder="" [ngModel]="confirmUserId" validateEqual="newUserId">
                                            </div><div>{{confirmUserId}}</div>
                                            <div *ngIf="formErrors.confirmUserId" class="alert alert-danger">
                                                {{ formErrors.confirmUserId }}
                                            </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" (click)="getUserDetailsByIdandLoginId()" [disabled]="!changeUserIdForm.valid"><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 user ID.</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>