This uses the new part plugin to simplify and optimize render calls with locals. ```ruby render(:template, locals: {foo: 'bar'}) part(:template, foo: 'bar') ``` This simplifies a large number of calls in Clover, since rendering with locals is one of the most common method calls in the templates. The main advantage of this is simplicity, but the part method is also more optimized, and will be even more optimized when we upgrade to Ruby 3.4. Diff best reviewed with: ``` git diff -b --color-words --word-diff-regex='\\w+|[^[:space:]]' ```
20 lines
739 B
Plaintext
20 lines
739 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">
|
|
<%== part("components/form/submit_button", 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>
|