edit.html.erb 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <div class='container'>
  2. <div class='row'>
  3. <div class='span8 offset2'>
  4. <div class='well'>
  5. <h2>Change your password</h2>
  6. <%= form_for(resource, as: resource_name, url: password_path(resource_name), html: { method: :put, class: 'form-horizontal' }) do |f| %>
  7. <%= devise_error_messages! %>
  8. <%= f.hidden_field :reset_password_token %>
  9. <div class="control-group">
  10. <%= f.label :password, "New password", class: 'control-label' %>
  11. <div class="controls">
  12. <%= f.password_field :password, autofocus: true, autocomplete: "off", class: 'span4' %>
  13. </div>
  14. </div>
  15. <div class="control-group">
  16. <%= f.label :password_confirmation, "Confirm new password" %>
  17. <div class="controls">
  18. <%= f.password_field :password_confirmation, autocomplete: "off", class: 'span4' %>
  19. </div>
  20. </div>
  21. <div class='form-actions'>
  22. <%= f.submit "Change my password", class: "btn btn-primary" %>
  23. </div>
  24. <% end %>
  25. <%= render "devise/shared/links" %>
  26. </div>
  27. </div>
  28. </div>
  29. </div>