a39061ee3a466203e478e46950c565428384ba55
[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="current-password">Change password</label>
6   <input
7     type="password" id="current-password" i18n-placeholder placeholder="Current password"
8     formControlName="current-password" [ngClass]="{ 'input-error': formErrors['current-password'] }"
9   >
10   <div *ngIf="formErrors['current-password']" class="form-error">
11     {{ formErrors['current-password'] }}
12   </div>
13
14   <input
15     type="password" id="new-password" i18n-placeholder placeholder="New password"
16     formControlName="new-password" [ngClass]="{ 'input-error': formErrors['new-password'] }"
17   >
18   <div *ngIf="formErrors['new-password']" class="form-error">
19     {{ formErrors['new-password'] }}
20   </div>
21
22   <input
23     type="password" id="new-confirmed-password" i18n-placeholder placeholder="Confirm new password"
24     formControlName="new-confirmed-password"
25   >
26   <div *ngIf="formErrors['new-confirmed-password']" class="form-error">
27     {{ formErrors['new-confirmed-password'] }}
28   </div>
29
30   <input type="submit" i18n-value value="Change password" [disabled]="!form.valid">
31 </form>