From 783f8f795aa94808ba957a081ce576f3792ad6b5 Mon Sep 17 00:00:00 2001 From: Gust Date: Thu, 16 Oct 2014 11:00:45 -0300 Subject: [PATCH] Fix lenght validation on basic tab and change to finality to text_area --- views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb | 2 +- views/mpog_software_plugin_myprofile/_public_software_info.html.erb | 9 ++------- views/mpog_software_plugin_myprofile/new_software.html.erb | 2 +- 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb b/views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb index c5e4f7d..f583c05 100644 --- a/views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb +++ b/views/mpog_software_plugin_myprofile/_main_software_editor_extras.html.erb @@ -2,7 +2,7 @@

<%= _("Finality") %>

- <%= text_field_tag("software[finality]", @profile.software_info.finality) %> + <%= text_area_tag "software[finality]", @profile.software_info.finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140%>

<%= _("Licenses") %>

diff --git a/views/mpog_software_plugin_myprofile/_public_software_info.html.erb b/views/mpog_software_plugin_myprofile/_public_software_info.html.erb index a3acd77..6bffd6a 100644 --- a/views/mpog_software_plugin_myprofile/_public_software_info.html.erb +++ b/views/mpog_software_plugin_myprofile/_public_software_info.html.erb @@ -50,17 +50,12 @@ <%= radio_button_tag("software[intern]", false, !@software_info.intern)%>
<%= label_tag "operating_platform", _("Operating Platform: ") %>
- <%= text_area_tag "software[operating_platform]", @software_info.operating_platform %> -
- -
- <%= label_tag "objectives", _("Objectives: ")%>
- <%= text_area_tag "software[objectives]", @software_info.objectives, :maxlength=>"140"%> + <%= text_area_tag "software[operating_platform]", @software_info.operating_platform, :cols => 40, :rows => 5%>
<%= label_tag "features", _("Features: ")%>
- <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000" %> + <%= text_area_tag "software[features]", @software_info.features, :maxlength=>"4000", :cols => 40, :rows => 5%>
diff --git a/views/mpog_software_plugin_myprofile/new_software.html.erb b/views/mpog_software_plugin_myprofile/new_software.html.erb index c51b0cd..100fa12 100644 --- a/views/mpog_software_plugin_myprofile/new_software.html.erb +++ b/views/mpog_software_plugin_myprofile/new_software.html.erb @@ -37,7 +37,7 @@ <%= fields_for @software_info do |swf| %>
<%= swf.label("finality" ,_("Finality"), :class=>"formlabel") %> - <%= required swf.text_area(:finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 100) %> + <%= required swf.text_area(:finality, :placeholder => _("It is a software of..."), :cols => 40, :rows => 5, :maxlength => 140) %> <%= content_tag(:small,_('Insert the finality'), :id => 'finality-balloon', :class => "helper-balloon") %>
<% end %> -- libgit2 0.21.2