login.component.html
2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<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>