edit.html.erb 1.2 KB

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