]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blame - client/src/app/signup/signup.component.html
Improve message visibility on signup
[github/Chocobozzz/PeerTube.git] / client / src / app / signup / signup.component.html
CommitLineData
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
d8c9996c 7 <div *ngIf="info" class="alert alert-info">{{ info }}</div>
14063e96 8 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
897ec54d 9
07872fdf
RK
10 <div class="d-flex justify-content-left flex-wrap">
11 <form role="form" (ngSubmit)="signup()" [formGroup]="form">
12 <div class="form-group">
13 <label for="username" i18n>Username</label>
14
15 <div class="input-group">
16 <input
17 type="text" id="username" i18n-placeholder placeholder="Example: jane_doe"
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>
8a19bee1 24
07872fdf
RK
25 <div *ngIf="formErrors.username" class="form-error">
26 {{ formErrors.username }}
27 </div>
28 </div>
29
30 <div class="form-group">
31 <label for="email" i18n>Email</label>
8a19bee1 32 <input
07872fdf
RK
33 type="text" id="email" i18n-placeholder placeholder="Email"
34 formControlName="email" [ngClass]="{ 'input-error': formErrors['email'] }"
8a19bee1 35 >
07872fdf
RK
36 <div *ngIf="formErrors.email" class="form-error">
37 {{ formErrors.email }}
8a19bee1
C
38 </div>
39 </div>
40
07872fdf
RK
41 <div class="form-group">
42 <label for="password" i18n>Password</label>
43 <input
44 type="password" id="password" i18n-placeholder placeholder="Password"
45 formControlName="password" [ngClass]="{ 'input-error': formErrors['password'] }"
46 >
47 <div *ngIf="formErrors.password" class="form-error">
48 {{ formErrors.password }}
49 </div>
897ec54d 50 </div>
a184c71b 51
07872fdf
RK
52 <div class="form-group form-group-terms">
53 <my-peertube-checkbox
54 inputName="terms" formControlName="terms"
b8670e53 55 i18n-labelHtml labelHtml="I am at least 16 years old and agree to the <a href='/about/instance#terms-section' target='_blank'rel='noopener noreferrer'>Terms</a> of this instance"
07872fdf 56 ></my-peertube-checkbox>
a184c71b 57
07872fdf
RK
58 <div *ngIf="formErrors.terms" class="form-error">
59 {{ formErrors.terms }}
60 </div>
897ec54d 61 </div>
a184c71b 62
d8c9996c 63 <input type="submit" i18n-value value="Signup" [disabled]="!form.valid || signupDone">
07872fdf 64 </form>
b4a929ac 65
07872fdf
RK
66 <div>
67 <label for="email" i18n>Features found on this instance</label>
68 <my-instance-features-table></my-instance-features-table>
b4a929ac 69 </div>
07872fdf 70 </div>
897ec54d 71
897ec54d 72</div>