From: Tom Hughes Date: Fri, 3 Jun 2011 14:04:05 +0000 (+0100) Subject: Allow a parameter to set the default value for the username X-Git-Tag: live~6848^2~2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/86bb9e5a50cd38de813705d99ee63ebd4d15e079?ds=sidebyside;hp=-c Allow a parameter to set the default value for the username --- 86bb9e5a50cd38de813705d99ee63ebd4d15e079 diff --git a/app/views/user/login.html.erb b/app/views/user/login.html.erb index 7cc4b6f24..8fe094cfa 100644 --- a/app/views/user/login.html.erb +++ b/app/views/user/login.html.erb @@ -7,7 +7,7 @@ <% form_tag :action => 'login' do %> <%= hidden_field_tag('referer', h(params[:referer])) %> - +
<%= t 'user.login.email or username' %><%= text_field('user', 'email',{:value => "", :size => 28, :maxlength => 255, :tabindex => 1}) %>
<%= t 'user.login.email or username' %><%= text_field('user', 'email',{:value => params[:username], :size => 28, :maxlength => 255, :tabindex => 1}) %>
<%= t 'user.login.password' %><%= password_field('user', 'password',{:value => "", :size => 28, :maxlength => 255, :tabindex => 2}) %> (<%= link_to t('user.login.lost password link'), :controller => 'user', :action => 'lost_password' %>)
<%= check_box_tag "remember_me", "yes", false, :tabindex => 3 %>