2021-03-02 10:35:36 -05:00
|
|
|
<div class="row justify-content-center">
|
|
|
|
<div class="col-sm-9 col-md-7 col-lg-5 col-xl-4 ">
|
2020-09-12 20:07:02 -04:00
|
|
|
|
2021-03-03 08:15:14 -05:00
|
|
|
<h2>
|
2021-03-02 10:35:36 -05:00
|
|
|
<%= icon_div @conn, "mdi-head-question-outline", [class: "icon baseline"] %>
|
|
|
|
Forgot your password?
|
2021-03-03 08:15:14 -05:00
|
|
|
</h2>
|
2021-03-02 10:35:36 -05:00
|
|
|
<p class="lead">We'll send you an email with instructions to reset your password.</p>
|
2020-09-12 20:07:02 -04:00
|
|
|
|
2021-03-02 10:35:36 -05:00
|
|
|
<%= form_for :user, Routes.user_reset_password_path(@conn, :create), [class: "needs-validation", novalidate: true], fn f -> %>
|
|
|
|
|
2021-03-09 10:22:05 -05:00
|
|
|
<%= label f, :email, class: "form-label" %>
|
|
|
|
<div class="inner-addon left-addon mb-3">
|
|
|
|
<%= icon_div @conn, "bi-at", [class: "icon is-left text-muted fs-5"] %>
|
2021-03-02 10:35:36 -05:00
|
|
|
<%= email_input f, :email,
|
2021-03-07 17:17:16 -05:00
|
|
|
placeholder: "e.g., babka@73k.us",
|
2021-03-09 10:22:05 -05:00
|
|
|
class: "form-control",
|
2021-03-02 10:35:36 -05:00
|
|
|
maxlength: User.max_email,
|
2021-03-09 10:22:05 -05:00
|
|
|
required: true,
|
|
|
|
autofocus: true
|
2021-03-02 10:35:36 -05:00
|
|
|
%>
|
|
|
|
<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 %>
|
2020-09-12 20:07:02 -04:00
|
|
|
|
2021-03-02 10:35:36 -05:00
|
|
|
<p>
|
|
|
|
<%= link "Register", to: Routes.user_registration_path(@conn, :new) %> |
|
|
|
|
<%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|