]>
Commit | Line | Data |
---|---|---|
d235f6b0 | 1 | <div class="margin-content"> |
a184c71b | 2 | |
b1d40cff | 3 | <div i18n class="title-page title-page-single"> |
f3aaa9a9 | 4 | Create an account |
d235f6b0 | 5 | </div> |
a184c71b | 6 | |
41a676db | 7 | <my-instance-features-table></my-instance-features-table> |
5afdd0a5 | 8 | |
14063e96 | 9 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
897ec54d C |
10 | |
11 | <form role="form" (ngSubmit)="signup()" [formGroup]="form"> | |
12 | <div class="form-group"> | |
b1d40cff | 13 | <label for="username" i18n>Username</label> |
8a19bee1 C |
14 | |
15 | <div class="input-group"> | |
16 | <input | |
17 | type="text" id="username" i18n-placeholder placeholder="Example: neil_amstrong" | |
18 | formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" | |
19 | > | |
20 | <div class="input-group-append"> | |
21 | <span class="input-group-text">@{{ instanceHost }}</span> | |
22 | </div> | |
23 | </div> | |
24 | ||
a2b817d3 | 25 | <div *ngIf="formErrors.username" class="form-error"> |
897ec54d C |
26 | {{ formErrors.username }} |
27 | </div> | |
a184c71b | 28 | </div> |
a184c71b | 29 | |
897ec54d | 30 | <div class="form-group"> |
b1d40cff | 31 | <label for="email" i18n>Email</label> |
897ec54d | 32 | <input |
b1d40cff | 33 | type="text" id="email" i18n-placeholder placeholder="Email" |
a2b817d3 | 34 | formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }" |
897ec54d | 35 | > |
a2b817d3 | 36 | <div *ngIf="formErrors.email" class="form-error"> |
897ec54d C |
37 | {{ formErrors.email }} |
38 | </div> | |
a184c71b | 39 | </div> |
a184c71b | 40 | |
897ec54d | 41 | <div class="form-group"> |
b1d40cff | 42 | <label for="password" i18n>Password</label> |
897ec54d | 43 | <input |
b1d40cff | 44 | type="password" id="password" i18n-placeholder placeholder="Password" |
a2b817d3 | 45 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" |
897ec54d | 46 | > |
a2b817d3 | 47 | <div *ngIf="formErrors.password" class="form-error"> |
897ec54d C |
48 | {{ formErrors.password }} |
49 | </div> | |
a184c71b | 50 | </div> |
a184c71b | 51 | |
b4a929ac C |
52 | <div class="form-group form-group-terms"> |
53 | <my-peertube-checkbox | |
54 | inputName="terms" formControlName="terms" | |
55 | i18n-labelHtml labelHtml="I have read and agree to the <a href='/about/instance#terms-section' target='_blank'rel='noopener noreferrer'>Terms</a> of this instance" | |
56 | ></my-peertube-checkbox> | |
57 | ||
58 | <div *ngIf="formErrors.terms" class="form-error"> | |
59 | {{ formErrors.terms }} | |
60 | </div> | |
61 | </div> | |
62 | ||
b1d40cff | 63 | <input type="submit" i18n-value value="Signup" [disabled]="!form.valid"> |
897ec54d C |
64 | </form> |
65 | ||
897ec54d | 66 | </div> |