]>
Commit | Line | Data |
---|---|---|
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | |
2 | ||
3 | <form role="form" (ngSubmit)="changePassword()" [formGroup]="form"> | |
4 | ||
5 | <label i18n for="current-password">Change password</label> | |
6 | <my-input-text | |
7 | formControlName="current-password" inputId="current-password" i18n-placeholder placeholder="Current password" | |
8 | [formError]="formErrors['current-password']" autocomplete="current-password" | |
9 | ></my-input-text> | |
10 | ||
11 | <my-input-text | |
12 | formControlName="new-password" inputId="new-password" i18n-placeholder placeholder="New password" | |
13 | [formError]="formErrors['new-password']" autocomplete="new-password" | |
14 | ></my-input-text> | |
15 | ||
16 | <my-input-text | |
17 | formControlName="new-confirmed-password" inputId="new-confirmed-password" i18n-placeholder placeholder="Confirm new password" | |
18 | [formError]="formErrors['new-confirmed-password']" autocomplete="new-password" | |
19 | ></my-input-text> | |
20 | ||
21 | <input type="submit" i18n-value value="Change password" [disabled]="!form.valid"> | |
22 | </form> |