1 <div class=
"margin-content">
2 <div class=
"title-page title-page-single">
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 or email address
</label>
12 type=
"text" id=
"username" placeholder=
"Username or email address" required
13 formControlName=
"username" [ngClass]=
"{ 'input-error': formErrors['username'] }"
15 <div *
ngIf=
"formErrors.username" class=
"form-error">
16 {{ formErrors.username }}
20 <div class=
"form-group">
21 <label for=
"password">Password
</label>
23 type=
"password" name=
"password" id=
"password" placeholder=
"Password" required
24 formControlName=
"password" [ngClass]=
"{ 'input-error': formErrors['password'] }"
26 <div *
ngIf=
"formErrors.password" class=
"form-error">
27 {{ formErrors.password }}
31 <input type=
"submit" value=
"Login" [disabled]=
"!form.valid">