Chris@14
|
1 <h2><%= @copy ? l(:button_copy) : l(:button_move) %></h2>
|
Chris@14
|
2
|
Chris@14
|
3 <ul>
|
Chris@14
|
4 <% @issues.each do |issue| -%>
|
Chris@14
|
5 <li><%= link_to_issue issue %></li>
|
Chris@14
|
6 <% end -%>
|
Chris@14
|
7 </ul>
|
Chris@14
|
8
|
Chris@14
|
9 <% form_tag({:action => 'create'}, :id => 'move_form') do %>
|
Chris@14
|
10 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
|
Chris@14
|
11
|
Chris@14
|
12 <div class="box tabular">
|
Chris@14
|
13 <p><label for="new_project_id"><%=l(:field_project)%>:</label>
|
Chris@14
|
14 <%= select_tag "new_project_id",
|
Chris@14
|
15 project_tree_options_for_select(@allowed_projects, :selected => @target_project),
|
Chris@14
|
16 :onchange => remote_function(:url => { :action => 'new' },
|
Chris@14
|
17 :method => :get,
|
Chris@14
|
18 :update => 'content',
|
Chris@14
|
19 :with => "Form.serialize('move_form')") %></p>
|
Chris@14
|
20
|
Chris@14
|
21 <p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label>
|
Chris@14
|
22 <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
|
Chris@14
|
23
|
Chris@14
|
24 <p>
|
Chris@14
|
25 <label><%= l(:field_assigned_to) %></label>
|
Chris@14
|
26 <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
|
Chris@14
|
27 content_tag('option', l(:label_nobody), :value => 'none') +
|
Chris@14
|
28 options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %>
|
Chris@14
|
29 </p>
|
Chris@14
|
30
|
Chris@14
|
31 <p>
|
Chris@14
|
32 <label><%= l(:field_status) %></label>
|
Chris@14
|
33 <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
|
Chris@14
|
34 </p>
|
Chris@14
|
35
|
Chris@14
|
36 <p>
|
chris@37
|
37 <label><%= l(:field_priority) %></label>
|
chris@37
|
38 <%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>
|
chris@37
|
39 </p>
|
chris@37
|
40
|
chris@37
|
41 <p>
|
Chris@14
|
42 <label><%= l(:field_start_date) %></label>
|
Chris@14
|
43 <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
|
Chris@14
|
44 </p>
|
Chris@14
|
45
|
Chris@14
|
46 <p>
|
Chris@14
|
47 <label><%= l(:field_due_date) %></label>
|
Chris@14
|
48 <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
|
Chris@14
|
49 </p>
|
Chris@14
|
50
|
chris@37
|
51 <fieldset><legend><%= l(:field_notes) %></legend>
|
chris@37
|
52 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
chris@37
|
53 <%= wikitoolbar_for 'notes' %>
|
chris@37
|
54 </fieldset>
|
chris@37
|
55
|
Chris@14
|
56 <%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %>
|
Chris@14
|
57 </div>
|
Chris@14
|
58
|
Chris@14
|
59 <% if @copy %>
|
Chris@14
|
60 <%= hidden_field_tag("copy_options[copy]", "1") %>
|
Chris@14
|
61 <%= submit_tag l(:button_copy) %>
|
Chris@14
|
62 <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %>
|
Chris@14
|
63 <% else %>
|
Chris@14
|
64 <%= submit_tag l(:button_move) %>
|
Chris@14
|
65 <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
|
Chris@14
|
66 <% end %>
|
Chris@14
|
67 <% end %>
|