]>
Commit | Line | Data |
---|---|---|
1 | <div class="margin-content"> | |
2 | <h1 i18n class="title-page">Request email for account verification</h1> | |
3 | ||
4 | <form *ngIf="requiresEmailVerification; else emailVerificationNotRequired" role="form" (ngSubmit)="askSendVerifyEmail()" [formGroup]="form"> | |
5 | <div class="form-group"> | |
6 | <label i18n for="verify-email-email">Email</label> | |
7 | ||
8 | <input | |
9 | type="email" id="verify-email-email" i18n-placeholder placeholder="Email address" required | |
10 | formControlName="verify-email-email" class="form-control" [ngClass]="{ 'input-error': formErrors['verify-email-email'] }" | |
11 | > | |
12 | ||
13 | <div *ngIf="formErrors['verify-email-email']" class="form-error">{{ formErrors['verify-email-email'] }}</div> | |
14 | </div> | |
15 | ||
16 | <input class="peertube-button orange-button" type="submit" i18n-value value="Send verification email" [disabled]="!form.valid"> | |
17 | </form> | |
18 | ||
19 | <ng-template #emailVerificationNotRequired> | |
20 | <div i18n>This instance does not require email verification.</div> | |
21 | </ng-template> | |
22 | </div> |