<% if @wizard %> <%= render :partial => 'account/wizard_steps' %> <% end %>

<%= __('Creating new community') %>

<% if environment.enabled?('admin_must_approve_new_communities') %>
<%= _("Note that the creation of communities in this environment is restricted. Your request to create this new community will be sent to %{environment} administrators and will be approved or rejected according to their methods and criteria.") % { :environment => environment.name }%>
<%end %> <%= error_messages_for :community %>
<% labelled_form_for :community, @community, :html => { :multipart => true } do |f| %> <%= required_fields_message %> <%= required f.text_field(:name) %> <%= hidden_field_tag :wizard, params[:wizard] %> <%= render :partial => 'shared/organization_custom_fields', :locals => { :f => f, :object_name => 'community', :profile => @community } %> <% f.fields_for :image_builder, @community.image do |i| %> <%= file_field_or_thumbnail(_('Image:'), @community.image, i) %> <% end %>
<%= _('New members must be approved:')%>
<%= radio_button 'community', '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 'community', 'closed', 'false', :style => 'float: left' %>
<%= _('After joining this group (a moderator can always desactivate access for users later).') %>
<% button_bar do %> <%= submit_button(:save, _('Create')) %> <% if @wizard %> <%= button(:back, _('Back'), {:controller => 'search', :action => 'assets', :asset => 'communities', :wizard => true}) %> <% else %> <%= button(:cancel, _('Cancel'), :action => 'index') %> <% end %> <% end %> <% end %>