Mercurial > hg > soundsoftware-site
changeset 73:a7fa8dd0446f luisf
Added a description string to the user's description field, to make it more "informative".
author | luisf |
---|---|
date | Wed, 08 Dec 2010 17:03:29 +0000 |
parents | 45aa8d16ec10 |
children | 11328a082ef3 |
files | app/views/account/register.rhtml app/views/users/_form.rhtml config/locales/en.yml |
diffstat | 3 files changed, 18 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ <h3><%=l(:label_ssamr_details)%></h3> <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> - <p><%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %></p> - <% end %> - + <p> + <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %> + <br /> + <em> <%=l(:text_user_ssamr_description_info)%></em> + </p> + <% end %> +
--- 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 @@ <div class="box tabular"> <h3><%=l(:label_ssamr_details)%></h3> - <%= error_messages_for :ssamr_user_details %> - <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> - <p><%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %></p> - <% end %> + <% fields_for :ssamr_user_details, :builder => TabularFormBuilder, :lang => current_language do |ssamr_user_detail| %> + <p> + <%= ssamr_user_detail.text_area :description, :rows => 3, :cols => 40, :required => true %> + <br /> + <em> <%=l(:text_user_ssamr_description_info)%></em> + </p> + <% end %> </div> + + <div class="box tabular"> <h3><%=l(:label_authentication)%></h3> <% unless @auth_sources.empty? %>
--- 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.<br /> This will be used in all project-related URLs, such as the repository name. Once saved, the identifier <b>can not</b> be changed.' text_project_name_info: "This name of your project throughout this site.<br /> 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."