]>
Commit | Line | Data |
---|---|---|
c30745f3 C |
1 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
2 | ||
3 | <form role="form" (ngSubmit)="changePassword()" [formGroup]="form"> | |
d235f6b0 | 4 | |
b1d40cff | 5 | <label i18n for="new-password">Change password</label> |
c30745f3 | 6 | <input |
b1d40cff | 7 | type="password" id="new-password" i18n-placeholder placeholder="New password" |
a2b817d3 | 8 | formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }" |
a94419a6 | 9 | (change)="validateNewPassword()" (blur)="printAnError()" |
c30745f3 | 10 | > |
a2b817d3 | 11 | <div *ngIf="formErrors['new-password']" class="form-error"> |
c30745f3 C |
12 | {{ formErrors['new-password'] }} |
13 | </div> | |
14 | ||
15 | <input | |
b1d40cff | 16 | type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password" |
a94419a6 | 17 | formControlName="new-confirmed-password" (change)="validateNewPassword()" (blur)="printAnError()" |
c30745f3 C |
18 | > |
19 | ||
a94419a6 | 20 | <input type="submit" i18n-value value="Change password" [disabled]="!form.valid || unsendable"> |
c30745f3 | 21 | </form> |