mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-04 13:52:06 +08:00
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.
28 lines
822 B
Text
28 lines
822 B
Text
<% @page_title = "Create Account" %>
|
|
|
|
<% @page_message = "Create a new account" %>
|
|
|
|
<% form(class: "rodauth space-y-6", method: :post) do %>
|
|
|
|
<%== part(
|
|
"components/form/text",
|
|
name: "name",
|
|
label: "Full Name",
|
|
attributes: {
|
|
required: true,
|
|
autocomplete: "name"
|
|
}
|
|
) %>
|
|
|
|
<%== render("components/rodauth/login_field") %>
|
|
<%== render("components/rodauth/password_field") %>
|
|
<%== part("components/rodauth/password_field", confirm: true) %>
|
|
<%== render("components/form/cloudflare_turnstile") %>
|
|
|
|
<div class="flex flex-col text-center">
|
|
<%== part("components/form/submit_button", text: "Create Account") %>
|
|
<a href="/login" class="mt-2 text-sm font-semibold leading-6 text-gray-900">Sign in to existing account</a>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%== render("auth/social_buttons") %>
|