aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/login/login.component.html
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-04-21 18:26:09 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-04-26 21:23:19 +0200
commit897ec54d766902878d78abe04aa5b749f6b627f3 (patch)
tree821062ecb881286d45931c32c6b67b078ba47823 /client/src/app/login/login.component.html
parentea9f487b40c7f1d7348d9f88703cb9d52c7e8603 (diff)
downloadPeerTube-897ec54d766902878d78abe04aa5b749f6b627f3.tar.gz
PeerTube-897ec54d766902878d78abe04aa5b749f6b627f3.tar.zst
PeerTube-897ec54d766902878d78abe04aa5b749f6b627f3.zip
Client: beautiful watch page
Diffstat (limited to 'client/src/app/login/login.component.html')
-rw-r--r--client/src/app/login/login.component.html55
1 files changed, 30 insertions, 25 deletions
diff --git a/client/src/app/login/login.component.html b/client/src/app/login/login.component.html
index 94a405405..bcea0a27a 100644
--- a/client/src/app/login/login.component.html
+++ b/client/src/app/login/login.component.html
@@ -1,29 +1,34 @@
1<h3>Login</h3> 1<div class="row">
2 <div class="content-padding">
2 3
3<div *ngIf="error" class="alert alert-danger">{{ error }}</div> 4 <h3>Login</h3>
4 5
5<form role="form" (ngSubmit)="login()" [formGroup]="form"> 6 <div *ngIf="error" class="alert alert-danger">{{ error }}</div>
6 <div class="form-group">
7 <label for="username">Username</label>
8 <input
9 type="text" class="form-control" id="username" placeholder="Username" required
10 formControlName="username"
11 >
12 <div *ngIf="formErrors.username" class="alert alert-danger">
13 {{ formErrors.username }}
14 </div>
15 </div>
16 7
17 <div class="form-group"> 8 <form role="form" (ngSubmit)="login()" [formGroup]="form">
18 <label for="password">Password</label> 9 <div class="form-group">
19 <input 10 <label for="username">Username</label>
20 type="password" class="form-control" name="password" id="password" placeholder="Password" required 11 <input
21 formControlName="password" 12 type="text" class="form-control" id="username" placeholder="Username" required
22 > 13 formControlName="username"
23 <div *ngIf="formErrors.password" class="alert alert-danger"> 14 >
24 {{ formErrors.password }} 15 <div *ngIf="formErrors.username" class="alert alert-danger">
25 </div> 16 {{ formErrors.username }}
26 </div> 17 </div>
18 </div>
27 19
28 <input type="submit" value="Login" class="btn btn-default" [disabled]="!form.valid"> 20 <div class="form-group">
29</form> 21 <label for="password">Password</label>
22 <input
23 type="password" class="form-control" name="password" id="password" placeholder="Password" required
24 formControlName="password"
25 >
26 <div *ngIf="formErrors.password" class="alert alert-danger">
27 {{ formErrors.password }}
28 </div>
29 </div>
30
31 <input type="submit" value="Login" class="btn btn-default" [disabled]="!form.valid">
32 </form>
33 </div>
34</div>