changeset 74:11328a082ef3 luisf

Feature #47: added a description. Feature #49: Turned autocomplete on in the Parent Task field. This should be thorouglly tested.
author luisf
date Wed, 08 Dec 2010 18:37:21 +0000
parents a7fa8dd0446f
children b9c2324779f6 e408a3f7089f
files app/views/issues/_form.rhtml config/locales/en.yml
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/app/views/issues/_form.rhtml	Wed Dec 08 17:03:29 2010 +0000
+++ b/app/views/issues/_form.rhtml	Wed Dec 08 18:37:21 2010 +0000
@@ -9,9 +9,12 @@
 <p><%= f.text_field :subject, :size => 80, :required => true %></p>
                                      
 <% if User.current.allowed_to?(:manage_subtasks, @project) %>
-<p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10 %></p>
-<div id="parent_issue_candidates" class="autocomplete"></div>
-<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
+  <p id="parent_issue"><%= f.text_field :parent_issue_id, :size => 10, :autocomplete => :on %>
+  <br />
+                          <em> <%=l(:text_issue_parent_issue_info)%></em>
+  </p>
+  <div id="parent_issue_candidates" class="autocomplete"></div>
+    <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %>
 <% end %>
 
 <p><%= f.text_area :description,
--- a/config/locales/en.yml	Wed Dec 08 17:03:29 2010 +0000
+++ b/config/locales/en.yml	Wed Dec 08 18:37:21 2010 +0000
@@ -870,6 +870,7 @@
   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_user_ssamr_description_info: 'Description of you interests and experience as a Researcher/Developer in the field of Audio and Music.'
+  text_issue_parent_issue_info: 'If this is a subtask, please insert its parent task number or write the main task name.'
   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."