-
Notifications
You must be signed in to change notification settings - Fork 1
/
login.hbs
53 lines (50 loc) · 2.08 KB
/
login.hbs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<main class="container">
<outer style="margin-top:50px;" class="mainbox col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2">
<div class="panel panel-info" >
<header class="panel-heading">
<div class="panel-title">Sign In</div>
</header>
<section style="padding-top:30px" class="panel-body" >
<div style="display:none" class="alert alert-danger col-sm-12"></div>
<form method = "post" class="form-horizontal" role="form" action="login">
<userid style="margin-bottom: 25px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-user"></i></span>
<input type="text" class="form-control" name="username" value="" placeholder="username or email">
</userid>
<password style="margin-bottom: 25px" class="input-group">
<span class="input-group-addon"><i class="glyphicon glyphicon-lock"></i></span>
<input type="password" class="form-control" name="password" placeholder="password">
</password>
<div style="margin-top:10px" class="form-group">
<!-- Button -->
<div class="col-sm-12 controls">
<input type="submit" class="btn btn-success" value = "Log In">
</div>
</div>
<signup class="form-group">
<div class="col-md-12 control">
<div style="border-top: 1px solid#888; padding-top:15px; font-size:85%" >Don't have an account!
<a href="/users/signup" >Sign Up Here</a>
</div>
</div>
</signup>
</form>
</section>
</div>
</outer>
</main>
<!-- if you don't want bootstraps -->
<!--
<form method="post" action="login">
<input type="text" name="username" placeholder="User name"><br>
<input type="password" name="password" placeholder="Password"><br>
<input type="submit" value="Log in">
</form>
-->
{{#if success}}
<p>Successfully created an account. Please log in</p>
{{/if}}
{{#if errorMessage}}
<p>{{errorMessage}}</p>
{{/if}}