aboutsummaryrefslogblamecommitdiffhomepage
path: root/client/src/app/+signup/+register/register-step-terms.component.html
blob: 28a6e0021c291732013d43a84fd59f600953eebd (plain) (tree)
1
2
3
4
5
6



                                                                    

                                                            











                                                                                                                                                  
<form role="form" [formGroup]="form">
  <div class="form-group form-group-terms">
    <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="terms-anchor" (click)="onTermsClick($event)" href='#'>Terms</a>
          <ng-container *ngIf="hasCodeOfConduct"> and to the <a (click)="onCodeOfConductClick($event)" href='#'>Code of Conduct</a></ng-container>
          of this instance
        </ng-container>
      </ng-template>
    </my-peertube-checkbox>

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