From: Tom Hughes Date: Sun, 8 Mar 2009 16:12:07 +0000 (+0000) Subject: Add tabindex values to make sure links are not in the tab order when X-Git-Tag: live~7577^2~60 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/7184ae009635645d2422af6eca021758188c206c Add tabindex values to make sure links are not in the tab order when navigating forms. --- diff --git a/app/views/user/login.rhtml b/app/views/user/login.rhtml index 3c40906ca..0422d2132 100644 --- a/app/views/user/login.rhtml +++ b/app/views/user/login.rhtml @@ -5,9 +5,9 @@ <% form_tag :action => 'login' do %> <%= hidden_field_tag('referer', h(params[:referer])) %> - - + + - +
Email Address or Username:<%= text_field('user', 'email',{:size => 50, :maxlength => 255}) %>
Password:<%= password_field('user', 'password',{:size => 28, :maxlength => 255}) %> (<%= link_to 'Lost your password?', :controller => 'user', :action => 'lost_password' %>)
Email Address or Username:<%= text_field('user', 'email',{:size => 50, :maxlength => 255, :tabindex => 1}) %>
Password:<%= password_field('user', 'password',{:size => 28, :maxlength => 255, :tabindex => 2}) %> (<%= link_to 'Lost your password?', :controller => 'user', :action => 'lost_password' %>)
 
<%= submit_tag 'Login' %>
<%= submit_tag 'Login', :tabindex => 3 %>
<% end %> diff --git a/app/views/user/new.rhtml b/app/views/user/new.rhtml index 823dccf52..a19582fa4 100644 --- a/app/views/user/new.rhtml +++ b/app/views/user/new.rhtml @@ -28,17 +28,17 @@ <% form_tag :action => 'save' do %> - - + + - + - - + + - +
Email Address : <%= text_field('user', 'email',{:size => 50, :maxlength => 255}) %>
Confirm Email Address : <%= text_field('user', 'email_confirmation',{:size => 50, :maxlength => 255}) %>
Email Address : <%= text_field('user', 'email',{:size => 50, :maxlength => 255, :tabindex => 1}) %>
Confirm Email Address : <%= text_field('user', 'email_confirmation',{:size => 50, :maxlength => 255, :tabindex => 2}) %>
Not displayed publicly (see privacy policy)
 
Display Name : <%= text_field('user', 'display_name',{:size => 30, :maxlength => 255}) %>
Display Name : <%= text_field('user', 'display_name',{:size => 30, :maxlength => 255, :tabindex => 3}) %>
 
Password : <%= password_field('user', 'pass_crypt',{:size => 30, :maxlength => 255}) %>
Confirm Password : <%= password_field('user', 'pass_crypt_confirmation',{:size => 30, :maxlength => 255}) %>
Password : <%= password_field('user', 'pass_crypt',{:size => 30, :maxlength => 255, :tabindex => 4}) %>
Confirm Password : <%= password_field('user', 'pass_crypt_confirmation',{:size => 30, :maxlength => 255, :tabindex => 5}) %>
 
<% end %>