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


                     

                                                                    
                                                 
            
                                                                                                      







                                                                                        
                                                                 
            
                                                                                                                                






                                                                                                        
                                                                                                                      

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

  <form role="form" (ngSubmit)="resetPassword()" [formGroup]="form">
    <div class="form-group">
      <label i18n for="password">Password</label>
      <input
        type="password" name="password" id="password" i18n-placeholder 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 i18n for="password-confirm">Confirm password</label>
      <input
        type="password" name="password-confirm" id="password-confirm" i18n-placeholder 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" i18n-value value="Reset my password" [disabled]="!form.valid || !isConfirmedPasswordValid()">
  </form>
</div>