<% content_for :page_header do %>

Account Details

<% end %> <%= simple_form_for(resource, :as => resource_name, :url => user_registration_path, :html => { :method => :put }) do |f| %> <% if f.error_notification -%>
Wait don't go! There was a problem with your submission. Please review the errors below: ×
<% end -%>
Personal Information <%= f.input :name %> <%= f.input :date_of_birth %> <%= f.input :gender %> <%= f.input :title %> <%= f.input :personal_webpage %> <%= f.input :blog %>
Contact Information <% if devise_mapping.confirmable? && resource.pending_reconfirmation? %>

Currently waiting confirmation for: <%= resource.unconfirmed_email %>

<% end %> <%= f.input :email, as: :email, required: true %> <%= f.input :alternate_email, as: :email %> <%= f.input :campus_phone_number, as: :tel %> <%= f.input :alternate_phone_number, as: :tel %>
Attach your profile image <%= f.input :files, as: :file, label: 'Upload your file' %>
Change Your Password <%= f.input :password, label: "New password", input_html: { autocomplete: "off" } %> <%= f.input :password_confirmation, label: "Repeat your new password", input_html: { autocomplete: "off" } %>
Authorize Your Changes

Enter your current password to confirm your changes

<%= f.input :current_password, required: true %>
<%= f.submit class: 'btn btn-primary', value: 'Update My Account' %>
<% end %>

Account Deactivation

<%= button_to "Cancel My Account", cancel_registration_path(resource_name), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger' %>