aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+verify-account/verify-account-ask-send-email/verify-account-ask-send-email.component.html
blob: 2e4180632a6fdf786b2ffc7675175de82b76677f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div class="margin-content">
  <div i18n class="title-page title-page-single">
    Request email for account verification
  </div>

  <form *ngIf="requiresEmailVerification; else emailVerificationNotRequired" role="form" (ngSubmit)="askSendVerifyEmail()" [formGroup]="form">
    <div class="form-group">
      <label i18n for="verify-email-email">Email</label>
      <input
        type="email" id="verify-email-email" i18n-placeholder placeholder="Email address" required
        formControlName="verify-email-email" [ngClass]="{ 'input-error': formErrors['verify-email-email'] }"
      >
      <div *ngIf="formErrors['verify-email-email']" class="form-error">
          {{ formErrors['verify-email-email'] }}
      </div>
    </div>
    <input type="submit" i18n-value value="Send verification email" [disabled]="!form.valid">
  </form>
  <ng-template #emailVerificationNotRequired>
    <div i18n>This instance does not require email verification.</div>
  </ng-template>
</div>