]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/reset-password/reset-password.component.html
Translated using Weblate (Catalan)
[github/Chocobozzz/PeerTube.git] / client / src / app / reset-password / reset-password.component.html
1 <div class="margin-content">
2 <div i18n class="title-page title-page-single">
3 Reset my password
4 </div>
5
6 <form role="form" (ngSubmit)="resetPassword()" [formGroup]="form">
7 <div class="form-group">
8 <label i18n for="password">Password</label>
9 <input
10 type="password" name="password" id="password" i18n-placeholder placeholder="Password" required autocomplete="new-password"
11 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
12 >
13 <div *ngIf="formErrors.password" class="form-error">
14 {{ formErrors.password }}
15 </div>
16 </div>
17
18 <div class="form-group">
19 <label i18n for="password-confirm">Confirm password</label>
20 <input
21 type="password" name="password-confirm" id="password-confirm" i18n-placeholder placeholder="Confirmed password" required autocomplete="new-password"
22 formControlName="password-confirm" [ngClass]="{ 'input-error': formErrors['password-confirm'] }"
23 >
24 <div *ngIf="formErrors['password-confirm']" class="form-error">
25 {{ formErrors['password-confirm'] }}
26 </div>
27 </div>
28
29 <input type="submit" i18n-value value="Reset my password" [disabled]="!form.valid || !isConfirmedPasswordValid()">
30 </form>
31 </div>