]>
Commit | Line | Data |
---|---|---|
c30745f3 C |
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
2 | ||
a890d1e0 | 3 | <form role="form" (ngSubmit)="changePassword()" [formGroup]="form"> |
d235f6b0 | 4 | |
0ba5f5ba | 5 | <label i18n for="current-password">Change password</label> |
75084782 C |
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> | |
3805ce3f | 10 | |
75084782 C |
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> | |
c30745f3 | 15 | |
75084782 C |
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> | |
c30745f3 | 20 | |
b0ee41df | 21 | <input type="submit" i18n-value value="Change password" [disabled]="!form.valid"> |
c30745f3 | 22 | </form> |