planner/lib/planner_web/templates/user_reset_password/edit.html.eex
2020-06-16 20:29:19 -07:00

33 lines
987 B
Elixir

<h1 class="title is-1">Reset password</h1>
<%= form_for @changeset, Routes.user_reset_password_path(@conn, :update, @token), fn f -> %>
<%= if @changeset.action do %>
<div class="help is-danger">
<p>Oops, something went wrong! Please check the errors below.</p>
</div>
<% end %>
<div class="field">
<%= label f, :password, "New password", class: "label" %>
<div class="control">
<%= password_input f, :password, required: true, class: "input" %>
</div>
<%= error_tag f, :password %>
</div>
<div class="field">
<%= label f, :password_confirmation, "Confirm new password", class: "label" %>
<div class="control">
<%= password_input f, :password_confirmation, required: true, class: "input" %>
</div>
<%= error_tag f, :password_confirmation %>
</div>
<div>
<%= submit "Reset password", class: "button is-primary" %>
</div>
<% end %>
<p>
<%= link "Login", to: Routes.user_session_path(@conn, :new) %>
</p>