Commit 783f8f795aa94808ba957a081ce576f3792ad6b5

Authored by Gust
Committed by Fabio Teixeira
1 parent bc3cc6a2

Fix lenght validation on basic tab and change to finality to text_area

Signed-off-by: David Carlos <ddavidcarlos1392@gmail.com>
Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb
... ... @@ -2,7 +2,7 @@
2 2  
3 3 <h3> <%= _("Finality") %> </h3>
4 4 <div id="finality">
5   - <%= text_field_tag("software[finality]", @profile.software_info.finality) %>
  5 + <%= text_area_tag "software[finality]", @profile.software_info.finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140%>
6 6 </div>
7 7  
8 8 <h3> <%= _("Licenses") %> </h3>
... ...
views/mpog_software_plugin_myprofile/_public_software_info.html.erb
... ... @@ -50,17 +50,12 @@
50 50 <%= radio_button_tag("software[intern]", false, !@software_info.intern)%>
51 51 <div class="formfieldline">
52 52 <%= label_tag "operating_platform", _("Operating Platform: ") %> <br />
53   - <%= text_area_tag "software[operating_platform]", @software_info.operating_platform %>
54   -</div>
55   -
56   -<div class="formfieldline">
57   - <%= label_tag "objectives", _("Objectives: ")%><br />
58   - <%= text_area_tag "software[objectives]", @software_info.objectives, :maxlength=>"140"%>
  53 + <%= text_area_tag "software[operating_platform]", @software_info.operating_platform, :cols => 40, :rows => 5%>
59 54 </div>
60 55  
61 56 <div class="formfieldline">
62 57 <%= label_tag "features", _("Features: ")%><br />
63   - <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000" %>
  58 + <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000", :cols => 40, :rows => 5%>
64 59 </div>
65 60  
66 61 <div id='libraries_fields'>
... ...
views/mpog_software_plugin_myprofile/new_software.html.erb
... ... @@ -37,7 +37,7 @@
37 37 <%= fields_for @software_info do |swf| %>
38 38 <div class="formfield type-text">
39 39 <%= swf.label("finality" ,_("Finality"), :class=>"formlabel") %>
40   - <%= required swf.text_area(:finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 100) %>
  40 + <%= required swf.text_area(:finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140) %>
41 41 <%= content_tag(:small,_('Insert the finality'), :id => 'finality-balloon', :class => "helper-balloon") %>
42 42 </div>
43 43 <% end %>
... ...