# HG changeset patch # User luisf # Date 1291827809 0 # Node ID a7fa8dd0446f2a64e90797b8ed60a000e78c6f23 # Parent 45aa8d16ec108ea3535a6aad599a73b593b12ca5 Added a description string to the user's description field, to make it more "informative". diff -r 45aa8d16ec10 -r a7fa8dd0446f app/views/account/register.rhtml --- a/app/views/account/register.rhtml Wed Dec 08 16:51:20 2010 +0000 +++ b/app/views/account/register.rhtml Wed Dec 08 17:03:29 2010 +0000 @@ -33,9 +33,13 @@

<%=l(:label_ssamr_details)%>

<% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> -

<%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %>

- <% end %> - +

+ <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %> +
+ <%=l(:text_user_ssamr_description_info)%> +

+ <% end %> + diff -r 45aa8d16ec10 -r a7fa8dd0446f app/views/users/_form.rhtml --- a/app/views/users/_form.rhtml Wed Dec 08 16:51:20 2010 +0000 +++ b/app/views/users/_form.rhtml Wed Dec 08 17:03:29 2010 +0000 @@ -21,12 +21,17 @@

<%=l(:label_ssamr_details)%>

- <%= error_messages_for :ssamr_user_details %> - <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> -

<%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %>

- <% end %> + <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> +

+ <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %> +
+ <%=l(:text_user_ssamr_description_info)%> +

+ <% end %>
+ +

<%=l(:label_authentication)%>

<% unless @auth_sources.empty? %> diff -r 45aa8d16ec10 -r a7fa8dd0446f config/locales/en.yml --- a/config/locales/en.yml Wed Dec 08 16:51:20 2010 +0000 +++ b/config/locales/en.yml Wed Dec 08 17:03:29 2010 +0000 @@ -868,7 +868,8 @@ text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.
This will be used in all project-related URLs, such as the repository name. Once saved, the identifier can not be changed.' text_project_name_info: "This name of your project throughout this site.
You can change your project's name at any time in the project's settings." text_project_visibility_info: "If your project is not public, it will only be visible to this site's users you add as project members." - :text_project_homepage_info: 'Link to an external project page.' + text_project_homepage_info: 'Link to an external project page.' + text_user_ssamr_description_info: 'Description of you interests and experience as a Researcher/Developer in the field of Audio and Music.' text_caracters_maximum: "{{count}} characters maximum." text_caracters_minimum: "Must be at least {{count}} characters long." text_length_between: "Length between {{min}} and {{max}} characters."