<%= _('Profile settings for %s') % profile.name %>

<%= error_messages_for :profile %> <% labelled_form_for :profile_data, @profile, :html => { :id => 'profile-data', :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) %><%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %> <% end %>

<%= _('Privacy options') %>

<% if profile.person? %>
<%= _('This profile is:') %> <%= radio_button 'profile_data', 'public_profile', 'true' %> <%= radio_button 'profile_data', 'public_profile', 'false' %>
<%= _('Activate Intranet access (restricted area only for me)') %> <%= _('Yes') %><%= _('Yes') %>
<%= _('Include my contact in directory of people') %> <%= _('Yes') %><%= _('Yes') %>
<%= _('Show my contents to all internet users') %> <%= _('Yes') %><%= _('No') %>
<%= _('Show my contents to my friends (person)') %> <%= _('Yes') %><%= _('Yes') %>
<% else %>
<%= _('This profile is:') %> <%= radio_button 'profile_data', 'public_profile', 'true' %> <%= radio_button 'profile_data', 'public_profile', 'false' %>
<%= _('Activate Intranet access (restricted area only for members)') %> <%= _('Yes') %><%= _('Yes') %>
<%= _('Include this group directory of groups') %> <%= _('Yes') %><%= _('Yes') %>
<%= _('Show content of this group to all internet users') %> <%= _('Yes') %><%= _('No') %>
<%= _('Show content of this group to members') %> <%= _('Yes') %><%= _('Yes') %>
<% end %> <%= select_categories(:profile_data, _('Select the categories of your interest'), 2) %> <% 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, {...} %>