]>
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 | |
5afdd0a5 | 7 | <div class="initial-user-quota"> |
b1d40cff | 8 | <span i18n class="initial-user-quota-label">Initial video quota:</span> |
5afdd0a5 C |
9 | |
10 | <span *ngIf="initialUserVideoQuota !== -1"> | |
11 | {{ initialUserVideoQuota | bytes: 0 }} | |
12 | ||
13 | <my-help helpType="custom" [customHtml]="quotaHelpIndication"></my-help> | |
14 | </span> | |
15 | ||
b1d40cff | 16 | <ng-container i18n *ngIf="initialUserVideoQuota === -1"> |
5afdd0a5 | 17 | Unlimited |
b1d40cff | 18 | </ng-container> |
5afdd0a5 C |
19 | </div> |
20 | ||
14063e96 | 21 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> |
897ec54d C |
22 | |
23 | <form role="form" (ngSubmit)="signup()" [formGroup]="form"> | |
24 | <div class="form-group"> | |
b1d40cff | 25 | <label for="username" i18n>Username</label> |
897ec54d | 26 | <input |
b1d40cff | 27 | type="text" id="username" i18n-placeholder placeholder="Username" |
a2b817d3 | 28 | formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" |
897ec54d | 29 | > |
a2b817d3 | 30 | <div *ngIf="formErrors.username" class="form-error"> |
897ec54d C |
31 | {{ formErrors.username }} |
32 | </div> | |
a184c71b | 33 | </div> |
a184c71b | 34 | |
897ec54d | 35 | <div class="form-group"> |
b1d40cff | 36 | <label for="email" i18n>Email</label> |
897ec54d | 37 | <input |
b1d40cff | 38 | type="text" id="email" i18n-placeholder placeholder="Email" |
a2b817d3 | 39 | formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }" |
897ec54d | 40 | > |
a2b817d3 | 41 | <div *ngIf="formErrors.email" class="form-error"> |
897ec54d C |
42 | {{ formErrors.email }} |
43 | </div> | |
a184c71b | 44 | </div> |
a184c71b | 45 | |
897ec54d | 46 | <div class="form-group"> |
b1d40cff | 47 | <label for="password" i18n>Password</label> |
897ec54d | 48 | <input |
b1d40cff | 49 | type="password" id="password" i18n-placeholder placeholder="Password" |
a2b817d3 | 50 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" |
897ec54d | 51 | > |
a2b817d3 | 52 | <div *ngIf="formErrors.password" class="form-error"> |
897ec54d C |
53 | {{ formErrors.password }} |
54 | </div> | |
a184c71b | 55 | </div> |
a184c71b | 56 | |
b4a929ac C |
57 | <div class="form-group form-group-terms"> |
58 | <my-peertube-checkbox | |
59 | inputName="terms" formControlName="terms" | |
60 | 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" | |
61 | ></my-peertube-checkbox> | |
62 | ||
63 | <div *ngIf="formErrors.terms" class="form-error"> | |
64 | {{ formErrors.terms }} | |
65 | </div> | |
66 | </div> | |
67 | ||
b1d40cff | 68 | <input type="submit" i18n-value value="Signup" [disabled]="!form.valid"> |
897ec54d C |
69 | </form> |
70 | ||
897ec54d | 71 | </div> |