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