Mercurial > hg > soundsoftware-site
changeset 72:45aa8d16ec10 luisf
Feature #43: Added new strings and placeholders to make the new project page's fields more clear.
author | luisf |
---|---|
date | Wed, 08 Dec 2010 16:51:20 +0000 |
parents | 7c828d63cb06 |
children | a7fa8dd0446f |
files | app/views/projects/_form.rhtml config/locales/en.yml |
diffstat | 2 files changed, 18 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/app/views/projects/_form.rhtml Wed Dec 08 15:14:02 2010 +0000 +++ b/app/views/projects/_form.rhtml Wed Dec 08 16:51:20 2010 +0000 @@ -2,7 +2,10 @@ <div class="box"> <!--[form:project]--> -<p><%= f.text_field :name, :required => true, :size => 60 %></p> +<p><%= f.text_field :name, :required => true, :size => 60 %> + <br /> + <em> <%= l(:text_project_name_info) %></em> +</p> <% unless @project.allowed_parents.compact.empty? %> <p><%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %></p> @@ -11,10 +14,17 @@ <p><%= f.text_area :description, :rows => 5, :class => 'wiki-edit' %></p> <p><%= f.text_field :identifier, :required => true, :size => 60, :disabled => @project.identifier_frozen? %> <% unless @project.identifier_frozen? %> -<br /><em><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info) %></em> + <br /> + <em><%= l(:text_length_between, :min => 1, :max => Project::IDENTIFIER_MAX_LENGTH) %> <%= l(:text_project_identifier_info) %></em> <% end %></p> -<p><%= f.text_field :homepage, :size => 60 %></p> -<p><%= f.check_box :is_public %></p> +<p><%= f.text_field :homepage, :size => 60 %> +<br /> + <em> <%= l(:text_project_homepage_info) %></em> +</p> +<p><%= f.check_box :is_public %> +<br /> + <em> <%= l(:text_project_visibility_info) %></em> +</p> <%= wikitoolbar_for 'project_description' %> <% @project.custom_field_values.each do |value| %>
--- a/config/locales/en.yml Wed Dec 08 15:14:02 2010 +0000 +++ b/config/locales/en.yml Wed Dec 08 16:51:20 2010 +0000 @@ -865,7 +865,10 @@ text_tip_issue_begin_day: issue beginning this day text_tip_issue_end_day: issue ending this day text_tip_issue_begin_end_day: issue beginning and ending this day - text_project_identifier_info: 'Only lower case letters (a-z), numbers and dashes are allowed.<br />Once saved, the identifier can not be changed.' + 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_caracters_maximum: "{{count}} characters maximum." text_caracters_minimum: "Must be at least {{count}} characters long." text_length_between: "Length between {{min}} and {{max}} characters."