2008-02-10 16:17:41 +03:00
|
|
|
<h2><%= l(:button_move) %></h2>
|
2006-10-15 18:33:04 +04:00
|
|
|
|
2008-02-10 16:17:41 +03:00
|
|
|
<ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul>
|
2006-10-15 18:33:04 +04:00
|
|
|
|
2008-02-10 16:17:41 +03:00
|
|
|
<% form_tag({}, :id => 'move_form') do %>
|
|
|
|
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
|
2006-10-15 18:33:04 +04:00
|
|
|
|
2008-02-10 16:17:41 +03:00
|
|
|
<div class="box tabular">
|
2009-01-25 16:18:44 +03:00
|
|
|
<p><label for="new_project_id"><%=l(:field_project)%>:</label>
|
2007-11-20 23:29:03 +03:00
|
|
|
<%= select_tag "new_project_id",
|
2009-01-25 16:52:40 +03:00
|
|
|
project_tree_options_for_select(@allowed_projects, :selected => @target_project),
|
2008-02-11 21:06:38 +03:00
|
|
|
:onchange => remote_function(:url => { :action => 'move' },
|
2007-11-20 23:29:03 +03:00
|
|
|
:method => :get,
|
|
|
|
:update => 'content',
|
|
|
|
:with => "Form.serialize('move_form')") %></p>
|
2006-10-15 18:33:04 +04:00
|
|
|
|
2009-01-25 16:18:44 +03:00
|
|
|
<p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label>
|
2007-11-15 00:54:16 +03:00
|
|
|
<%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
|
2009-01-25 16:12:56 +03:00
|
|
|
|
|
|
|
<p><label for="copy_options_copy"><%= l(:button_copy)%></label>
|
|
|
|
<%= check_box_tag "copy_options[copy]", "1" %></p>
|
2006-10-15 18:33:04 +04:00
|
|
|
</div>
|
2008-02-10 16:17:41 +03:00
|
|
|
|
2006-10-15 18:33:04 +04:00
|
|
|
<%= submit_tag l(:button_move) %>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% end %>
|