<%#-- copyright OpenProject is an open source project management software. Copyright (C) 2012-2020 the OpenProject GmbH This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows: Copyright (C) 2006-2017 Jean-Philippe Lang Copyright (C) 2010-2013 the ChiliProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See docs/COPYRIGHT.rdoc for more details. ++#%> <% html_title @copy ? l(:button_copy) : l(:button_move), l('activerecord.models.work_package') %>

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

<%= styled_form_tag({action: 'create'}, id: 'move_form', data: { 'refresh-url': url_for(action: 'new'), 'input-selector': '#new_project_id' }, class: '-wide-labels augment--refresh-on-form-changes') do %> <% @work_packages.each do |wp| %> <%= hidden_field_tag 'ids[]', wp.id %> <% end %> <%= back_url_hidden_field_tag %>
<%= l(:label_change_properties) %>
<%= styled_select_tag "new_project_id", project_tree_options_for_select(@allowed_projects, selected: @target_project), class: 'remote-field--input' %>
<%= styled_select_tag("new_type_id", content_tag('option', l(:label_no_change_option), value: '') + options_from_collection_for_select(@types, "id", "name")) %>
<%= styled_select_tag('status_id', content_tag('option', l(:label_no_change_option), value: '') + options_from_collection_for_select(@available_statuses, :id, :name)) %>
<%= styled_select_tag('version_id', content_tag('option', l(:label_no_change_option), value: '') + version_options_for_select(@available_versions)) %>
<%= styled_select_tag('priority_id', content_tag('option', l(:label_no_change_option), value: '') + options_from_collection_for_select(IssuePriority.active, :id, :name)) %>
<%= styled_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.possible_assignees, :id, :name)) %>
<%= styled_select_tag('responsible_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.possible_responsibles, :id, :name)) %>
<%= styled_text_field_tag 'start_date', '', size: 10, class: '-augmented-datepicker' %>
<%= styled_text_field_tag 'due_date', '', size: 10, class: '-augmented-datepicker' %>
<%= Journal.human_attribute_name(:notes) %> <%= label_tag 'notes', Journal.human_attribute_name(:notes), class: 'hidden-for-sighted' %> <%= styled_text_area_tag 'notes', @notes, cols: 60, rows: 10, class: 'wiki-edit', with_text_formatting: true %>
<%= call_hook(:view_work_packages_move_bottom, work_packages: @work_packages, target_project: @target_project, copy: !!@copy) %>
<% if @copy %> <%= hidden_field_tag("copy") %> <%= styled_submit_tag l(:button_copy), class: '-highlight' %> <%= styled_submit_tag l(:button_copy_and_follow), name: 'follow', class: '-highlight' %> <% else %> <%= styled_submit_tag l(:button_move), class: '-highlight' %> <%= styled_submit_tag l(:button_move_and_follow), name: 'follow', class: '-highlight' %> <% end %> <% end %> <% content_for :header_tags do %> <%= robot_exclusion_tag %> <% end %>