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