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@119
|
13 <fieldset class="attributes">
|
Chris@119
|
14 <legend><%= l(:label_change_properties) %></legend>
|
Chris@119
|
15
|
Chris@119
|
16 <div class="splitcontentleft">
|
Chris@14
|
17 <p><label for="new_project_id"><%=l(:field_project)%>:</label>
|
Chris@14
|
18 <%= select_tag "new_project_id",
|
Chris@14
|
19 project_tree_options_for_select(@allowed_projects, :selected => @target_project),
|
Chris@14
|
20 :onchange => remote_function(:url => { :action => 'new' },
|
Chris@14
|
21 :method => :get,
|
Chris@14
|
22 :update => 'content',
|
Chris@14
|
23 :with => "Form.serialize('move_form')") %></p>
|
Chris@14
|
24
|
Chris@14
|
25 <p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label>
|
Chris@14
|
26 <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
|
Chris@14
|
27
|
Chris@14
|
28 <p>
|
Chris@14
|
29 <label><%= l(:field_status) %></label>
|
Chris@14
|
30 <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
|
Chris@14
|
31 </p>
|
Chris@14
|
32
|
Chris@14
|
33 <p>
|
chris@37
|
34 <label><%= l(:field_priority) %></label>
|
chris@37
|
35 <%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>
|
chris@37
|
36 </p>
|
chris@37
|
37
|
chris@37
|
38 <p>
|
Chris@119
|
39 <label><%= l(:field_assigned_to) %></label>
|
Chris@119
|
40 <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
|
Chris@119
|
41 content_tag('option', l(:label_nobody), :value => 'none') +
|
Chris@119
|
42 options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %>
|
Chris@119
|
43 </p>
|
Chris@119
|
44 </div>
|
Chris@119
|
45
|
Chris@119
|
46 <div class="splitcontentright">
|
Chris@119
|
47 <p>
|
Chris@14
|
48 <label><%= l(:field_start_date) %></label>
|
Chris@14
|
49 <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
|
Chris@14
|
50 </p>
|
Chris@14
|
51
|
Chris@14
|
52 <p>
|
Chris@14
|
53 <label><%= l(:field_due_date) %></label>
|
Chris@14
|
54 <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
|
Chris@14
|
55 </p>
|
Chris@119
|
56 </div>
|
Chris@119
|
57
|
Chris@119
|
58 </fieldset>
|
Chris@14
|
59
|
chris@37
|
60 <fieldset><legend><%= l(:field_notes) %></legend>
|
chris@37
|
61 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
chris@37
|
62 <%= wikitoolbar_for 'notes' %>
|
chris@37
|
63 </fieldset>
|
chris@37
|
64
|
Chris@14
|
65 <%= call_hook(:view_issues_move_bottom, :issues => @issues, :target_project => @target_project, :copy => !!@copy) %>
|
Chris@14
|
66 </div>
|
Chris@14
|
67
|
Chris@14
|
68 <% if @copy %>
|
Chris@14
|
69 <%= hidden_field_tag("copy_options[copy]", "1") %>
|
Chris@14
|
70 <%= submit_tag l(:button_copy) %>
|
Chris@14
|
71 <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %>
|
Chris@14
|
72 <% else %>
|
Chris@14
|
73 <%= submit_tag l(:button_move) %>
|
Chris@14
|
74 <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
|
Chris@14
|
75 <% end %>
|
Chris@14
|
76 <% end %>
|
Chris@441
|
77 <% content_for :header_tags do %>
|
Chris@441
|
78 <%= robot_exclusion_tag %>
|
Chris@441
|
79 <% end %>
|