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.
This commit is contained in:
parent
5d219bd5f0
commit
8738eb2369
|
@ -3,7 +3,7 @@
|
|||
- else
|
||||
= form_for(resource, :as => resource_name, :url => session_path(resource_name), :html => { :class => "login-box" }) do |f|
|
||||
= image_tag "login-logo.png", :width => "304", :height => "66", :class => "login-logo", :alt => "Login Logo"
|
||||
= f.text_field :email, :class => "text top", :placeholder => "Email"
|
||||
= f.email_field :email, :class => "text top", :placeholder => "Email"
|
||||
= f.password_field :password, :class => "text bottom", :placeholder => "Password"
|
||||
- if devise_mapping.rememberable?
|
||||
.clearfix.inputs-list
|
||||
|
|
Loading…
Reference in a new issue