aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/reset-password/reset-password.component.html
blob: 9cf623c64776ac943aac4715bb35939ee9f32c31 (plain) (tree)
1
2
3
4
5




                                            

























                                                                                                               
<div class="margin-content">
  <div class="title-page title-page-single">
    Reset my password
  </div>

  <form role="form" (ngSubmit)="resetPassword()" [formGroup]="form">
    <div class="form-group">
      <label for="password">Password</label>
      <input
        type="password" name="password" id="password" placeholder="Password" required
        formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
      >
      <div *ngIf="formErrors.password" class="form-error">
        {{ formErrors.password }}
      </div>
    </div>

    <div class="form-group">
      <label for="password-confirm">Confirm password</label>
      <input
        type="password" name="password-confirm" id="password-confirm" placeholder="Confirmed password" required
        formControlName="password-confirm" [ngClass]="{ 'input-error': formErrors['password-confirm'] }"
      >
      <div *ngIf="formErrors['password-confirm']" class="form-error">
        {{ formErrors['password-confirm'] }}
      </div>
    </div>

    <input type="submit" value="Reset my password" [disabled]="!form.valid && isConfirmedPasswordValid()">
  </form>
</div>