phoenix_passkeys/lib/phoenix_passkeys_web/controllers/user_settings_html/edit.html.heex

22 lines
709 B
Plaintext

<.header class="text-center">
Account Settings
<:subtitle>Manage your account email address and passkey settings</:subtitle>
</.header>
<div class="space-y-12 divide-y">
<div>
<.simple_form :let={f} for={@email_changeset} action={~p"/users/settings"} id="update_email">
<.error :if={@email_changeset.action}>
Oops, something went wrong! Please check the errors below.
</.error>
<.input field={f[:action]} type="hidden" name="action" value="update_email" />
<.input field={f[:email]} type="email" label="Email" required />
<:actions>
<.button phx-disable-with="Changing...">Change Email</.button>
</:actions>
</.simple_form>
</div>
</div>