summaryrefslogtreecommitdiffstats
path: root/app/views/issues/move.rhtml
blob: 0d4717f53424985bb916c0052c8f46c085f5126f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<h2><%= l(:button_move) %></h2>

<ul>
<% @issues.each do |issue| -%>
	<li><%= link_to_issue issue %></li>
<% end -%>
</ul>

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

<div class="box tabular">
<p><label for="new_project_id"><%=l(:field_project)%>:</label>
<%= select_tag "new_project_id",
               project_tree_options_for_select(@allowed_projects, :selected => @target_project),
               :onchange => remote_function(:url => { :action => 'move' },
                                            :method => :get,
                                            :update => 'content',
                                            :with => "Form.serialize('move_form')") %></p>

<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 for="copy_options_copy"><%= l(:button_copy)%></label>
<%= check_box_tag "copy_options[copy]", "1" %></p>
</div>

<%= submit_tag l(:button_move) %> 
<%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
<% end %>