45 lines
1.7 KiB
Text
45 lines
1.7 KiB
Text
<Layouts.public_page flash={@flash}>
|
|
<div class="max-w-4xl mx-auto">
|
|
<div class="hero min-h-[60vh] bg-base-200 rounded-lg">
|
|
<div class="hero-content flex-col items-start text-left">
|
|
<div class="max-w-md">
|
|
<%= case @result do %>
|
|
<% :success -> %>
|
|
<h1 class="text-3xl font-bold">
|
|
{gettext("Thank you")}
|
|
</h1>
|
|
<p class="py-4 text-base-content/80">
|
|
{gettext("Thank you, we have received your request.")}
|
|
</p>
|
|
<p class="text-sm text-base-content/70">
|
|
{gettext("You will receive an email once your application has been reviewed.")}
|
|
</p>
|
|
<a href={~p"/join"} class="btn btn-primary mt-4">
|
|
{gettext("Back to join form")}
|
|
</a>
|
|
<% :expired -> %>
|
|
<h1 class="text-3xl font-bold">
|
|
{gettext("Link expired")}
|
|
</h1>
|
|
<p class="py-4 text-base-content/80">
|
|
{gettext("This link has expired. Please submit the form again.")}
|
|
</p>
|
|
<a href={~p"/join"} class="btn btn-primary mt-4">
|
|
{gettext("Submit new request")}
|
|
</a>
|
|
<% :invalid -> %>
|
|
<h1 class="text-3xl font-bold text-error">
|
|
{gettext("Invalid or expired link")}
|
|
</h1>
|
|
<p class="py-4 text-base-content/80">
|
|
{gettext("Invalid or expired link.")}
|
|
</p>
|
|
<a href={~p"/join"} class="btn btn-primary mt-4">
|
|
{gettext("Go to join form")}
|
|
</a>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</Layouts.public_page>
|