diff options
Diffstat (limited to 'client/src/app/reset-password/reset-password.component.html')
-rw-r--r-- | client/src/app/reset-password/reset-password.component.html | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/client/src/app/reset-password/reset-password.component.html b/client/src/app/reset-password/reset-password.component.html new file mode 100644 index 000000000..d142c523f --- /dev/null +++ b/client/src/app/reset-password/reset-password.component.html | |||
@@ -0,0 +1,33 @@ | |||
1 | <div class="margin-content"> | ||
2 | <div class="title-page title-page-single"> | ||
3 | Reset my password | ||
4 | </div> | ||
5 | |||
6 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | ||
7 | |||
8 | <form role="form" (ngSubmit)="resetPassword()" [formGroup]="form"> | ||
9 | <div class="form-group"> | ||
10 | <label for="password">Password</label> | ||
11 | <input | ||
12 | type="password" name="password" id="password" placeholder="Password" required | ||
13 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" | ||
14 | > | ||
15 | <div *ngIf="formErrors.password" class="form-error"> | ||
16 | {{ formErrors.password }} | ||
17 | </div> | ||
18 | </div> | ||
19 | |||
20 | <div class="form-group"> | ||
21 | <label for="password-confirm">Confirm password</label> | ||
22 | <input | ||
23 | type="password" name="password-confirm" id="password-confirm" placeholder="Confirmed password" required | ||
24 | formControlName="password-confirm" [ngClass]="{ 'input-error': formErrors['password-confirm'] }" | ||
25 | > | ||
26 | <div *ngIf="formErrors['password-confirm']" class="form-error"> | ||
27 | {{ formErrors['password-confirm'] }} | ||
28 | </div> | ||
29 | </div> | ||
30 | |||
31 | <input type="submit" value="Reset my password" [disabled]="!form.valid && isConfirmedPasswordValid()"> | ||
32 | </form> | ||
33 | </div> | ||