cirandas.net

ref: master

app/views/memberships/new_community.html.erb


<%= _('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, :html => { :multipart => true } do |f| %> <%= required_fields_message %> <%= required f.text_field(:name) %> <%= render :partial => 'shared/profile_kinds', :locals => {:form_field => 'community'} %> <% @plugins.dispatch(:new_community_hidden_fields).each do |field| %> <% field.each do |key, value| %> <%= f.hidden_field(key, :value => value) %> <% end %> <% end %> <%= render :partial => 'shared/organization_custom_fields', :locals => { :f => f, :object_name => 'community', :profile => @community } %> <%= render :partial => 'shared/custom_fields', :locals => { :f => f, :profile => @community, :signup => true } %> <%= 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).').html_safe %>
<%= radio_button 'community', 'closed', 'false', :style => 'float: left' %>
<%= _('After joining this group (a moderator can always desactivate access for users later).').html_safe %>
<%= template_options(:communities, 'community') if @user_is_admin %> <%= hidden_field_tag('back_to', @back_to) %> <%= button_bar do %> <%= submit_button(:save, _('Create')) %> <%= button(:cancel, _('Cancel'), @back_to ) %> <% end %> <% end %>