Advertisement
Guest User

Untitled

a guest
May 1st, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. <h2>Edit <%= resource_name.to_s.humanize %></h2>
  2.  
  3. <%= form_for(resource, as: resource_name, url: registration_path(resource_name), html: { method: :put }) do |f| %>
  4. <%= devise_error_messages! %>
  5.  
  6. <div class="field">
  7. <%= f.label :email %><br />
  8. <%= f.email_field :email, autofocus: true %>
  9. </div>
  10.  
  11. <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>
  12. <div>Currently waiting confirmation for: <%= resource.unconfirmed_email %></div>
  13. <% end %>
  14.  
  15. <div class="field">
  16. <%= f.label :name %><br />
  17. <%= f.text_field :name %>
  18. </div>
  19.  
  20. <div class="field">
  21. <%= f.label :tel %><br />
  22. <%= text_field :tel, :first %>
  23. -
  24. <%= text_field :tel, :center %>
  25. -
  26. <%= text_field :tel, :last %>
  27. </div>
  28.  
  29.  
  30.  
  31. <div class="field">
  32. <%= f.label :password %> <i>(leave blank if you don't want to change it)</i><br />
  33. <%= f.password_field :password, autocomplete: "off" %>
  34. </div>
  35.  
  36. <div class="field">
  37. <%= f.label :password_confirmation %><br />
  38. <%= f.password_field :password_confirmation, autocomplete: "off" %>
  39. </div>
  40.  
  41. <div class="field">
  42. <%= f.label :current_password %> <i>(we need your current password to confirm your changes)</i><br />
  43. <%= f.password_field :current_password, autocomplete: "off" %>
  44. </div>
  45.  
  46. <div class="actions">
  47. <%= f.submit "Update" %>
  48. </div>
  49. <% end %>
  50.  
  51. <h3>Cancel my account</h3>
  52.  
  53. <p>Unhappy? <%= button_to "Cancel my account", registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete %></p>
  54.  
  55. <%= link_to "Back", :back %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement