]> source.dussan.org Git - redmine.git/commitdiff
Moved the parent issue field above start/due date fields.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 11 Apr 2011 18:01:25 +0000 (18:01 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Mon, 11 Apr 2011 18:01:25 +0000 (18:01 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5418 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/issues/_attributes.rhtml
app/views/issues/_form.rhtml

index e10858b09e5c9065d3eef46a20f5d739dfad86cf..555a656539751e9138a259b2b80654f1f7848228 100644 (file)
 </div>
 
 <div class="splitcontentright">
+<% 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) }')" %>
+<% end %>
 <p><%= f.text_field :start_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_start_date') if @issue.leaf? %></p>
 <p><%= f.text_field :due_date, :size => 10, :disabled => !@issue.leaf? %><%= calendar_for('issue_due_date') if @issue.leaf? %></p>
 <p><%= f.text_field :estimated_hours, :size => 3, :disabled => !@issue.leaf? %> <%= l(:field_hours) %></p>
index 2f4996a93983e1dcf419f6802b1ae9344c2fdc8b..63def343a3c030fe00f7b5fc1695147b5b8784f7 100644 (file)
@@ -7,13 +7,6 @@
                                      :with => "Form.serialize('issue-form')" %>
 
 <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) }')" %>
-<% end %>
-
 <p><%= f.text_area :description,
                    :cols => 60,
                    :rows => (@issue.description.blank? ? 10 : [[10, @issue.description.length / 50].max, 100].min),