]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - client/src/app/+signup/+register/steps/register-step-terms.component.html
1d753a3f2d529a9ab5155730c3992dee92874839
[github/Chocobozzz/PeerTube.git] / client / src / app / +signup / +register / steps / register-step-terms.component.html
1 <form role="form" [formGroup]="form">
2
3 <div *ngIf="requiresApproval" class="form-group">
4 <label i18n for="registrationReason">Why do you want to join {{ instanceName }}?</label>
5
6 <textarea
7 id="registrationReason" formControlName="registrationReason" class="form-control" rows="4"
8 [ngClass]="{ 'input-error': formErrors['registrationReason'] }"
9 ></textarea>
10
11 <div *ngIf="formErrors.registrationReason" class="form-error">{{ formErrors.registrationReason }}</div>
12 </div>
13
14 <div class="form-group">
15 <my-peertube-checkbox inputName="terms" formControlName="terms">
16 <ng-template ptTemplate="label">
17 <ng-container i18n>
18 I am at least {{ minimumAge }} years old and agree
19 to the <a class="link-orange" (click)="onTermsClick($event)" href='#'>Terms</a>
20 <ng-container *ngIf="hasCodeOfConduct"> and to the <a class="link-orange" (click)="onCodeOfConductClick($event)" href='#'>Code of Conduct</a></ng-container>
21 of {{ instanceName }}
22 </ng-container>
23 </ng-template>
24 </my-peertube-checkbox>
25
26 <div *ngIf="formErrors.terms" class="form-error">{{ formErrors.terms }}</div>
27 </div>
28 </form>