tabindex_loginpage_fixed.diff

Fixed diff to be created in the redmine directory (as it should be) - Henrik Ammer, 2009-11-27 13:31

Download (1.6 KB)

View differences:

app/views/account/login.rhtml (working copy)
4 4
<table>
5 5
<tr>
6 6
    <td align="right"><label for="username"><%=l(:field_login)%>:</label></td>
7
    <td align="left"><p><%= text_field_tag 'username', nil %></p></td>
7
    <td align="left"><%= text_field_tag 'username', nil, :tabindex => '1' %></td>
8 8
</tr>
9 9
<tr>
10 10
    <td align="right"><label for="password"><%=l(:field_password)%>:</label></td>
11
    <td align="left"><%= password_field_tag 'password', nil %></td>
11
    <td align="left"><%= password_field_tag 'password', nil, :tabindex => '2' %></td>
12 12
</tr>
13 13
<% if Setting.openid? %>
14 14
<tr>
15 15
  <td align="right"><label for="openid_url"><%=l(:field_identity_url)%></label></td>
16
  <td align="left"><%= text_field_tag "openid_url" %></td>
16
  <td align="left"><%= text_field_tag "openid_url", nil, :tabindex => '3' %></td>
17 17
</tr>
18 18
<% end %>
19 19
<tr>
20 20
    <td></td>
21 21
    <td align="left">
22 22
        <% if Setting.autologin? %>
23
        <label for="autologin"><%= check_box_tag 'autologin' %> <%= l(:label_stay_logged_in) %></label>
23
        <label for="autologin"><%= check_box_tag 'autologin', 0, true, :tabindex => 4 %> <%= l(:label_stay_logged_in) %></label>
24 24
        <% end %>
25 25
    </td>
26 26
</tr>
......
31 31
        <% end %>
32 32
    </td>
33 33
    <td align="right">
34
        <input type="submit" name="login" value="<%=l(:button_login)%> &#187;" />
34
        <input type="submit" name="login" value="<%=l(:button_login)%> &#187;" tabindex="5"/>
35 35
    </td>
36 36
</tr>
37 37
</table>