shift73k/lib/shift73k_web/templates/user_reset_password/new.html.heex

38 lines
1.2 KiB
Text
Raw Normal View History

<div class="row justify-content-center">
2021-03-10 09:27:24 -05:00
<div class="col-11 col-sm-10 col-md-8 col-lg-7 col-xl-6 col-xxl-5">
2021-03-03 08:15:14 -05:00
<h2>
<i class="bi bi-patch-question me-1"></i> Forgot your password?
2021-03-03 08:15:14 -05:00
</h2>
<p class="lead">We'll send you an email with instructions to reset your password.</p>
<%= form_for :user, Routes.user_reset_password_path(@conn, :create), [class: "needs-validation", novalidate: true], fn f -> %>
<%= label f, :email, class: "form-label" %>
<div class="inner-addon left-addon mb-3">
<i class="bi bi-at icon is-left text-muted fs-5"></i>
<%= email_input f, :email,
placeholder: "e.g., babka@73k.us",
class: "form-control",
maxlength: User.max_email,
required: true,
autofocus: true
%>
<span class="invalid-feedback">must be a valid email address</span>
</div>
<div class="mb-3">
<%= submit "Send instructions to reset password", class: "btn btn-primary" %>
</div>
<% end %>
<p>
<%= if allow_registration() do %>
<%= link "Register", to: Routes.user_registration_path(@conn, :new) %> |
<% end %>
<%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
</p>
</div>
</div>