]>
Commit | Line | Data |
---|---|---|
1d5342ab C |
1 | <form role="form" [formGroup]="form"> |
2 | ||
1f20622f C |
3 | <div class="form-group"> |
4 | <label for="displayName" i18n>Display name</label> | |
5 | ||
6 | <div class="input-group"> | |
7 | <input | |
8 | type="text" id="displayName" placeholder="John Doe" | |
9 | formControlName="displayName" [ngClass]="{ 'input-error': formErrors['displayName'] }" | |
10 | > | |
11 | </div> | |
12 | ||
13 | <div *ngIf="formErrors.displayName" class="form-error"> | |
14 | {{ formErrors.displayName }} | |
15 | </div> | |
16 | </div> | |
17 | ||
1d5342ab C |
18 | <div class="form-group"> |
19 | <label for="username" i18n>Username</label> | |
20 | ||
21 | <div class="input-group"> | |
22 | <input | |
832a12b0 | 23 | type="text" id="username" i18n-placeholder="Username choice placeholder in the registration form" placeholder="e.g. jane_doe" |
a6d5ff76 | 24 | formControlName="username" class="form-control" [ngClass]="{ 'input-error': formErrors['username'] }" |
1d5342ab C |
25 | > |
26 | <div class="input-group-append"> | |
27 | <span class="input-group-text">@{{ instanceHost }}</span> | |
28 | </div> | |
29 | </div> | |
30 | ||
1f20622f | 31 | <div class="name-information" i18n> |
cbdbdae0 | 32 | The username is a unique identifier of your account on this and all the other instances. It's as unique as an email address, which makes it easy for other people to interact with it. |
1f20622f C |
33 | </div> |
34 | ||
1d5342ab C |
35 | <div *ngIf="formErrors.username" class="form-error"> |
36 | {{ formErrors.username }} | |
37 | </div> | |
38 | </div> | |
39 | ||
40 | <div class="form-group"> | |
41 | <label for="email" i18n>Email</label> | |
42 | <input | |
43 | type="text" id="email" i18n-placeholder placeholder="Email" | |
a6d5ff76 | 44 | formControlName="email" class="form-control" [ngClass]="{ 'input-error': formErrors['email'] }" |
1d5342ab C |
45 | > |
46 | <div *ngIf="formErrors.email" class="form-error"> | |
47 | {{ formErrors.email }} | |
48 | </div> | |
49 | </div> | |
50 | ||
51 | <div class="form-group"> | |
52 | <label for="password" i18n>Password</label> | |
53 | <input | |
7738273b | 54 | type="password" id="password" i18n-placeholder placeholder="Password" autocomplete="new-password" |
a6d5ff76 | 55 | formControlName="password" class="form-control" [ngClass]="{ 'input-error': formErrors['password'] }" |
1d5342ab C |
56 | > |
57 | <div *ngIf="formErrors.password" class="form-error"> | |
58 | {{ formErrors.password }} | |
59 | </div> | |
60 | </div> | |
61 | ||
62 | <div class="form-group form-group-terms"> | |
421d935d C |
63 | <my-peertube-checkbox inputName="terms" formControlName="terms"> |
64 | <ng-template ptTemplate="label"> | |
65 | <ng-container i18n> | |
66 | I am at least 16 years old and agree | |
67 | to the <a (click)="onTermsClick($event)" href='#'>Terms</a> | |
68 | <ng-container *ngIf="hasCodeOfConduct"> and to the <a (click)="onCodeOfConductClick($event)" href='#'>Code of Conduct</a></ng-container> | |
69 | of this instance | |
70 | </ng-container> | |
71 | </ng-template> | |
72 | </my-peertube-checkbox> | |
1d5342ab C |
73 | |
74 | <div *ngIf="formErrors.terms" class="form-error"> | |
75 | {{ formErrors.terms }} | |
76 | </div> | |
77 | </div> | |
78 | </form> |