login: move password reset link.

Add "Forgot password?" link next to password field to make it more
obvious.
This commit is contained in:
evazion
2019-12-14 15:34:01 -06:00
parent 48e0569832
commit 872bd28d42
2 changed files with 1 additions and 3 deletions

View File

@@ -1,5 +1,3 @@
<% content_for(:secondary_links) do %>
<%= subnav_link_to "Sign up", new_user_path %>
<%= subnav_link_to "Reset Password", new_maintenance_user_password_reset_path %>
<%= subnav_link_to "Login Reminder", new_maintenance_user_login_reminder_path %>
<% end %>

View File

@@ -6,7 +6,7 @@
<%= simple_form_for(:session, url: session_path) do |f| %>
<%= f.input :url, as: :hidden, input_html: { value: params[:url] } %>
<%= f.input :name %>
<%= f.input :password, input_html: { autocomplete: "password" } %>
<%= f.input :password, hint: link_to("Forgot password?", new_maintenance_user_password_reset_path), input_html: { autocomplete: "password" } %>
<%= f.submit "Login" %>
<% end %>