+ <%= labelled_form_for :community, :html => { :multipart => true } do |f| %>
+
+ <%= required_fields_message %>
+
+ <%= required f.text_field(:name) %>
+
+ <%= fields_for @software_info do |swf| %>
+
+ <%= swf.label("acronym" ,_("Acronym"), :class=>"formlabel") %>
+ <%= swf.text_field(:acronym) %>
+
+ <%= swf.label _("Adherent to e-PING ?") %>
+
+ <%= swf.label "e_ping_true", "Yes" %>
+ <%= swf.radio_button(:e_ping,true)%>
+ <%= swf.label "e_ping_false", "No"%>
+ <%= swf.radio_button(:e_ping,false)%>
+
+ <%= swf.label _("Adherent to e-MAG ?") %>
+
+ <%= swf.label "e_mag_true", "Yes"%>
+ <%= swf.radio_button(:e_mag,true)%>
+ <%= swf.label "e_mag_false", "No"%>
+ <%= swf.radio_button(:e_mag,false)%>
+
+ <%= swf.label _("Adherent to ICP-Brasil ?") %>
+
+ <%= swf.label "icp_brasil_true", "Yes"%>
+ <%= swf.radio_button(:icp_brasil,true)%>
+ <%= swf.label "icp_brasil_false", "No"%>
+ <%= swf.radio_button(:icp_brasil,false)%>
+
+ <%= swf.label _("Adherent to e-ARQ ?") %>
+
+ <%= swf.label "e_arq_true", "Yes"%>
+ <%= swf.radio_button(:e_arq,true)%>
+ <%= swf.label "e_arq_false", "No"%>
+ <%= swf.radio_button(:e_arq,false)%>
+
+ <%= swf.label _("Internacionalizable ?") %>
+
+ <%= swf.label "intern_true", "Yes" %>
+ <%= swf.radio_button(:intern,true)%>
+ <%= swf.label "intern_false", "No"%>
+ <%= swf.radio_button(:intern,false)%>
+
+ <%= swf.label "operating_platform", _("Operating Platform: ") %>
+ <%= swf.text_area(:operating_platform, :class=>"expand-field") %>
+
+
+
+ <%= swf.label "objectives", _("Objectives: ")%>
+ <%= required swf.text_area(:objectives, :class=>"expand-field") %>
+
+
+
+ <%= swf.label "features", _("Features: ")%>
+ <%= required swf.text_area(:features, :class=>"expand-field") %>
+
+
+
+ <%= swf.label "demonstration_url", _("Demonstration URL: ") %>
+ <%= swf.text_field(:demonstration_url) %>
+
+ <% end %>
+
+
+ <%= content_tag('label', _('Fill in the search field to add offerers for this Software'), :id => "text-input-search-offerers") %>
+ <%= token_input_field_tag(:q, 'search-offerers', {:action => 'search_offerers'}, { :focus => true, :hint_text => _('Type in a search term for a person to be added as
+offerers'), :pre_populate => @tokenized_children}) %>
+
+
+
+
<%= _("Libraries") %>
+ <%= render :partial => 'library_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :libraries => @list_libraries } %>
+
+
+
+
+
<%= _("Operating Systems") %>
+ <% if @list_operating_systems.blank? %>
+ <%= OperatingSystemHelper.operating_system_as_tables(nil, false).call %>
+ <% end %>
+ <%= render :partial => 'operating_system_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %>
+
+
+
+ <%= fields_for @license_info do |lcv| %>
+
+ <% end %>
+
+
+
+
<%= _("Programming languages") %>
+ <% if @list_languages.blank? %>
+ <%= SoftwareLanguageHelper.language_as_tables(nil, false).call %>
+ <% end %>
+
+ <%= render :partial => 'language_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :languages => @list_languages } %>
+
+
+
+
+
<%= _("Databases") %>
+ <% if @list_databases.blank? %>
+ <%= DatabaseHelper.database_as_tables(nil, true).call %>
+ <% end %>
+
+ <%= render :partial => 'database_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :database => @list_databases } %>
+
+
+ <%= fields_for @software_categories do |cv| %>
+
+
<%= _("Software Categories:") %>
+
+ <%= cv.check_box :administration %>
+ <%= cv.label :administration, _("Administration") %>
+
+ <%= cv.check_box :agriculture %>
+ <%= cv.label :agriculture, _("Agriculture") %>
+
+ <%= cv.check_box :business_and_services %>
+ <%= cv.label :business_and_services, _("Business_and Services") %>
+
+ <%= cv.check_box :communication %>
+ <%= cv.label :communication, _("Communication") %>
+
+ <%= cv.check_box :culture %>
+ <%= cv.label :culture, _("Culture") %>
+
+ <%= cv.check_box :national_defense %>
+ <%= cv.label :national_defense, _("National Defense") %>
+
+ <%= cv.check_box :economy_and_finances %>
+ <%= cv.label :economy_and_finances, _("Economy and Finances") %>
+
+ <%= cv.check_box :education %>
+ <%= cv.label :education, _("Education") %>
+
+ <%= cv.check_box :energy %>
+ <%= cv.label :energy, _("Energy") %>
+
+ <%= cv.check_box :sports %>
+ <%= cv.label :sports, _("Sports") %>
+
+ <%= cv.check_box :habitation %>
+ <%= cv.label :habitation, _("Habitation") %>
+
+ <%= cv.check_box :industry %>
+ <%= cv.label :industry, _("Industry") %>
+
+ <%= cv.check_box :environment %>
+ <%= cv.label :environment, _("Environment") %>
+
+ <%= cv.check_box :research_and_development %>
+ <%= cv.label :research_and_development, _("Research and Development") %>
+
+ <%= cv.check_box :social_security %>
+ <%= cv.label :social_security, _("Social Security") %>
+
+ <%= cv.check_box :social_protection %>
+ <%= cv.label :social_protection, _("Social Protection") %>
+
+ <%= cv.check_box :sanitation %>
+ <%= cv.label :sanitation, _("Sanitation") %>
+
+ <%= cv.check_box :health %>
+ <%= cv.label :health, _("Health") %>
+
+ <%= cv.check_box :security_public_order %>
+ <%= cv.label :security_public_order, _("Security and Public Order") %>
+
+ <%= cv.check_box :work %>
+ <%= cv.label :work, _("Work") %>
+
+ <%= cv.check_box :transportation %>
+ <%= cv.label :transportation, _("Transportation") %>
+
+ <%= cv.check_box :urbanism %>
+ <%= cv.label :urbanism, _("Urbanism") %>
+
+ <% end %>
+ <%= 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:')%>
+
+
+
+
+ <%= template_options(:communities, 'community')%>
+
+ <%= hidden_field_tag('back_to', @back_to) %>
+
+ <% button_bar do %>
+ <%= submit_button(:save, _('Create')) %>
+ <%= button(:cancel, _('Cancel'), @back_to ) %>
+ <% end %>
+
+ <% end %>
+
+
diff --git a/views/mpog_software_plugin_myprofile/public_software_info.html.erb b/views/mpog_software_plugin_myprofile/public_software_info.html.erb
deleted file mode 100644
index 921fb77..0000000
--- a/views/mpog_software_plugin_myprofile/public_software_info.html.erb
+++ /dev/null
@@ -1,258 +0,0 @@
-<%= javascript_include_tag "mpog-validations" %>
-
-
- <%= _("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 }%>
-
- <%= labelled_form_for :community, :html => { :multipart => true } do |f| %>
-
- <%= required_fields_message %>
-
- <%= required f.text_field(:name) %>
-
- <%= fields_for @software_info do |swf| %>
-
- <%= swf.label("acronym" ,_("Acronym"), :class=>"formlabel") %>
- <%= swf.text_field(:acronym) %>
-
-
-
- <%= swf.label _("Adherent to e-PING ?") %>
-
- <%= swf.label "e_ping_true", "Yes" %>
- <%= swf.radio_button(:e_ping,true)%>
- <%= swf.label "e_ping_false", "No"%>
- <%= swf.radio_button(:e_ping,false)%>
-
-
-
- <%= swf.label _("Adherent to e-MAG ?") %>
-
- <%= swf.label "e_mag_true", "Yes"%>
- <%= swf.radio_button(:e_mag,true)%>
- <%= swf.label "e_mag_false", "No"%>
- <%= swf.radio_button(:e_mag,false)%>
-
-
-
- <%= swf.label _("Adherent to ICP-Brasil ?") %>
-
- <%= swf.label "icp_brasil_true", "Yes"%>
- <%= swf.radio_button(:icp_brasil,true)%>
- <%= swf.label "icp_brasil_false", "No"%>
- <%= swf.radio_button(:icp_brasil,false)%>
-
-
-
- <%= swf.label _("Adherent to e-ARQ ?") %>
-
- <%= swf.label "e_arq_true", "Yes"%>
- <%= swf.radio_button(:e_arq,true)%>
- <%= swf.label "e_arq_false", "No"%>
- <%= swf.radio_button(:e_arq,false)%>
-
-
-
- <%= swf.label _("Internacionalizable ?") %>
-
- <%= swf.label "intern_true", "Yes" %>
- <%= swf.radio_button(:intern,true)%>
- <%= swf.label "intern_false", "No"%>
- <%= swf.radio_button(:intern,false)%>
-
- <%= swf.label "operating_platform", _("Operating Platform: ") %>
- <%= swf.text_area(:operating_platform, :class=>"expand-field") %>
-
-
-
- <%= swf.label "objectives", _("Objectives: ")%>
- <%= required swf.text_area(:objectives, :class=>"expand-field") %>
-
-
-
- <%= swf.label "features", _("Features: ")%>
- <%= required swf.text_area(:features, :class=>"expand-field") %>
-
-
-
- <%= swf.label "demonstration_url", _("Demonstration URL: ") %>
- <%= swf.text_field(:demonstration_url) %>
-
- <% end %>
-
-
- <%= content_tag('label', _('Fill in the search field to add offerers for this Software'), :id => "text-input-search-offerers") %>
- <%= token_input_field_tag(:q, 'search-offerers', {:action => 'search_offerers'}, { :focus => true, :hint_text => _('Type in a search term for a person to be added as
-offerers'), :pre_populate => @tokenized_children}) %>
-
-
-
-
<%= _("Libraries") %>
- <%= render :partial => 'library_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :libraries => @list_libraries } %>
-
-
-
-
-
<%= _("Operating Systems") %>
- <% if @list_operating_systems.blank? %>
- <%= OperatingSystemHelper.operating_system_as_tables(nil, false).call %>
- <% end %>
- <%= render :partial => 'operating_system_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %>
-
-
-
- <%= fields_for @license_info do |lcv| %>
-
- <% end %>
-
-
-
-
<%= _("Programming languages") %>
- <% if @list_languages.blank? %>
- <%= SoftwareLanguageHelper.language_as_tables(nil, false).call %>
- <% end %>
-
- <%= render :partial => 'language_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :languages => @list_languages } %>
-
-
-
-
-
<%= _("Databases") %>
- <% if @list_databases.blank? %>
- <%= DatabaseHelper.database_as_tables(nil, true).call %>
- <% end %>
-
- <%= render :partial => 'database_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :database => @list_databases } %>
-
-
- <%= fields_for @software_categories do |cv| %>
-
-
<%= _("Software Categories:") %>
-
- <%= cv.check_box :administration %>
- <%= cv.label :administration, _("Administration") %>
-
- <%= cv.check_box :agriculture %>
- <%= cv.label :agriculture, _("Agriculture") %>
-
- <%= cv.check_box :business_and_services %>
- <%= cv.label :business_and_services, _("Business_and Services") %>
-
- <%= cv.check_box :communication %>
- <%= cv.label :communication, _("Communication") %>
-
- <%= cv.check_box :culture %>
- <%= cv.label :culture, _("Culture") %>
-
- <%= cv.check_box :national_defense %>
- <%= cv.label :national_defense, _("National Defense") %>
-
- <%= cv.check_box :economy_and_finances %>
- <%= cv.label :economy_and_finances, _("Economy and Finances") %>
-
- <%= cv.check_box :education %>
- <%= cv.label :education, _("Education") %>
-
- <%= cv.check_box :energy %>
- <%= cv.label :energy, _("Energy") %>
-
- <%= cv.check_box :sports %>
- <%= cv.label :sports, _("Sports") %>
-
- <%= cv.check_box :habitation %>
- <%= cv.label :habitation, _("Habitation") %>
-
- <%= cv.check_box :industry %>
- <%= cv.label :industry, _("Industry") %>
-
- <%= cv.check_box :environment %>
- <%= cv.label :environment, _("Environment") %>
-
- <%= cv.check_box :research_and_development %>
- <%= cv.label :research_and_development, _("Research and Development") %>
-
- <%= cv.check_box :social_security %>
- <%= cv.label :social_security, _("Social Security") %>
-
- <%= cv.check_box :social_protection %>
- <%= cv.label :social_protection, _("Social Protection") %>
-
- <%= cv.check_box :sanitation %>
- <%= cv.label :sanitation, _("Sanitation") %>
-
- <%= cv.check_box :health %>
- <%= cv.label :health, _("Health") %>
-
- <%= cv.check_box :security_public_order %>
- <%= cv.label :security_public_order, _("Security and Public Order") %>
-
- <%= cv.check_box :work %>
- <%= cv.label :work, _("Work") %>
-
- <%= cv.check_box :transportation %>
- <%= cv.label :transportation, _("Transportation") %>
-
- <%= cv.check_box :urbanism %>
- <%= cv.label :urbanism, _("Urbanism") %>
-
- <% end %>
- <%= 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:')%>
-
-
-
-
- <%= template_options(:communities, 'community')%>
-
- <%= hidden_field_tag('back_to', @back_to) %>
-
- <% button_bar do %>
- <%= submit_button(:save, _('Create')) %>
- <%= button(:cancel, _('Cancel'), @back_to ) %>
- <% end %>
-
- <% end %>
-
-
diff --git a/views/software_editor_extras.html.erb b/views/software_editor_extras.html.erb
deleted file mode 100644
index d44352d..0000000
--- a/views/software_editor_extras.html.erb
+++ /dev/null
@@ -1,153 +0,0 @@
-
<%= _('Software Information') %>
-
-
- <%= labelled_text_field(_("Acronym"), 'software_info[acronym]', context.profile.software_info.acronym) %>
-
-
-
- <%= _("Adherent to e-PING?") %>
- <%= labelled_radio_button(_('Yes'), 'software_info[e_ping]', 'true', context.profile.software_info.e_ping)%>
- <%= labelled_radio_button(_('No'), 'software_info[e_ping]', 'false', !context.profile.software_info.e_ping)%>
-
-
- <%= _("Adherent to e-MAG?") %>
- <%= labelled_radio_button(_('Yes'), 'software_info[e_mag]', 'true', context.profile.software_info.e_mag)%>
- <%= labelled_radio_button(_('No'), 'software_info[e_mag]', 'false', !context.profile.software_info.e_mag)%>
-
-
- <%= _("Adherent to ICP-Brasil?") %>
- <%= labelled_radio_button(_('Yes'), 'software_info[icp_brasil]', 'true', context.profile.software_info.icp_brasil)%>
- <%= labelled_radio_button(_('No'), 'software_info[icp_brasil]', 'false', !context.profile.software_info.icp_brasil)%>
-
-
- <%= _("Adherent to e-ARQ?") %>
- <%= labelled_radio_button(_('Yes'), 'software_info[e_arq]', 'true', context.profile.software_info.e_arq)%>
- <%= labelled_radio_button(_('No'), 'software_info[e_arq]', 'false', !context.profile.software_info.e_arq)%>
-
-
- <%= _("Internacionalizable") %>
- <%= labelled_radio_button(_('Yes'), 'software_info[intern]', 'true', context.profile.software_info.intern)%>
- <%= labelled_radio_button(_('No'), 'software_info[intern]', 'false', !context.profile.software_info.intern)%>
-
-
-
- <%= label_tag('software_info[operating_platform]', 'Operating Platform:') %>
-
- <%= text_area_tag('software_info[operating_platform]', context.profile.software_info.operating_platform, :size => '40x20', :class=>"expand-field") %>
-
-
-
- <%= label_tag('software_info[objectives]', 'Objectives:') %>
-
- <%= text_area_tag('software_info[objectives]', context.profile.software_info.objectives, :size => '40x20', :class=>"expand-field") %>
-
-
-
- <%= label_tag('software_info[features]', 'Features:') %>
-
- <%= text_area_tag('software_info[features]', context.profile.software_info.features, :size => '40x20', :class=>"expand-field") %>
-
-
-
- <%= labelled_text_field('Demonstration URL', 'software_info[demonstration_url]', context.profile.software_info.demonstration_url) %>
-
-
-
<%= _("Licenses") %>
-
- <%= select_tag(:version, options_for_select(LicenseHelper.getListLicenses.collect{|l| [l.version, l.id]}, :selected => context.profile.software_info.license_info.id), :onchange => "get_license_link('version')") %>
-
-
-
<%= _("License link") %>
- <% LicenseHelper.getListLicenses.each do | license | %>
-
- <% end %>
-
-
<%= context.profile.software_info.license_info.link %>
-
-
-
<%= _("Libraries") %>
-
- <% LibraryHelper.library_as_tables(context.profile.software_info.libraries).each do |tab| %>
- <%= tab.call %>
- <%end%>
-
-
-
<%= LibraryHelper.add_dynamic_table %>
-<%= link_to _('New Library'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-libraries"%>
-
-
<%= _("Programming Languages") %>
-
- <% SoftwareLanguageHelper.language_as_tables(context.profile.software_info.software_languages).each do |tab| %>
- <%= tab.call %>
- <%end%>
-
-
-
<%= SoftwareLanguageHelper.add_dynamic_table %>
-<%= link_to _('New language'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-languages"%>
-
-
<%= _("Databases") %>
-
- <% DatabaseHelper.database_as_tables(context.profile.software_info.software_databases).each do |tab| %>
- <%= tab.call %>
- <%end%>
-
-
-
<%= DatabaseHelper.add_dynamic_table %>
-<%= link_to _('New Database'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-databases"%>
-
-
-
<%= _("Software Categories") %>
-
- <%= labelled_check_box _("Administration"), "software_categories[administration]", "1", context.profile.software_info.software_categories.administration %>
-
- <%= labelled_check_box _("Agriculture"), "software_categories[agriculture]", "1", context.profile.software_info.software_categories.agriculture %>
-
- <%= labelled_check_box _("Business_and Services"), "software_categories[business_and_services]", "1", context.profile.software_info.software_categories.business_and_services %>
-
- <%= labelled_check_box _("Communication"), "software_categories[communication]", "1", context.profile.software_info.software_categories.communication %>
-
- <%= labelled_check_box _("Culture"), "software_categories[culture]", "1", context.profile.software_info.software_categories.culture %>
-
- <%= labelled_check_box _("National Defense"), "software_categories[national_defense]", "1", context.profile.software_info.software_categories.national_defense %>
-
- <%= labelled_check_box _("Economy and Finances"), "software_categories[economy_and_finances]", "1", context.profile.software_info.software_categories.economy_and_finances %>
-
- <%= labelled_check_box _("Education"), "software_categories[education]", "1", context.profile.software_info.software_categories.education %>
-
- <%= labelled_check_box _("Energy"), "software_categories[energy]", "1", context.profile.software_info.software_categories.energy %>
-
- <%= labelled_check_box _("Sports"), "software_categories[sports]", "1", context.profile.software_info.software_categories.sports %>
-
- <%= labelled_check_box _("Habitation"), "software_categories[habitation]", "1", context.profile.software_info.software_categories.habitation %>
-
- <%= labelled_check_box _("Industry"), "software_categories[industry]", "1", context.profile.software_info.software_categories.industry %>
-
- <%= labelled_check_box _("Environment"), "software_categories[environment]", "1", context.profile.software_info.software_categories.environment %>
-
- <%= labelled_check_box _("Research and Development"), "software_categories[research_and_development]", "1", context.profile.software_info.software_categories.research_and_development %>
-
- <%= labelled_check_box _("Social Security"), "software_categories[social_security]", "1", context.profile.software_info.software_categories.social_security %>
-
- <%= labelled_check_box _("Social Protection"), "software_categories[social_protection]", "1", context.profile.software_info.software_categories.social_protection %>
-
- <%= labelled_check_box _("Sanitation"), "software_categories[sanitation]", "1", context.profile.software_info.software_categories.sanitation %>
-
- <%= labelled_check_box _("Health"), "software_categories[health]", "1", context.profile.software_info.software_categories.health %>
-
- <%= labelled_check_box _("Security and Public Order"), "software_categories[security_public_order]", "1", context.profile.software_info.software_categories.security_public_order %>
-
- <%= labelled_check_box _("Work"), "software_categories[work]", "1", context.profile.software_info.software_categories.work %>
-
- <%= labelled_check_box _("Transportation"), "software_categories[transportation]", "1", context.profile.software_info.software_categories.transportation %>
-
- <%= labelled_check_box _("Urbanism"), "software_categories[urbanism]", "1", context.profile.software_info.software_categories.urbanism %>
-
-
-
<%= _("Operating System") %>
-
- <% OperatingSystemHelper.operating_system_as_tables(context.profile.software_info.operating_systems).each do |tab| %>
- <%= tab.call %>
- <%end%>
-
-
<%= OperatingSystemHelper.add_dynamic_table %>
-<%= link_to _('New Operating System'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-operating_system"%>
--
libgit2 0.21.2