aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/+signup/+register/steps/register-step-terms.component.html
blob: 1d753a3f2d529a9ab5155730c3992dee92874839 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<form role="form" [formGroup]="form">

  <div *ngIf="requiresApproval" class="form-group">
    <label i18n for="registrationReason">Why do you want to join {{ instanceName }}?</label>

    <textarea
      id="registrationReason" formControlName="registrationReason" class="form-control" rows="4"
      [ngClass]="{ 'input-error': formErrors['registrationReason'] }"
    ></textarea>

    <div *ngIf="formErrors.registrationReason" class="form-error">{{ formErrors.registrationReason }}</div>
  </div>

  <div class="form-group">
    <my-peertube-checkbox inputName="terms" formControlName="terms">
      <ng-template ptTemplate="label">
        <ng-container i18n>
          I am at least {{ minimumAge }} years old and agree
          to the <a class="link-orange" (click)="onTermsClick($event)" href='#'>Terms</a>
          <ng-container *ngIf="hasCodeOfConduct"> and to the <a class="link-orange" (click)="onCodeOfConductClick($event)" href='#'>Code of Conduct</a></ng-container>
          of {{ instanceName }}
        </ng-container>
      </ng-template>
    </my-peertube-checkbox>

    <div *ngIf="formErrors.terms" class="form-error">{{ formErrors.terms }}</div>
  </div>
</form>