From: Milan Cvetkovic Date: Mon, 18 Mar 2024 11:51:23 +0000 (+0000) Subject: Move 'Forgot password' link to the right of password label X-Git-Tag: live~597^2~8 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/c4347c8d9a10bf5c141ad7d355594b93e20545f6 Move 'Forgot password' link to the right of password label --- diff --git a/app/views/sessions/new.html.erb b/app/views/sessions/new.html.erb index 8231fe4e8..08ab872aa 100644 --- a/app/views/sessions/new.html.erb +++ b/app/views/sessions/new.html.erb @@ -17,7 +17,17 @@ <%= hidden_field_tag("referer", h(params[:referer]), :autocomplete => "off") %> <%= f.text_field :username, :label => t(".email or username"), :tabindex => 1, :value => params[:username] %> - <%= f.password_field :password, :label => t(".password"), :tabindex => 2, :value => "", :help => link_to(t(".lost password link"), user_forgot_password_path) %> + +
+
+ <%= f.label :password, :class => "form-label" %> +
+
+ <%= link_to(t(".lost password link"), user_forgot_password_path) %> +
+
+ + <%= f.form_group do %> <%= f.check_box :remember_me, { :label => t(".remember"), :tabindex => 3, :checked => (params[:remember_me] == "yes") }, "yes" %> <% end %>