ubicloud/views/auth/verify_account_resend.erb
Jeremy Evans c1b0a1e982 Remove role="form" attribute on form tags
It is redundant. role="form" should be set on non-form tags that
operate as forms, and if a form tag is used that doesn't operate as a
form, you could potentially use a different role, but the assumption
is that a form tag has a form role, so there is no benefit to being
explicit about it.
2025-09-09 02:36:02 +09:00

26 lines
988 B
Text

<% @page_title = "Resend Verification" %>
<% @page_message = "Resend account verification" %>
<% form(action: rodauth.verify_account_resend_path, method: :post, class: "rodauth space-y-6") do %>
<% recently_sent = rodauth.verify_account_email_recently_sent? if rodauth.account %>
<% if !rodauth.account || recently_sent %>
<div class="leading-6 text-sm"><%== rodauth.verify_account_resend_explanatory_text %></div>
<% end %>
<% if rodauth.param_or_nil(rodauth.login_param) %>
<%== hidden_inputs(rodauth.login_param => rodauth.param(rodauth.login_param)) %>
<% else %>
<%== render("components/rodauth/login_field") %>
<% end %>
<div class="flex flex-col text-center">
<%== part(
"components/form/submit_button",
text: "Send Verification Again",
attributes: recently_sent ? { disabled: true } : {}
) %>
<a href="/login" class="mt-2 text-sm font-semibold leading-6 text-gray-900">Sign in to another account</a>
</div>
<% end %>