Aggiedit/lib/aggiedit_web/templates/user_reset_password/edit.html.heex
2022-04-14 00:18:01 -06:00

31 lines
1002 B
Plaintext

<h1>Reset password</h1>
<.form let={f} for={@changeset} action={Routes.user_reset_password_path(@conn, :update, @token)}>
<%= if @changeset.action do %>
<div class="alert alert-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<div class="form-group mt-2">
<%= label f, :password, "New Password" %>
<%= password_input f, :password, required: true, class: "form-control" %>
<%= error_tag f, :password %>
</div>
<div class="form-group mt-2">
<%= label f, :password_confirmation, "Confirm new password" %>
<%= password_input f, :password_confirmation, required: true, class: "form-control" %>
<%= error_tag f, :password_confirmation %>
</div>
<div class="form-group mt-2">
<%= submit "Reset password", class: "btn btn-primary" %>
</div>
</.form>
<hr>
<p>
<%= link "Register", to: Routes.user_registration_path(@conn, :new) %> |
<%= link "Log in", to: Routes.user_session_path(@conn, :new) %>
</p>