33 lines
1.1 KiB
Plaintext
Executable File
33 lines
1.1 KiB
Plaintext
Executable File
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
|
|
<script type="text/javascript">
|
|
$().ready(function() {
|
|
$('#user_username, #user_password').click(function() {
|
|
$(this).val('');
|
|
});
|
|
|
|
$('#user_username, #user_password').blur(function() {
|
|
if ( $(this).val() == '' ) {
|
|
if ( $(this).is('#user_username') ) {
|
|
$(this).val('username');
|
|
}else{
|
|
$(this).val('password');
|
|
}
|
|
}
|
|
});
|
|
});
|
|
</script>
|
|
|
|
<div class="module" style="padding:15px 25px 0px 25px;">
|
|
<div style="float:left; width:50%; height:210px; padding-right:10px;">
|
|
<h1>Welcome to Horses</h1>
|
|
</div>
|
|
<div style="float:right; width:45%; height:195px; padding-left:30px; border-left:1px solid #e2e2e2;">
|
|
<%= form_for("user", :url => user_session_path) do |f| %>
|
|
<p><%= f.text_field :username , :value => "username", :style => "font-size:2.2em;" %></p>
|
|
<p><%= f.password_field :password, :value => "password", :style => "font-size:2.2em" %></p>
|
|
<%= f.submit 'Sign in' %>
|
|
<% end %>
|
|
</div>
|
|
<div class="clear"></div>
|
|
</div>
|