<%= @copy ? l(:button_copy) : l(:button_move) %>

<%= form_tag({:action => 'create'}, :id => 'move_form') do %> <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
<%= l(:label_change_properties) %>

<%= select_tag "new_project_id", project_tree_options_for_select(@allowed_projects, :selected => @target_project), :onchange => remote_function(:url => { :action => 'new' }, :method => :get, :update => 'content', :with => "Form.serialize('move_form')") %>

<%= select_tag "new_tracker_id", "" + options_from_collection_for_select(@trackers, "id", "name") %>

<%= select_tag('status_id', "" + options_from_collection_for_select(@available_statuses, :id, :name)) %>

<%= select_tag('priority_id', "" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>

<%= 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)) %>

<%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>

<%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>

<%= l(:field_notes) %> <%= label_tag 'notes', l(:field_notes), :class => 'hidden-for-sighted' %> <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> <%= wikitoolbar_for 'notes' %>
<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %>
<% if @copy %> <%= hidden_field_tag("copy_options[copy]", "1") %> <%= submit_tag l(:button_copy) %> <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> <% else %> <%= submit_tag l(:button_move) %> <%= submit_tag l(:button_move_and_follow), :name => 'follow' %> <% end %> <% end %> <% content_for :header_tags do %> <%= robot_exclusion_tag %> <% end %>