]>
Commit | Line | Data |
---|---|---|
40360c17 | 1 | <form role="form" [formGroup]="form"> |
9589907c C |
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 | ||
4c8749cb | 14 | <div class="form-group"> |
40360c17 K |
15 | <my-peertube-checkbox inputName="terms" formControlName="terms"> |
16 | <ng-template ptTemplate="label"> | |
4c8749cb | 17 | <ng-container i18n> |
1f256e7d | 18 | I am at least {{ minimumAge }} years old and agree |
6f03f944 | 19 | to the <a class="link-orange" (click)="onTermsClick($event)" href='#'>Terms</a> |
4c8a0991 | 20 | <ng-container *ngIf="hasCodeOfConduct"> and to the <a class="link-orange" (click)="onCodeOfConductClick($event)" href='#'>Code of Conduct</a></ng-container> |
9589907c | 21 | of {{ instanceName }} |
40360c17 K |
22 | </ng-container> |
23 | </ng-template> | |
24 | </my-peertube-checkbox> | |
25 | ||
6f03f944 | 26 | <div *ngIf="formErrors.terms" class="form-error">{{ formErrors.terms }}</div> |
40360c17 K |
27 | </div> |
28 | </form> |