From c4347c8d9a10bf5c141ad7d355594b93e20545f6 Mon Sep 17 00:00:00 2001 From: Milan Cvetkovic Date: Mon, 18 Mar 2024 11:51:23 +0000 Subject: [PATCH] Move 'Forgot password' link to the right of password label --- app/views/sessions/new.html.erb | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) 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 %> -- 2.39.5