<div *ngIf="error" class="alert alert-danger">{{ error }}</div>

<form role="form" (ngSubmit)="changePassword()" [formGroup]="form">

  <label i18n for="new-password">Change password</label>
  <input
    type="password" id="new-password" i18n-placeholder placeholder="New password"
    formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }"
  >
  <div *ngIf="formErrors['new-password']" class="form-error">
    {{ formErrors['new-password'] }}
  </div>

  <input
    type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password"
    formControlName="new-confirmed-password"
  >

  <input type="submit" i18n-value value="Change password" [disabled]="!form.valid">
</form>
