<%= render :partial => 'profile_editor/first_edit_software_community_extras', :locals => {:class_step_one => "current-step", :class_step_two => "another-step"} %>

<%= _('Creating new software') %>

<%= _('Enter the basic information about the software.
You can add the details after you create it.') %>
<% 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 %> <% unless @errors.blank? %>

<%= _("Can`t create new software: #{@errors.length} errors") %>

<% end %>
<%= labelled_form_for :community, :html => { :multipart => true } do |f| %> <%= required_fields_message %>
> <%= label("name", _('Name'), {:class => 'formlabel mandatory'}) %> <%= required text_field(:community, :name, :size => 30, :maxlength => 100, :id => 'community_name_id') %>


> <%= label("domain", _('Domain'), {:class => "formlabel mandatory"}) %>
<%= environment.default_hostname %>/ <%= required text_field(:community, :identifier, :size => 30, :maxlength => 100, :id => 'community-identifier') %>
> <%= fields_for @software_info do |swf| %>
<%= swf.label("finality" ,_("Finality"), :class=>"formlabel mandatory") %> <%= required swf.text_area(:finality, :placeholder => _("What is the software for?"), :maxlength => 120) %>
<% end %>
<%= f.fields_for :image_builder, @community.image do |i| %> <%= file_field_or_thumbnail(_('Image:'), @community.image, i) %><%= _("Max size: %s (.jpg, .gif, .png)")% Image.max_size.to_humanreadable %> <% end %>
>
<%= render :partial => "license_info_fields", :locals => { :license_version => "", :license_id => "", :another_version=>"", :another_link=>"" } %>
<%= fields_for @software_info do |swf| %>
<%= swf.label "repository_url", _("Link to Repository: "), :class => "formlabel"%> <%= swf.text_field :repository_link, :class => "improve_input_size", :id => "software-info-repository-link" %>
<% end %> <%= hidden_field_tag('back_to', @back_to) %> <% button_bar do %> <%= submit_button(:save, _('Create')) %> <%= button(:cancel, _('Cancel'), @back_to ) %> <% end %> <% end %>