diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-10 20:29:33 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-10 20:29:33 +0200 |
commit | a184c71b526000f60f00649d260638723d426e6a (patch) | |
tree | 70fcb85cf5780519e59b4812167ce6f896d73afa /client/src/app/signup/signup.component.html | |
parent | c36b4ff77ebcd6cf3a71f0a5c8fb17fa0f4a0d24 (diff) | |
download | PeerTube-a184c71b526000f60f00649d260638723d426e6a.tar.gz PeerTube-a184c71b526000f60f00649d260638723d426e6a.tar.zst PeerTube-a184c71b526000f60f00649d260638723d426e6a.zip |
Client: support signup
Diffstat (limited to 'client/src/app/signup/signup.component.html')
-rw-r--r-- | client/src/app/signup/signup.component.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/client/src/app/signup/signup.component.html b/client/src/app/signup/signup.component.html new file mode 100644 index 000000000..6c9c60e8b --- /dev/null +++ b/client/src/app/signup/signup.component.html | |||
@@ -0,0 +1,40 @@ | |||
1 | <h3>Signup</h3> | ||
2 | |||
3 | <div *ngIf="error" class="alert alert-danger">{{ error }}</div> | ||
4 | |||
5 | <form role="form" (ngSubmit)="signup()" [formGroup]="form"> | ||
6 | <div class="form-group"> | ||
7 | <label for="username">Username</label> | ||
8 | <input | ||
9 | type="text" class="form-control" id="username" placeholder="Username" | ||
10 | formControlName="username" | ||
11 | > | ||
12 | <div *ngIf="formErrors.username" class="alert alert-danger"> | ||
13 | {{ formErrors.username }} | ||
14 | </div> | ||
15 | </div> | ||
16 | |||
17 | <div class="form-group"> | ||
18 | <label for="email">Email</label> | ||
19 | <input | ||
20 | type="text" class="form-control" id="email" placeholder="Email" | ||
21 | formControlName="email" | ||
22 | > | ||
23 | <div *ngIf="formErrors.email" class="alert alert-danger"> | ||
24 | {{ formErrors.email }} | ||
25 | </div> | ||
26 | </div> | ||
27 | |||
28 | <div class="form-group"> | ||
29 | <label for="password">Password</label> | ||
30 | <input | ||
31 | type="password" class="form-control" id="password" placeholder="Password" | ||
32 | formControlName="password" | ||
33 | > | ||
34 | <div *ngIf="formErrors.password" class="alert alert-danger"> | ||
35 | {{ formErrors.password }} | ||
36 | </div> | ||
37 | </div> | ||
38 | |||
39 | <input type="submit" value="Signup" class="btn btn-default" [disabled]="!form.valid"> | ||
40 | </form> | ||