From 3991d0885832620d55f6ca34689e0680be340f4a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Mon, 11 Apr 2011 18:01:25 +0000 Subject: [PATCH] Moved the parent issue field above start/due date fields. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5418 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_attributes.rhtml | 5 +++++ app/views/issues/_form.rhtml | 7 ------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/app/views/issues/_attributes.rhtml b/app/views/issues/_attributes.rhtml index e10858b09..555a65653 100644 --- a/app/views/issues/_attributes.rhtml +++ b/app/views/issues/_attributes.rhtml @@ -31,6 +31,11 @@
+<% if User.current.allowed_to?(:manage_subtasks, @project) %> +

<%= f.text_field :parent_issue_id, :size => 10 %>

+
+<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> +<% end %>

<%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %>

<%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %>

<%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %>

diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml index 2f4996a93..63def343a 100644 --- a/app/views/issues/_form.rhtml +++ b/app/views/issues/_form.rhtml @@ -7,13 +7,6 @@ :with => "Form.serialize('issue-form')" %>

<%= f.text_field :subject, :size => 80, :required => true %>

- -<% if User.current.allowed_to?(:manage_subtasks, @project) %> -

<%= f.text_field :parent_issue_id, :size => 10 %>

-
-<%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:id => @issue, :project_id => @project) }')" %> -<% end %> -

<%= f.text_area :description, :cols => 60, :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min), -- 2.39.5