summaryrefslogtreecommitdiffstats
path: root/app/views/issues
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-08 05:34:07 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-09-08 05:34:07 +0000
commit5003927f13f54850ca9eeac48e353df5e4e325a1 (patch)
tree6af9692d3604e9520af7268f14b728eeed87a120 /app/views/issues
parentffcf1925e3974e2907aa7baa180bbb2a71952a9d (diff)
downloadredmine-5003927f13f54850ca9eeac48e353df5e4e325a1.tar.gz
redmine-5003927f13f54850ca9eeac48e353df5e4e325a1.zip
Option to copy subtasks when copying issue(s) (#6965).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10327 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/issues')
-rw-r--r--app/views/issues/bulk_edit.html.erb7
-rw-r--r--app/views/issues/new.html.erb6
2 files changed, 13 insertions, 0 deletions
diff --git a/app/views/issues/bulk_edit.html.erb b/app/views/issues/bulk_edit.html.erb
index 1312aa303..bec8e2987 100644
--- a/app/views/issues/bulk_edit.html.erb
+++ b/app/views/issues/bulk_edit.html.erb
@@ -77,6 +77,13 @@
</p>
<% end %>
+<% if @copy && @subtasks_present %>
+<p>
+ <label for='copy_subtasks'><%= l(:label_copy_subtasks) %></label>
+ <%= check_box_tag 'copy_subtasks', '1', true %>
+</p>
+<% end %>
+
<%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>
</div>
diff --git a/app/views/issues/new.html.erb b/app/views/issues/new.html.erb
index 63a6e2496..45a258249 100644
--- a/app/views/issues/new.html.erb
+++ b/app/views/issues/new.html.erb
@@ -17,6 +17,12 @@
<%= check_box_tag 'copy_attachments', '1', @copy_attachments %>
</p>
<% end %>
+ <% if @copy_from && !@copy_from.leaf? %>
+ <p>
+ <label for="copy_subtasks"><%= l(:label_copy_subtasks) %></label>
+ <%= check_box_tag 'copy_subtasks', '1', @copy_subtasks %>
+ </p>
+ <% end %>
<p id="attachments_form"><label><%= l(:label_attachment_plural) %></label><%= render :partial => 'attachments/form', :locals => {:container => @issue} %></p>