mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
24 lines
709 B
Text
24 lines
709 B
Text
|
<h1>
|
||
|
Reset password
|
||
|
</h1>
|
||
|
<%= form_for @changeset, ~p"/passwords/#{@token}", fn f -> %>
|
||
|
<%= if @changeset.action do %>
|
||
|
<div class="alert alert-danger">
|
||
|
<p>
|
||
|
Oops, something went wrong! Please check the errors below.
|
||
|
</p>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
<div class="field">
|
||
|
<%= password_input(f, :password, class: "input", placeholder: "New password", minlength: 12) %>
|
||
|
<%= error_tag(f, :password) %>
|
||
|
</div>
|
||
|
<div class="field">
|
||
|
<%= password_input(f, :password_confirmation, class: "input", placeholder: "Confirm new password", minlength: 12) %>
|
||
|
<%= error_tag(f, :password_confirmation) %>
|
||
|
</div>
|
||
|
<div>
|
||
|
<%= submit("Submit", class: "button") %>
|
||
|
</div>
|
||
|
<% end %>
|