Make email request status explicit
Some checks are pending
Quality / full-local-gates (push) Waiting to run
Some checks are pending
Quality / full-local-gates (push) Waiting to run
This commit is contained in:
parent
e671e104c7
commit
5881dd62f5
|
|
@ -6,7 +6,17 @@
|
|||
</.header>
|
||||
|
||||
<div class="mx-auto mt-8 max-w-xl rounded-3xl border border-base-300 bg-base-100 p-6 shadow-sm sm:p-8">
|
||||
<div class="flex gap-4">
|
||||
<div role="status" class="alert alert-success items-start">
|
||||
<.icon name="hero-check-circle" class="mt-0.5 size-6 shrink-0" />
|
||||
<div>
|
||||
<h2 class="font-bold">{gettext("Request accepted")}</h2>
|
||||
<p class="mt-1 text-sm">
|
||||
{gettext("The site processed your request. Follow the email instructions if they arrive.")}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-6 flex gap-4">
|
||||
<div class="grid size-11 shrink-0 place-items-center rounded-full bg-success/15 text-success">
|
||||
<.icon name="hero-envelope" class="size-6" />
|
||||
</div>
|
||||
|
|
@ -31,7 +41,7 @@
|
|||
{gettext("Back to log in")}
|
||||
</.link>
|
||||
<.link navigate={~p"/users/register"} class="btn btn-outline">
|
||||
{gettext("Use another email")}
|
||||
{gettext("Register instead")}
|
||||
</.link>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ defmodule WhoNeedHelpWeb.UserRegistrationControllerTest do
|
|||
|
||||
assert get_resp_header(conn, "cache-control") == ["no-store"]
|
||||
assert response =~ "Check your email"
|
||||
assert response =~ "Request accepted"
|
||||
assert response =~ ~s(role="status")
|
||||
assert response =~ "You do not need to enter your address again"
|
||||
assert response =~ "check Spam"
|
||||
assert response =~ ~p"/users/log-in"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user