24 lines
734 B
Plaintext
24 lines
734 B
Plaintext
<div id="registration">
|
|
<h1>Do BeatHaven know you?</h1>
|
|
<%= form_tag('/login', :method => 'post') do -%>
|
|
<%= label_tag 'email', 'E-mail' %><%= email_field_tag 'email', nil %>
|
|
<%= label_tag 'password', 'Password' %><%= password_field_tag 'password', nil %><div id="password_error"></div>
|
|
<div class="complete">
|
|
<%= submit_tag 'Let me in!' %>
|
|
</div>
|
|
<% end -%>
|
|
</div>
|
|
<script type="text/javascript" charset="utf-8">
|
|
$(function(){
|
|
$('#email').focus();
|
|
$('form').submit(function(){
|
|
$('#password_error, #password_c_error').html('');
|
|
if ($('#password').val().length < 6) {
|
|
$('#password_error').html('* You must be kidding?');
|
|
$('#password').focus();
|
|
return false;
|
|
}
|
|
return true;
|
|
})
|
|
})
|
|
</script> |