forked from phoenixframework/phoenix
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix "Resend Confirmation Instructions" and "Settings" Form Styling (p…
…hoenixframework#5254) * Fix confirmation_new styling * Fix Settings style in LiveView template --------- Co-authored-by: Chris McCord <[email protected]>
- Loading branch information
1 parent
e7f7ea3
commit e5bb16c
Showing
3 changed files
with
106 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,21 @@ | ||
<.header>Resend confirmation instructions</.header> | ||
<div class="mx-auto max-w-sm"> | ||
<.header class="text-center"> | ||
No confirmation instructions received? | ||
<:subtitle>We'll send a new confirmation link to your inbox</:subtitle> | ||
</.header> | ||
|
||
<.simple_form :let={f} for={@conn.params["<%= schema.singular %>"]} as={:<%= schema.singular %>} action={~p"<%= schema.route_prefix %>/confirm"}> | ||
<.input field={f[:email]} type="email" label="Email" required /> | ||
<:actions> | ||
<.button>Resend confirmation instructions</.button> | ||
</:actions> | ||
</.simple_form> | ||
|
||
<p> | ||
<.link href={~p"<%= schema.route_prefix %>/register"}>Register</.link> | ||
| | ||
<.link href={~p"<%= schema.route_prefix %>/log_in"}>Log in</.link> | ||
</p> | ||
<.simple_form :let={f} for={@conn.params["<%= schema.singular %>"]} as={:<%= schema.singular %>} action={~p"<%= schema.route_prefix %>/confirm"}> | ||
<.input field={f[:email]} type="email" placeholder="Email" required /> | ||
<:actions> | ||
<.button phx-disable-with="Sending..." class="w-full"> | ||
Resend confirmation instructions | ||
</.button> | ||
</:actions> | ||
</.simple_form> | ||
|
||
<p class="text-center mt-4"> | ||
<.link href={~p"<%= schema.route_prefix %>/register"}>Register</.link> | ||
| | ||
<.link href={~p"<%= schema.route_prefix %>/log_in"}>Log in</.link> | ||
</p> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters