Commit 484cf1f1e1b0093614429f90fbc91f8c96132a57

Authored by Luciano Prestes
1 parent 1dc3fa59
Exists in master and in 79 other branches add_sisp_to_chef, add_super_archives_plugin, api_for_colab, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, design_validation, dev_env_minimal, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, focus_search_field_theme, gov-user-refactoring, gov-user-refactoring-rails4, header_fix, institution_modal_on_rating, kalibro-conf-refactoring, kalibro-processor-package, lxc_settings, margin_fix, mezuro_cookbook, prezento, refactor_download_block, refactor_software_communities, refactor_software_for_sisp, register_page, release-process, release-process-v2, remove-unused-images, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, removing_super_archives_email, review_message, scope2method, signals_user_noosfero, sisp_catalog_header, sisp_colab_config, sisp_dev, sisp_dev_master, sisp_simple_version, software_as_organization, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_minimal_env, spb_to_rails4, spec_refactor, stable-4.1, stable-4.2, stable-4.x, temp_soft_comm_refactoring, theme_header, theme_javascript_refactory, thread_dropdown, thread_page, update_search_by_categories, update_software_api, update_softwares_boxes

Update designer of edit software

Signed-off-by: Fabio Teixeira <fabio1079@gmail.com>
Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
views/software_communities_plugin_myprofile/_public_software_info.html.erb
1   -<h1><%= _('Edit software') %></h1>
2   -
3   -<div class="formfieldline">
4   - <h4> <%= _("Operating Platform") %> </h4>
5   - <%= text_area_tag "software[operating_platform]", @software_info.operating_platform, :cols => 40, :rows => 5%>
6   -</div>
7   -
8   -<div class="formfieldline">
9   - <h4> <%= _("Features") %> </h4>
10   - <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000", :cols => 40, :rows => 5%>
11   -</div>
12   -
13   -<div id='libraries_fields'>
14   - <h4> <%= _("Libraries") %> </h4>
15   -
16   - <%= render :partial => 'library_fields', :locals => {:object_name => 'community', :profile => @community, :libraries => @list_libraries } %>
17   -</div>
18   -<br />
19   -
20   -<div id='operating_system_fields'>
21   - <h4> <%= _("Operating Systems") %> </h4>
22   -
23   - <%= render :partial => 'operating_system_fields', :locals => {:object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %>
24   -</div>
25   -<br />
26   -
27   -<br />
28   -<div id='programming_languages_fields'>
29   - <h4> <%= _("Programming languages") %> </h4>
30   -
31   - <%= render :partial => 'language_fields', :locals => { :object_name => 'community', :profile => @community, :languages => @list_languages } %>
32   -</div>
33   -
34   -<br />
35   -<div id='database_fields'>
36   - <h4> <%= _("Databases") %> </h4>
37   -
38   - <%= render :partial => 'database_fields', :locals => {:object_name => 'community', :profile => @community, :database => @list_databases } %>
39   -</div>
40   -
41   -<div id = "demonstration_url">
42   - <h4> <%= _("Demonstration url") %> </h4>
43   - <%= text_field_tag("software[demonstration_url]", @software_info.demonstration_url) %>
44   -</div>
45   -
46   -<br>
47   -
48 1 <div id = "public_software">
49 2 <% if @disabled_public_software_field == true %>
50 3 <%= check_box_tag("software[public_software]", "true", @software_info.public_software?, :disabled => "disabled") %>
... ... @@ -101,3 +54,49 @@
101 54 </div>
102 55 </div>
103 56 </div>
  57 +
  58 +<div class="formfieldline">
  59 + <h4> <%= _("Operating Platform") %> </h4>
  60 + <%= text_area_tag "software[operating_platform]", @software_info.operating_platform, :cols => 40, :rows => 5%>
  61 +</div>
  62 +
  63 +<div class="formfieldline">
  64 + <h4> <%= _("Features") %> </h4>
  65 + <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000", :cols => 40, :rows => 5%>
  66 +</div>
  67 +
  68 +<div id = "demonstration_url">
  69 + <h4> <%= _("Demonstration url") %> </h4>
  70 + <%= text_field_tag("software[demonstration_url]", @software_info.demonstration_url) %>
  71 +</div>
  72 +
  73 +<div id='libraries_fields'>
  74 + <h4> <%= _("Libraries") %> </h4>
  75 +
  76 + <%= render :partial => 'library_fields', :locals => {:object_name => 'community', :profile => @community, :libraries => @list_libraries } %>
  77 +</div>
  78 +
  79 +<br />
  80 +
  81 +<div id='operating_system_fields'>
  82 + <h4> <%= _("Operating Systems") %> </h4>
  83 +
  84 + <%= render :partial => 'operating_system_fields', :locals => {:object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %>
  85 +</div>
  86 +<br />
  87 +
  88 +<br />
  89 +<div id='programming_languages_fields'>
  90 + <h4> <%= _("Programming languages") %> </h4>
  91 +
  92 + <%= render :partial => 'language_fields', :locals => { :object_name => 'community', :profile => @community, :languages => @list_languages } %>
  93 +</div>
  94 +
  95 +<br />
  96 +<div id='database_fields'>
  97 + <h4> <%= _("Databases") %> </h4>
  98 +
  99 + <%= render :partial => 'database_fields', :locals => {:object_name => 'community', :profile => @community, :database => @list_databases } %>
  100 +</div>
  101 +
  102 +<br>
... ...
views/software_communities_plugin_myprofile/edit_software.html.erb
... ... @@ -4,7 +4,7 @@
4 4  
5 5 <%= labelled_form_for :community, :html => { :multipart => true, :id => 'edit-form' } do |f| %>
6 6  
7   - <% tabs << {:title => _("Software"), :id => 'basic-info',
  7 + <% tabs << {:title => _("Main Information"), :id => 'basic-info',
8 8 :content => (render :partial => 'main_software_editor_extras', :locals => {:f => f})} %>
9 9  
10 10 <% tabs << {:title => _("Specifications"), :id => 'especific-info',
... ...