Files
ubicloud/views/auth/reset_password_request.erb
Enes Cakir ad3cbd1a28 Convert rodauth login and password fields to components
We use the same email and password form inputs across all rodauth views.
I converted them into a component to avoid duplication.

Additionally, rodauth has similar components for its built-in views
[^1]. I merged the password-field [^2] and password-confirm-field [^3]
into a single component.

[^1]:
https://github.com/jeremyevans/rodauth/blob/master/templates/login-field.str
[^2]:
https://github.com/jeremyevans/rodauth/blob/master/templates/password-field.str
[^3]:
https://github.com/jeremyevans/rodauth/blob/master/templates/password-confirm-field.str
2023-12-04 15:19:50 +03:00

20 lines
753 B
Plaintext

<% @page_title = "Request Password Reset" %>
<% @page_message = "Request password reset" %>
<form action="<%= rodauth.reset_password_request_path %>" class="rodauth space-y-6" role="form" method="POST">
<%== rodauth.reset_password_request_additional_form_tags %>
<%== rodauth.csrf_tag(rodauth.reset_password_request_path) %>
<div>
<p class="leading-6 text-sm"><%== rodauth.reset_password_explanatory_text %></p>
</div>
<%== render("components/rodauth/login_field") %>
<div class="flex flex-col text-center">
<%== render("components/form/submit_button", locals: { text: "Request Password Reset" }) %>
<a href="/login" class="mt-2 text-sm font-semibold leading-6 text-gray-900">Sign in to another account</a>
</div>
</form>