diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2009-12-04 22:46:12 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2009-12-04 22:46:12 +0000 |
commit | e1781235696fe23851154ebbdc913e970d3c0f3a (patch) | |
tree | 4e8521c7522d590fc7579e0fa3b5e97d91402092 /app/views | |
parent | c870a7b9ef35ed457911638b7a98e7681cfe6d3a (diff) | |
download | redmine-e1781235696fe23851154ebbdc913e970d3c0f3a.tar.gz redmine-e1781235696fe23851154ebbdc913e970d3c0f3a.zip |
Enhanced the Issue Bulk Copy feature:
* Add a Copy option to the Context menu for multiple issues.
* Added assigned to, status, start and due date options to the move/copy form.
* Allow Issue#move_to to change attributes on the moved/copied issue.
#4117
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3122 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/issues/context_menu.rhtml | 10 | ||||
-rw-r--r-- | app/views/issues/move.rhtml | 24 |
2 files changed, 31 insertions, 3 deletions
diff --git a/app/views/issues/context_menu.rhtml b/app/views/issues/context_menu.rhtml index d2c673d77..c67c1bcd5 100644 --- a/app/views/issues/context_menu.rhtml +++ b/app/views/issues/context_menu.rhtml @@ -88,8 +88,6 @@ </li> <% if !@issue.nil? %> - <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, - :class => 'icon-copy', :disabled => !@can[:copy] %></li> <% if @can[:log_time] -%> <li><%= context_menu_link l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon-time-add' %></li> @@ -99,6 +97,14 @@ <% end %> <% end %> +<% if @issue.present? %> + <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue}, + :class => 'icon-copy', :disabled => !@can[:copy] %></li> +<% else %> + <li><%= context_menu_link l(:button_copy), {:controller => 'issues', :action => 'move', :ids => @issues.collect(&:id), :copy_options => {:copy => 't'}}, + :class => 'icon-copy', :disabled => !@can[:move] %></li> +<% end %> + <li><%= context_menu_link l(:button_move), {:controller => 'issues', :action => 'move', :ids => @issues.collect(&:id)}, :class => 'icon-move', :disabled => !@can[:move] %></li> <li><%= context_menu_link l(:button_delete), {:controller => 'issues', :action => 'destroy', :ids => @issues.collect(&:id)}, diff --git a/app/views/issues/move.rhtml b/app/views/issues/move.rhtml index 0d4717f53..0d5cb130d 100644 --- a/app/views/issues/move.rhtml +++ b/app/views/issues/move.rhtml @@ -21,8 +21,30 @@ <p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label> <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p> +<p> + <label><%= l(:field_assigned_to) %></label> + <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') + + content_tag('option', l(:label_nobody), :value => 'none') + + options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %> +</p> + +<p> + <label><%= l(:field_status) %></label> + <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %> +</p> + +<p> + <label><%= l(:field_start_date) %></label> + <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %> +</p> + +<p> + <label><%= l(:field_due_date) %></label> + <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %> +</p> + <p><label for="copy_options_copy"><%= l(:button_copy)%></label> -<%= check_box_tag "copy_options[copy]", "1" %></p> +<%= check_box_tag "copy_options[copy]", "1", @copy %></p> </div> <%= submit_tag l(:button_move) %> |