2017-08-15 15:59:43 +01:00
< div class = "app flex-row align-items-center" >
< div class = "container" >
< div class = "row justify-content-center" >
< div class = "col-md-8" >
< div class = "card-group mb-0" >
< div class = "card p-4" >
< div class = "card-block" >
< h1 > Login< / h1 >
< p class = "text-muted" > Sign In to your account< / p >
< form [ formGroup ] = " signin " ( ngSubmit ) = " onSubmit ( ) " >
< div class = "input-group mb-3" >
< span class = "input-group-addon" > @< / span >
2017-08-25 12:17:06 +01:00
< input id = "username" type = "text" class = "form-control" formControlName = "email" placeholder = "Email" >
2017-08-15 15:59:43 +01:00
< / div >
< div class = "input-group mb-4" >
< span class = "input-group-addon" > < i class = "icon-lock" > < / i > < / span >
2017-08-25 12:17:06 +01:00
< input id = "password" type = "password" class = "form-control" formControlName = "password" placeholder = "Password" >
2017-08-15 15:59:43 +01:00
< / div >
2017-08-24 17:09:01 +01:00
< div class = "mb-4" >
2017-08-25 12:18:14 +01:00
< div [ ngSwitch ] = " loginStatus " >
< div * ngSwitchCase = "'success'" class = "alert alert-success" role = "alert" >
Login Succeeded, routing to homepage.
< / div >
< div * ngSwitchCase = "'send_failed'" class = "alert alert-danger" role = "alert" >
Error received, please try again.
2017-08-24 17:09:01 +01:00
< / div >
< / div >
2017-08-25 12:18:14 +01:00
< / div >
2017-08-15 15:59:43 +01:00
< div class = "row" >
< div class = "col-6" >
2017-08-24 17:09:01 +01:00
< button type = "submit" [ disabled ] = " ! signin . valid " class = "btn btn-primary px-4" > Login< / button >
2017-08-15 15:59:43 +01:00
< / div >
2017-11-10 15:20:48 +00:00
< div class = "col-6 text-right" >
< button type = "button" class = "btn btn-link px-0" disabled > Forgot password?< / button >
< / div >
< label class = "col-12" > < strong > Password reset is currently in development and disabled in testing, please contact an administrator to reset your password.< / strong > < / label >
2017-08-15 15:59:43 +01:00
< / div >
< / form >
< / div >
< / div >
2017-09-15 16:35:04 +01:00
< div class = "card card-inverse card-primary py-5" >
2017-08-15 15:59:43 +01:00
< div class = "card-block text-center" >
< div >
< h2 > Sign up< / h2 >
2017-09-08 13:22:34 +01:00
< p > Click the "Register Now" button to register your user account. Be sure to have a token!< / p >
2017-08-24 16:30:34 +01:00
< button type = "button" class = "btn btn-primary active mt-3" routerLinkActive = "active" [ routerLink ] = " [ ' / register ' ] " > Register Now!< / button >
2017-08-15 15:59:43 +01:00
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >
< / div >