diff options
Diffstat (limited to 'client/src/app/login/login.component.html')
-rw-r--r-- | client/src/app/login/login.component.html | 44 |
1 files changed, 40 insertions, 4 deletions
diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html index b61b66ec7..660a08280 100644 --- a/client/src/app/login/login.component.html +++ b/client/src/app/login/login.component.html | |||
@@ -19,10 +19,13 @@ | |||
19 | 19 | ||
20 | <div class="form-group"> | 20 | <div class="form-group"> |
21 | <label for="password">Password</label> | 21 | <label for="password">Password</label> |
22 | <input | 22 | <div> |
23 | type="password" name="password" id="password" placeholder="Password" required | 23 | <input |
24 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" | 24 | type="password" name="password" id="password" placeholder="Password" required |
25 | > | 25 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" |
26 | > | ||
27 | <div class="forgot-password-button" (click)="openForgotPasswordModal()">I forgot my password</div> | ||
28 | </div> | ||
26 | <div *ngIf="formErrors.password" class="form-error"> | 29 | <div *ngIf="formErrors.password" class="form-error"> |
27 | {{ formErrors.password }} | 30 | {{ formErrors.password }} |
28 | </div> | 31 | </div> |
@@ -31,3 +34,36 @@ | |||
31 | <input type="submit" value="Login" [disabled]="!form.valid"> | 34 | <input type="submit" value="Login" [disabled]="!form.valid"> |
32 | </form> | 35 | </form> |
33 | </div> | 36 | </div> |
37 | |||
38 | <div bsModal #forgotPasswordModal="bs-modal" (onShown)="onForgotPasswordModalShown()" class="modal" tabindex="-1"> | ||
39 | <div class="modal-dialog"> | ||
40 | <div class="modal-content"> | ||
41 | |||
42 | <div class="modal-header"> | ||
43 | <span class="close" aria-hidden="true" (click)="hideForgotPasswordModal()"></span> | ||
44 | <h4 class="modal-title">Forgot your password</h4> | ||
45 | </div> | ||
46 | |||
47 | <div class="modal-body"> | ||
48 | <div class="form-group"> | ||
49 | <label for="forgot-password-email">Email</label> | ||
50 | <input | ||
51 | type="email" id="forgot-password-email" placeholder="Email address" required | ||
52 | [(ngModel)]="forgotPasswordEmail" #forgotPasswordEmailInput | ||
53 | > | ||
54 | </div> | ||
55 | |||
56 | <div class="form-group inputs"> | ||
57 | <span class="action-button action-button-cancel" (click)="hideForgotPasswordModal()"> | ||
58 | Cancel | ||
59 | </span> | ||
60 | |||
61 | <input | ||
62 | type="submit" value="Send me an email to reset my password" class="action-button-submit" | ||
63 | (click)="askResetPassword()" [disabled]="!forgotPasswordEmailInput.validity.valid" | ||
64 | > | ||
65 | </div> | ||
66 | </div> | ||
67 | </div> | ||
68 | </div> | ||
69 | </div> | ||