From abb83f4c4f08fc4c1611ba5b150329e9af61ffbf Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Barth Date: Sat, 30 Oct 2010 16:15:31 +0000 Subject: [PATCH] Added ability to create issue directly as a subtask of another one. #5484 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Contributed by Felix Schäfer git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4311 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/issues/_form.rhtml | 4 ++-- app/views/issues/new.rhtml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/issues/_form.rhtml b/app/views/issues/_form.rhtml index 7e9a29ee5..2f4996a93 100644 --- a/app/views/issues/_form.rhtml +++ b/app/views/issues/_form.rhtml @@ -8,8 +8,8 @@

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

-<% unless (@issue.new_record? && @issue.parent_issue_id.nil?) || !User.current.allowed_to?(:manage_subtasks, @project) %> -

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

+<% 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 %> diff --git a/app/views/issues/new.rhtml b/app/views/issues/new.rhtml index 310085d7c..13992382f 100644 --- a/app/views/issues/new.rhtml +++ b/app/views/issues/new.rhtml @@ -1,7 +1,7 @@

<%=l(:label_issue_new)%>

<% labelled_tabular_form_for :issue, @issue, :url => {:controller => 'issues', :action => 'create', :project_id => @project}, - :html => {:multipart => true, :id => 'issue-form'} do |f| %> + :html => {:multipart => true, :id => 'issue-form', :class => 'tabular new-issue-form'} do |f| %> <%= error_messages_for 'issue' %>
<%= render :partial => 'issues/form', :locals => {:f => f} %>