Current section

Files

Jump to
openmaize priv templates phoenixauth password_reset_edit.html.eex
Raw

priv/templates/phoenixauth/password_reset_edit.html.eex

<h2>Reset password</h2>
<%= form_for @conn, password_reset_path(@conn, :update, @user), [as: :password_reset], fn f -> %>
<%= if f.errors != [] do %>
<div class="alert alert-danger">
<p>Please check the errors below:</p>
</div>
<% end %>
<div class="form-group">
<%= label f, :password, "Password", class: "control-label" %>
<%= password_input f, :password, class: "form-control" %>
<%= error_tag f, :password %>
</div>
<div class="form-group">
<%= label f, :confirm_password, "Confirm password", class: "control-label" %>
<%= password_input f, :confirm_password, class: "form-control" %>
<%= error_tag f, :confirm_password %>
</div>
<%= hidden_input f, :email, value: @email %>
<%= hidden_input f, :key, value: @key %>
<div class="form-group">
<%= submit "Reset password", class: "btn btn-primary" %>
</div>
<% end %>
<%= link "Back", to: page_path(@conn, :index) %>