<%= _('Edit profile') %>
<%= error_messages_for :profile %>
<% labelled_form_for :profile_data, @profile, :html => { :multipart => true } do |f| %>
<%= render :partial => partial_for_class(@profile.class), :locals => { :f => f } %>
<%= _('Change picture') %>
<% f.fields_for :image_builder, @profile.image do |i| %>
<%= file_field_or_thumbnail(_('Image:'), @profile.image, i) %>
<% end %>
<%= _('Privacy options') %>
<%= _('This profile is:') %>
<%= radio_button 'profile_data', 'public_profile', 'true' %>
<%= _('Public') %>
<%= radio_button 'profile_data', 'public_profile', 'false' %>
<%= _('Private') %>
<%= _("This profile's content is:") %>
<%= radio_button 'profile_data', 'public_content', 'true' %>
<%= _('Public') %>
<%= radio_button 'profile_data', 'public_content', 'false' %>
<%= _('Private') %>
<%= select_categories(:profile_data, _('Select the categories of your interest'), 1) %>
<% button_bar do %>
<%= submit_button('save', _('Save'), :cancel => {:action => 'index'}) %>
<%= button(:back, _('Back to control panel'), :controller => 'profile_editor') %>
<% end %>
<% end %>
<%# = generate_form :info, @info, {...} %>