]>
Commit | Line | Data |
---|---|---|
1 | <div class="margin-content"> | |
2 | ||
3 | <div i18n class="title-page title-page-single"> | |
4 | Create an account | |
5 | </div> | |
6 | ||
7 | <div class="initial-user-quota"> | |
8 | <span i18n class="initial-user-quota-label">Initial video quota:</span> | |
9 | ||
10 | <span *ngIf="initialUserVideoQuota !== -1"> | |
11 | {{ initialUserVideoQuota | bytes: 0 }} | |
12 | ||
13 | <my-help helpType="custom" [customHtml]="quotaHelpIndication"></my-help> | |
14 | </span> | |
15 | ||
16 | <ng-container i18n *ngIf="initialUserVideoQuota === -1"> | |
17 | Unlimited | |
18 | </ng-container> | |
19 | </div> | |
20 | ||
21 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | |
22 | ||
23 | <form role="form" (ngSubmit)="signup()" [formGroup]="form"> | |
24 | <div class="form-group"> | |
25 | <label for="username" i18n>Username</label> | |
26 | <input | |
27 | type="text" id="username" i18n-placeholder placeholder="Username" | |
28 | formControlName="username" [ngClass]="{ 'input-error': formErrors['username'] }" | |
29 | > | |
30 | <div *ngIf="formErrors.username" class="form-error"> | |
31 | {{ formErrors.username }} | |
32 | </div> | |
33 | </div> | |
34 | ||
35 | <div class="form-group"> | |
36 | <label for="email" i18n>Email</label> | |
37 | <input | |
38 | type="text" id="email" i18n-placeholder placeholder="Email" | |
39 | formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }" | |
40 | > | |
41 | <div *ngIf="formErrors.email" class="form-error"> | |
42 | {{ formErrors.email }} | |
43 | </div> | |
44 | </div> | |
45 | ||
46 | <div class="form-group"> | |
47 | <label for="password" i18n>Password</label> | |
48 | <input | |
49 | type="password" id="password" i18n-placeholder placeholder="Password" | |
50 | formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }" | |
51 | > | |
52 | <div *ngIf="formErrors.password" class="form-error"> | |
53 | {{ formErrors.password }} | |
54 | </div> | |
55 | </div> | |
56 | ||
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 | ||
68 | <input type="submit" i18n-value value="Signup" [disabled]="!form.valid"> | |
69 | </form> | |
70 | ||
71 | </div> |