<%= _('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 } %>
<% unless @profile.person? && @environment.active_person_fields.include?('image') %>
<%= _('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 %>
<% 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 %>
<%= _('Translations') %>
<%= labelled_check_box(
_('Automaticaly redirect the visitor to the article translated to his/her language'),
'profile_data[redirect_l10n]', true, @profile.redirect_l10n
)%>
<%=
@plugins.dispatch(:profile_editor_extras).each do |content|
content.respond_to?(:call) ? content.call : content
end.join("\n")
%>
<%= 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 %>
<% if user && user.has_permission?('destroy_profile', profile) %>
<% button_bar(:id => 'delete-profile') do %>
<%= button(:remove, _('Delete profile'), {:action => :destroy_profile}) %>
<% end %>
<% end %>
<% end %>
<%# = generate_form :info, @info, {...} %>