diff --git a/app/views/work_packages/moves/new.html.erb b/app/views/work_packages/moves/new.html.erb index 2acceef8df..09447b7187 100644 --- a/app/views/work_packages/moves/new.html.erb +++ b/app/views/work_packages/moves/new.html.erb @@ -37,89 +37,90 @@ See doc/COPYRIGHT.rdoc for more details. <%= styled_form_tag({action: 'create'}, id: 'move_form', class: '-wide-labels') do %> <%= @work_packages.collect {|i| hidden_field_tag('ids[]', i.id)}.join.html_safe %> <%= 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), - onchange: remote_function(url: { action: 'new' }, - method: :get, - update: 'content', - with: "Form.serialize('move_form')") %> + +
+
+ <%= 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("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('status_id', + content_tag('option', l(:label_no_change_option), value: '') + + options_from_collection_for_select(@available_statuses, :id, :name)) %> +
-
-
- -
- <%= 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('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('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_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 %><%= calendar_for('start_date') %> +
+
+ +
+ <%= styled_text_field_tag 'start_date', '', size: 10 %><%= calendar_for('start_date') %> +
-
-
- -
- <%= styled_text_field_tag 'due_date', '', size: 10 %><%= calendar_for('due_date') %> +
+ +
+ <%= styled_text_field_tag 'due_date', '', size: 10 %><%= calendar_for('due_date') %> +
-
-
-
- <%= 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' %> - <%= wikitoolbar_for 'notes' %> -
- <%= call_hook(:view_work_packages_move_bottom, work_packages: @work_packages, target_project: @target_project, copy: !!@copy) %> -
+
+
+ <%= 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' %> + <%= wikitoolbar_for 'notes' %> +
+ <%= 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' %>