Nicolae Claudius
11 years ago
1 changed files with 26 additions and 13 deletions
@ -1,16 +1,29 @@ |
|||||||
<%= render :partial => "users/shared/links" %> |
<br> |
||||||
|
|
||||||
<%= simple_form_for(resource, |
<div class="row"> |
||||||
as: resource_name, |
<div class="col-md-3"> |
||||||
url: password_path(resource_name), |
|
||||||
method: :put |
|
||||||
) do |f| %> |
|
||||||
<%= f.hidden_field :reset_password_token %> |
|
||||||
|
|
||||||
<%= devise_error_messages! %> |
<%= render 'users/shared/links' %> |
||||||
|
|
||||||
<%= f.input :password, label: "New password" %> |
</div> |
||||||
<%= f.input :password_confirmation, label: "Confirm new password" %> |
<div class="col-md-offset-2 col-md-4"> |
||||||
|
|
||||||
<%= f.submit "Change my password", class: 'btn btn-primary' %> |
<div class="well"> |
||||||
<% end %> |
<%= simple_form_for(resource, |
||||||
|
as: resource_name, |
||||||
|
url: password_path(resource_name), |
||||||
|
method: :put |
||||||
|
) do |f| %> |
||||||
|
<%= f.hidden_field :reset_password_token %> |
||||||
|
|
||||||
|
<%= devise_error_messages! %> |
||||||
|
|
||||||
|
<%= f.input :password, label: "New password" %> |
||||||
|
<%= f.input :password_confirmation, label: "Confirm new password" %> |
||||||
|
|
||||||
|
<%= f.submit "Change my password", class: 'btn btn-primary' %> |
||||||
|
<% end %> |
||||||
|
</div> |
||||||
|
|
||||||
|
</div> |
||||||
|
</div> |
Loading…
Reference in new issue