Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
changed autofocus to first field on registrations/new
Browse files Browse the repository at this point in the history
Signed-off-by: Vítor Avelino <contact@vitoravelino.me>
  • Loading branch information
vitoravelino committed Feb 22, 2017
1 parent 87162cd commit 097e782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/devise/registrations/new.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ section.sign-up class=(@have_users ? '' : 'first-user')
= render 'shared/notifications'
= image_tag 'layout/portus-logo-login-page.png', class: 'login-picture'
= form_for(resource, as: resource_name, url: { action: 'create' }, :html => {:autocomplete => "off"}) do |f|
= f.text_field :username, class: 'form-control input-lg', placeholder: 'Username', required: true
= f.email_field :email, autofocus: true, class: 'form-control input-lg first', placeholder: 'Email', required: true
= f.text_field :username, class: 'form-control input-lg', placeholder: 'Username', required: true, autofocus: true
= f.email_field :email, class: 'form-control input-lg first', placeholder: 'Email', required: true
= f.password_field :password, class: 'form-control input-lg', placeholder: 'Password (8 characters min.)', required: true
= f.password_field :password_confirmation, class: 'form-control input-lg last', placeholder: 'Password again', required: true

Expand Down

0 comments on commit 097e782

Please sign in to comment.