2009-12-06 15:52:03 +03:00
|
|
|
<h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2>
|
2006-10-15 18:33:04 +04:00
|
|
|
|
2009-11-15 17:07:37 +03:00
|
|
|
<ul>
|
|
|
|
<% @issues.each do |issue| -%>
|
|
|
|
<li><%= link_to_issue issue %></li>
|
|
|
|
<% end -%>
|
|
|
|
</ul>
|
2006-10-15 18:33:04 +04:00
|
|
|
|
2010-08-11 18:42:10 +04:00
|
|
|
<% form_tag({:action => 'create'}, :id => 'move_form') do %>
|
2008-02-10 16:17:41 +03:00
|
|
|
<%= @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),
|
2010-08-11 18:42:10 +04:00
|
|
|
:onchange => remote_function(:url => { :action => 'new' },
|
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
|
|
|
|
2009-12-05 01:46:12 +03:00
|
|
|
<p>
|
|
|
|
<label><%= l(:field_assigned_to) %></label>
|
|
|
|
<%= 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)) %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<label><%= l(:field_status) %></label>
|
|
|
|
<%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
|
|
|
|
</p>
|
|
|
|
|
2010-10-25 22:44:41 +04:00
|
|
|
<p>
|
|
|
|
<label><%= l(:field_priority) %></label>
|
|
|
|
<%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>
|
|
|
|
</p>
|
|
|
|
|
2009-12-05 01:46:12 +03:00
|
|
|
<p>
|
|
|
|
<label><%= l(:field_start_date) %></label>
|
|
|
|
<%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<label><%= l(:field_due_date) %></label>
|
|
|
|
<%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
|
|
|
|
</p>
|
2010-02-19 22:10:21 +03:00
|
|
|
|
2010-10-25 22:44:46 +04:00
|
|
|
<fieldset><legend><%= l(:field_notes) %></legend>
|
|
|
|
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
|
|
|
<%= wikitoolbar_for 'notes' %>
|
|
|
|
</fieldset>
|
|
|
|
|
2010-02-24 00:04:12 +03:00
|
|
|
<%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %>
|
2006-10-15 18:33:04 +04:00
|
|
|
</div>
|
2008-02-10 16:17:41 +03:00
|
|
|
|
2009-12-06 15:52:03 +03:00
|
|
|
<% 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 %>
|
2007-01-26 22:56:25 +03:00
|
|
|
<% end %>
|