Commit 8738eb23693b2cf4fdc2e5e77378478ba05eee24
1 parent
5d219bd5
Exists in
master
and in
4 other branches
Change html input type to "email" on sign-in view
As long as the username is the user's email address it makes sense to use input="email" helper for the email field. This allows HTML5 capable (mobile) devices to bring up an email input keyboard instead of the default one.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/views/devise/sessions/new.html.haml
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | - else | 3 | - else |
4 | = form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "login-box" }) do |f| | 4 | = form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "login-box" }) do |f| |
5 | = image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" | 5 | = image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo" |
6 | - = f.text_field :email, :class => "text top", :placeholder => "Email" | 6 | + = f.email_field :email, :class => "text top", :placeholder => "Email" |
7 | = f.password_field :password, :class => "text bottom", :placeholder => "Password" | 7 | = f.password_field :password, :class => "text bottom", :placeholder => "Password" |
8 | - if devise_mapping.rememberable? | 8 | - if devise_mapping.rememberable? |
9 | .clearfix.inputs-list | 9 | .clearfix.inputs-list |