Permalink
Browse files

sign in: focus is on Name field

  • Loading branch information...
1 parent bcf3038 commit 0171e667ac20f4b3671df0ac692248188fd53556 @mattscilipoti committed Mar 14, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 app/views/sessions/new.html.haml
@@ -2,6 +2,10 @@
#person_search
= form_for :person, :url => sessions_path do |f|
- =f.text_field :full_name, :placeholder => 'What is your name?', :autocomplete => 'off', :data => {:provide => 'typeahead', :source => Person.full_names }
+ =f.text_field :full_name,
+ :placeholder => 'What is your name?',
+ :autocomplete => 'off',
+ :data => {:provide => 'typeahead', :source => Person.full_names },
+ :autofocus => true
=f.submit "It's me!"
%p.sign_up Don't see your name? Click here to #{ link_to "Sign Up", new_person_path }

0 comments on commit 0171e66

Please sign in to comment.