diff options
Diffstat (limited to 'client/src/app/login')
-rw-r--r-- | client/src/app/login/login.component.html | 55 |
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> | ||