<%= _('General information') %>

<%= required_fields_message %> <%= required f.text_field(:name) %> <% if @environment.enabled?('enable_organization_url_change') %> <% end %>
<%= text_field_tag 'profile_data[nickname]', @profile_data.nickname, :id => 'profile_data_nickname', :size => 30, :maxlength => 16, :onchange => (@environment.enabled?('enable_organization_url_change') ? "updateUrlField(this, 'profile_data_identifier')" : "") %> <%= _('A short name by which the organization is know.')%>
<% if @environment.enabled?('enable_organization_url_change') %> <%= hidden_field_tag 'old_profile_identifier', @profile.identifier %>
<%= labelled_form_field( _('Address'), content_tag('code', url_for(profile.url).gsub(/#{profile.identifier}$/, '') + text_field(:profile_data, :identifier, :onchange => "warn_value_change()", :size => 25) ) + content_tag('div', content_tag('strong', _('WARNING!')) + ' ' + _("You are about to change the address, and this will break external links to the homepage or to content inside it. Do you really want to change?") + content_tag('div', button_to_function(:ok, _("Yes"), "confirm_change()") + ' ' + button_to_function(:cancel, _('No'), 'no_change()') ), :id => 'identifier-change-confirmation', :class => 'change-confirmation', :style => 'display: none;' ) ) %>
<% end %> <%= render :partial => 'shared/custom_fields', :locals => { :f => f, :object_name => 'profile_data', :profile => @profile, :only_required => false } %> <%= labelled_check_box(_('Enable "contact us"'), 'profile_data[enable_contact_us]', "1", @profile.enable_contact_us) if @profile.enterprise? %>

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

<% if profile.community? %>
<%= _('New members must be approved:')%>
<%= radio_button 'profile_data', 'closed', 'true', :style => 'float: left' %>
<%= _('Before joining this group (a moderator has to accept the member in pending request before member can access the intranet and/or the website).') %>
<%= radio_button 'profile_data', 'closed', 'false', :style => 'float: left' %>
<%= _('After joining this group (a moderator can always desactivate access for users later).') %>

<% end %>
<%= _('New articles posted by members of this group must be approved:')%>
<%= radio_button 'profile_data', 'moderated_articles', 'true', :style => 'float: left' %>
<%= _('Before being published in this group (a moderator has to accept the article in pending request before the article be listed as a article of this group).') %>
<%= radio_button 'profile_data', 'moderated_articles', 'false', :style => 'float: left' %>
<%= _('After being published in this group (a moderator can always remove publicated articles later).') %>