-
Notifications
You must be signed in to change notification settings - Fork 3
/
login.erb
62 lines (53 loc) · 1.71 KB
/
login.erb
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
54
55
56
57
58
59
60
<%
# add users to the sub-account is possilbe, but they should be able to login, reset password, etc.....
# e.g.: a user may want to add his client to his sub-account.
#redirect "#{MASTER_URL}/login" if SLAVE
email = session['email'].to_s
%>
<section class='row-fluid signin-page' style='vertical-align: middle; height: 100%;' height='100%'>
<div class='span4 signin-page'></div>
<div class='span4 signin-page' style='vertical-align: middle; height: 100%;' height='100%'>
<!-- Page content
================================================== -->
<div>
<span align='left'><h1>
<a href='/'><img src='<%=CS_HOME_LOGO%>' height='100px' title='<%=APP_NAME%> logo' /></a>
</h1></span><br/>
</div>
<left>
<form action="/login" method="post">
<fieldset>
<div class="fields">
<input type="text" name="email" placeholder="Email" id="id_email" tabindex="1" onfocus="$(this).select();" value="<%=email.encode_html%>">
<input type="password" name="password" placeholder="Password" id="id_password" tabindex="2" onfocus="$(this).select();">
</div>
<button type="submit" class="btn btn-primary btn-block" tabindex="3"><b>Login</b></button>
</fieldset>
</form>
<%
if !SLAVE
%>
<div>
<span align='right'><a href='./recover' tabindex="4">Reset your password</a></span><br/>
<br/>
<center>
Don't have an account?<br/>
<a href='./signup' class='btn btn-gray btn-block' tabindex="5"><b>Create a new <%=APP_NAME%> account</b></a>
</center>
</div>
<%
end # if SLAVE
%>
</left>
<br/>
<br/>
<br/>
</div>
<div class='span4'>
</div>
</section>
<script>
$('document').ready(function(){
document.getElementById("id_email").focus();
});
</script>