]>
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> |
3805ce3f | 6 | <input |
a890d1e0 C |
7 | type="password" id="current-password" i18n-placeholder placeholder="Current password" |
8 | formControlName="current-password" [ngClass]="{ 'input-error': formErrors['current-password'] }" | |
3805ce3f | 9 | > |
a890d1e0 C |
10 | <div *ngIf="formErrors['current-password']" class="form-error"> |
11 | {{ formErrors['current-password'] }} | |
3805ce3f B |
12 | </div> |
13 | ||
c30745f3 | 14 | <input |
b1d40cff | 15 | type="password" id="new-password" i18n-placeholder placeholder="New password" |
a2b817d3 | 16 | formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }" |
c30745f3 | 17 | > |
a2b817d3 | 18 | <div *ngIf="formErrors['new-password']" class="form-error"> |
c30745f3 C |
19 | {{ formErrors['new-password'] }} |
20 | </div> | |
21 | ||
22 | <input | |
b1d40cff | 23 | type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password" |
b0ee41df | 24 | formControlName="new-confirmed-password" |
c30745f3 | 25 | > |
b0ee41df C |
26 | <div *ngIf="formErrors['new-confirmed-password']" class="form-error"> |
27 | {{ formErrors['new-confirmed-password'] }} | |
28 | </div> | |
c30745f3 | 29 | |
b0ee41df | 30 | <input type="submit" i18n-value value="Change password" [disabled]="!form.valid"> |
c30745f3 | 31 | </form> |