login.component.html 2.79 KB
<div class="ui vertical stripe"></div>
<div class="ui middle aligned grid child">
    <div class="column">
        <div class="ui center aligned page grid">
            <div class="sixteen wide  column">
                <div class="ui left aligned segment">
                    <h3 class="ui dividing header">Login</h3>

                    <div class="ui form">
                        <div class="field">
                            <label for="username">Username:</label>
                            <div class="ui icon input">
                                <input type="text" required placeholder="Email Address or Mobile Number" [(ngModel)]="username" /> <i class="user icon"></i>

                            </div>
                        </div>
                        <div class="field">
                            <div class="ui grid"><div class="six wide column"><label for="password">Password: </label></div><div class="ten wide column"><p style="text-align:right"><label class="ui right floated"><a style="cursor: pointer" (click)="openResetPasswordWindow()">Forgot Password?</a></label></p></div></div>
                            <div class="ui icon input">
                                <input type="password" required placeholder="Password" [(ngModel)]="password" /> <i class="lock icon"></i>

                            </div>
                        </div>
                        <p style="text-align: center"><button class="ui primary button" (click)="login()">Login</button></p>
                        <div class="ui icon negative message" *ngIf="isProcessing || message != ''">
                            <i class="notched circle loading icon" *ngIf="isProcessing"></i>
                            <div class="content">
                                <p>{{message != "" ? message: "Your request is being processed!"}}</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<div class="ui small reset-password modal">
    <i class="close icon"></i>
    <div class="header">
        Reset Your Password
    </div>
    <div class="content">
        <div class="ui form">
            <div class="field">
                <input type="email" placeholder="Enter Your Email Address" required [(ngModel)]="username" />
            </div>
        </div>
        <div *ngIf="isSendingResetPasswordEmail">
            <i class="notched circle loading icon"></i>
            Your request is being processed!
        </div>
        <div *ngIf="resetPasswordMessage != '' && resetPasswordMessage != null">
            {{resetPasswordMessage}}
        </div>
    </div>
    <div class="actions">
        <button class="ui button" (click)="resetPassword()">
            Reset Password
        </button>
    </div>
</div>