phoenix_passkeys/lib/phoenix_passkeys_web/controllers/user_registration_html/new.html.heex

25 lines
760 B
Plaintext

<div class="mx-auto max-w-sm">
<.header class="text-center">
Register for an account
<:subtitle>
Already registered?
<.link navigate={~p"/users/log_in"} class="font-semibold text-brand hover:underline">
Sign in
</.link>
to your account now.
</:subtitle>
</.header>
<.simple_form :let={f} for={@changeset} action={~p"/users/register"} id="registration-form">
<.error :if={@changeset.action == :insert}>
Oops, something went wrong! Please check the errors below.
</.error>
<.input field={f[:email]} type="email" label="Email" required />
<:actions>
<.button phx-disable-with="Creating account..." class="w-full">Create an account</.button>
</:actions>
</.simple_form>
</div>