OSDN Git Service

Enhanced the Issue Bulk Copy feature:
[redminele/redmine.git] / app / views / issues / move.rhtml
1 <h2><%= l(:button_move) %></h2>
2
3 <ul>
4 <% @issues.each do |issue| -%>
5         <li><%= link_to_issue issue %></li>
6 <% end -%>
7 </ul>
8
9 <% form_tag({}, :id => 'move_form') do %>
10 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
11
12 <div class="box tabular">
13 <p><label for="new_project_id"><%=l(:field_project)%>:</label>
14 <%= select_tag "new_project_id",
15                project_tree_options_for_select(@allowed_projects, :selected => @target_project),
16                :onchange => remote_function(:url => { :action => 'move' },
17                                             :method => :get,
18                                             :update => 'content',
19                                             :with => "Form.serialize('move_form')") %></p>
20
21 <p><label for="new_tracker_id"><%=l(:field_tracker)%>:</label>
22 <%= select_tag "new_tracker_id", "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, "id", "name") %></p>
23
24 <p>
25   <label><%= l(:field_assigned_to) %></label>
26   <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
27                                    content_tag('option', l(:label_nobody), :value => 'none') +
28                                    options_from_collection_for_select(@target_project.assignable_users, :id, :name)) %>
29 </p>
30
31 <p>
32   <label><%= l(:field_status) %></label>
33   <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
34 </p>
35
36 <p>
37   <label><%= l(:field_start_date) %></label>
38   <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %>
39 </p>
40
41 <p>
42   <label><%= l(:field_due_date) %></label>
43   <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %>
44 </p>
45
46 <p><label for="copy_options_copy"><%= l(:button_copy)%></label>
47 <%= check_box_tag "copy_options[copy]", "1", @copy %></p>
48 </div>
49
50 <%= submit_tag l(:button_move) %> 
51 <%= submit_tag l(:button_move_and_follow), :name => 'follow' %>
52 <% end %>