Browse Source

pass reset layout

pull/1/head
Nicolae Claudius 11 years ago
parent
commit
1fb403f3b8
  1. 39
      app/views/users/passwords/edit.html.erb

39
app/views/users/passwords/edit.html.erb

@ -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 <%= render 'users/shared/links' %>
) do |f| %>
<%= f.hidden_field :reset_password_token %> </div>
<div class="col-md-offset-2 col-md-4">
<%= devise_error_messages! %>
<div class="well">
<%= simple_form_for(resource,
as: resource_name,
url: password_path(resource_name),
method: :put
) do |f| %>
<%= f.hidden_field :reset_password_token %>
<%= f.input :password, label: "New password" %> <%= devise_error_messages! %>
<%= f.input :password_confirmation, label: "Confirm new password" %>
<%= f.submit "Change my password", class: 'btn btn-primary' %> <%= f.input :password, label: "New password" %>
<% end %> <%= f.input :password_confirmation, label: "Confirm new password" %>
<%= f.submit "Change my password", class: 'btn btn-primary' %>
<% end %>
</div>
</div>
</div>
Loading…
Cancel
Save