Edit your profile

<% if @person.account -%> <% form_for("password", nil, :url => {:action => 'change_password'}, :html => {:id => 'change_password_form'}) do |f| %>

Change password

<%= f.password_field "password1", :label => "New password" %>
<%= f.password_field "password2", :label => "New password" %>

<%= submit_tag "Change password" %>

<% end %> <% end -%>

OpenID Identities

OpenID is a free and easy way to use a single digital identity across the Internet. For more information, <%= link_to "visit the OpenID web site", "http://www.openid.net" %>.

<% @person.open_id_identities.each do |id| -%> <% end -%> <% form_for("add_openid", nil, :url => {:action => "add_openid"}) do |f| -%> <% end -%>
<%= image_tag "ae_users/openid.gif" %> <%=h id.identity_url %> <%= button_to "Delete", {:action => "delete_openid", :id => id.id}, {:confirm => "Are you sure you wish to remove this OpenID?"} %>
Add new OpenID: <%= text_field_tag "openid_url", @openid_url, :style => "background: #FFFFFF url('#{image_path "ae_users/openid.gif"}') no-repeat scroll 0pt 50%; padding-left: 18px; width: 60%;" %> <%= submit_tag "Add" %>
<% form_for("email_addresses", nil, :url => {:action => 'edit_email_addresses'}, :html => {:id => 'edit_email_addresses_form'}) do |f| %>

Edit email addresses

Note: every account must have one "primary" email address. This is the one the site will use to send you email (for example, if you forget your password).

<% @person.email_addresses.each do |addr| -%> <% end -%>
Address Primary Delete
<%= addr.address %> <%= radio_button_tag "primary", addr.id, addr.primary %> <%= check_box_tag "delete", addr.id %>
Add new address: <%= text_field_tag "new_address", "", :style => "width: 100%" %> <%= radio_button_tag "primary", "new" %>
<%= submit_tag "Edit email addresses" %> <% end %> <% form_for("person", @person, :url => {:action => 'edit_profile'}, :html => {:id => 'edit_profile_form'}) do |f| %> <%= render :partial => 'personal_info', :locals => {:f => f} %> <% if @app_profile -%> <% form_for("app_profile", @app_profile) do |profile_form| %> <%= render :partial => "account/#{@app_profile.class.name.tableize.singularize}", :locals => {:f => profile_form}%> <%= submit_tag "Edit profile" %> <% end %> <% else -%> <%= submit_tag "Edit profile" %> <% end -%> <% end %>