2 <div class=
"content-padding">
6 <div *
ngIf=
"error" class=
"alert alert-danger">{{ error }}
</div>
8 <form role=
"form" (ngSubmit)=
"login()" [formGroup]=
"form">
9 <div class=
"form-group">
10 <label for=
"username">Username
</label>
12 type=
"text" class=
"form-control" id=
"username" placeholder=
"Username" required
13 formControlName=
"username"
15 <div *
ngIf=
"formErrors.username" class=
"alert alert-danger">
16 {{ formErrors.username }}
20 <div class=
"form-group">
21 <label for=
"password">Password
</label>
23 type=
"password" class=
"form-control" name=
"password" id=
"password" placeholder=
"Password" required
24 formControlName=
"password"
26 <div *
ngIf=
"formErrors.password" class=
"alert alert-danger">
27 {{ formErrors.password }}
31 <input type=
"submit" value=
"Login" class=
"btn btn-default" [disabled]=
"!form.valid">