]>
Commit | Line | Data |
---|---|---|
af5e743b C |
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
2 | ||
3 | <form role="form" (ngSubmit)="changePassword()" [formGroup]="form"> | |
4 | <div class="form-group"> | |
5 | <label for="new-password">New password</label> | |
6 | <input | |
7 | type="password" class="form-control" id="new-password" | |
8 | formControlName="new-password" | |
9 | > | |
10 | <div *ngIf="formErrors['new-password']" class="alert alert-danger"> | |
11 | {{ formErrors['new-password'] }} | |
12 | </div> | |
13 | </div> | |
14 | ||
15 | <div class="form-group"> | |
16 | <label for="name">Confirm new password</label> | |
17 | <input | |
18 | type="password" class="form-control" id="new-confirmed-password" | |
19 | formControlName="new-confirmed-password" | |
20 | > | |
21 | </div> | |
22 | ||
23 | <input type="submit" value="Change password" class="btn btn-default" [disabled]="!form.valid"> | |
24 | </form> |