913b570cb697def13726f0994c238c1d64e39caf
[oweals/peertube.git] /
1 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
2
3 <form role="form" (ngSubmit)="changePassword()" [formGroup]="form">
4
5   <label i18n for="new-password">Change password</label>
6   <input
7     type="password" id="new-password" i18n-placeholder placeholder="New password"
8     formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }"
9     (change)="validateNewPassword()"  (blur)="printAnError()"
10   >
11   <div *ngIf="formErrors['new-password']" class="form-error">
12     {{ formErrors['new-password'] }}
13   </div>
14
15   <input
16     type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password"
17     formControlName="new-confirmed-password" (change)="validateNewPassword()" (blur)="printAnError()"
18   >
19
20   <input type="submit" i18n-value value="Change password" [disabled]="!form.valid || unsendable">
21 </form>