Password reset back button also after confirmation

Signed-off-by: Juan José Mata <juanjo.mata@gmail.com>
This commit is contained in:
Juan José Mata
2025-10-07 19:35:57 +02:00
committed by GitHub
parent 730330ab2d
commit b45f96e4f8

View File

@@ -1,21 +1,21 @@
<% header_title t(".title") %>
<% if params[:step] == "pending" %>
<p class="text-sm text-secondary text-center"><%= t(".requested") %></p>
<p class="text-sm text-secondary text-center py-8"><%= t(".requested") %></p>
<% else %>
<%= styled_form_with url: password_reset_path, class: "space-y-4" do |form| %>
<%= form.email_field :email, label: true, autofocus: false, autocomplete: "email", required: "required", placeholder: "you@example.com" %>
<%= form.submit t(".submit") %>
<% end %>
<div class="mt-4">
<%= render DS::Link.new(
text: t(".back"),
href: new_session_path,
variant: :secondary,
full_width: true,
class: "bg-white hover:bg-gray-100"
) %>
</div>
<% end %>
<div class="mt-4">
<%= render DS::Link.new(
text: t(".back"),
href: new_session_path,
variant: :secondary,
full_width: true,
class: "bg-white hover:bg-gray-100"
) %>
</div>