]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/+my-account/my-account-settings/my-account-change-password/my-account-change-password.component.html
Merge branch 'release/4.2.0' into develop
[github/Chocobozzz/PeerTube.git] / client / src / app / +my-account / my-account-settings / my-account-change-password / my-account-change-password.component.html
CommitLineData
c30745f3
C
1<div *ngIf="error" class="alert alert-danger">{{ error }}</div>
2
a890d1e0 3<form role="form" (ngSubmit)="changePassword()" [formGroup]="form">
d235f6b0 4
0ba5f5ba 5 <label i18n for="current-password">Change password</label>
a70bf3bd 6 <my-input-text formControlName="current-password"
1916c966 7 inputId="current-password"
f8b530e0
RK
8 i18n-placeholder placeholder="Current password"
9 [ngClass]="{ 'input-error': formErrors['current-password'] }"
a70bf3bd 10 autocomplete="current-password"></my-input-text>
a890d1e0
C
11 <div *ngIf="formErrors['current-password']" class="form-error">
12 {{ formErrors['current-password'] }}
3805ce3f
B
13 </div>
14
a70bf3bd 15 <my-input-text formControlName="new-password"
1916c966 16 inputId="new-password"
f8b530e0
RK
17 i18n-placeholder placeholder="New password"
18 [ngClass]="{ 'input-error': formErrors['new-password'] }"
a70bf3bd 19 autocomplete="new-password"></my-input-text>
a2b817d3 20 <div *ngIf="formErrors['new-password']" class="form-error">
c30745f3
C
21 {{ formErrors['new-password'] }}
22 </div>
23
a70bf3bd 24 <my-input-text formControlName="new-confirmed-password"
1916c966 25 inputId="new-confirmed-password"
f8b530e0
RK
26 i18n-placeholder placeholder="Confirm new password"
27 [ngClass]="{ 'input-error': formErrors['new-confirmed-password'] }"
a70bf3bd 28 autocomplete="new-password"></my-input-text>
b0ee41df
C
29 <div *ngIf="formErrors['new-confirmed-password']" class="form-error">
30 {{ formErrors['new-confirmed-password'] }}
31 </div>
c30745f3 32
b0ee41df 33 <input type="submit" i18n-value value="Change password" [disabled]="!form.valid">
c30745f3 34</form>