From: Tom MacWright Date: Sun, 26 Feb 2012 23:47:49 +0000 (-0500) Subject: Simplify login page X-Git-Tag: live~5768 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/7b6d0f031375284f3404e02cab09a541377c6d14 Simplify login page Moves action buttons to be with the form instead of way over on the opposite side of the page. Reorganizes "remember me" to a more typical spot on the page. Get rid of separate "create account" panel and replace it with an above the fold link. --- diff --git a/app/assets/stylesheets/ltr.css.scss b/app/assets/stylesheets/ltr.css.scss index 61fbf4104..8ca91bf37 100644 --- a/app/assets/stylesheets/ltr.css.scss +++ b/app/assets/stylesheets/ltr.css.scss @@ -194,12 +194,6 @@ html body { float: right; } -/* Rules for the login page */ - -#login_wrapper input[type=submit] { - float: right; -} - /* Rules for the account confirmation page */ form#termsForm div#buttons { diff --git a/app/assets/stylesheets/rtl.css.scss b/app/assets/stylesheets/rtl.css.scss index d616feda6..669889ce9 100644 --- a/app/assets/stylesheets/rtl.css.scss +++ b/app/assets/stylesheets/rtl.css.scss @@ -194,12 +194,6 @@ html body { float: left; } -/* Rules for the login page */ - -#login_wrapper input[type=submit] { - float: left; -} - /* Rules for the account confirmation page */ form#termsForm div#buttons { diff --git a/app/views/user/login.html.erb b/app/views/user/login.html.erb index dc330feae..c185a11b7 100644 --- a/app/views/user/login.html.erb +++ b/app/views/user/login.html.erb @@ -6,14 +6,25 @@ <%= form_tag({ :action => "login" }, { :id => "login_form" }) do %> <%= hidden_field_tag('referer', h(params[:referer])) %> -

<%= t 'user.login.with username' %>

+

<%= t 'user.login.no account' %> <%= link_to t('user.login.register now'), :action => :new, :referer => params[:referer] %>

- + + + + + + + +
<%= t 'user.login.email or username' %><%= text_field_tag "username", params[:username], :size => 28, :maxlength => 255, :tabindex => 1 %>
<%= t 'user.login.password' %><%= password_field_tag "password", "", :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 %>
<%= check_box_tag "remember_me", "yes", false, :tabindex => 3 %> + +
+ <%= submit_tag t('user.login.login_button'), :tabindex => 4 %> +
- <%= submit_tag t('user.login.login_button'), :tabindex => 3 %>
@@ -51,16 +62,6 @@
- -
-

<%= t 'user.login.new to osm' %>

-

<%= t 'user.login.to make changes' %>

-

<%= t 'user.login.create account minute' %>

-

<%= button_to t('user.login.register now'), :action => :new, :referer => params[:referer] %>

- -
-
-