Commit 484cf1f1e1b0093614429f90fbc91f8c96132a57
1 parent
1dc3fa59
Exists in
master
and in
5 other branches
Update designer of edit software
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
2 changed files
with
47 additions
and
48 deletions
Show diff stats
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', | ... | ... |