1 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
3 <form role="form" (ngSubmit)="changePassword()" [formGroup]="form">
5 <label i18n for="new-password">Change password</label>
7 type="password" id="new-password" i18n-placeholder placeholder="New password"
8 formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }"
10 <div *ngIf="formErrors['new-password']" class="form-error">
11 {{ formErrors['new-password'] }}
15 type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password"
16 formControlName="new-confirmed-password"
18 <div *ngIf="formErrors['new-confirmed-password']" class="form-error">
19 {{ formErrors['new-confirmed-password'] }}
22 <input type="submit" i18n-value value="Change password" [disabled]="!form.valid">