Chris@0
|
1 <h2><%= l(:label_bulk_edit_selected_issues) %></h2>
|
Chris@0
|
2
|
Chris@0
|
3 <ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul>
|
Chris@0
|
4
|
Chris@14
|
5 <% form_tag(:action => 'bulk_update') do %>
|
Chris@0
|
6 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
|
Chris@0
|
7 <div class="box tabular">
|
Chris@0
|
8 <fieldset class="attributes">
|
Chris@0
|
9 <legend><%= l(:label_change_properties) %></legend>
|
Chris@0
|
10
|
Chris@0
|
11 <div class="splitcontentleft">
|
Chris@0
|
12 <p>
|
Chris@0
|
13 <label><%= l(:field_tracker) %></label>
|
Chris@0
|
14 <%= select_tag('issue[tracker_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.trackers, :id, :name)) %>
|
Chris@0
|
15 </p>
|
Chris@0
|
16 <% if @available_statuses.any? %>
|
Chris@0
|
17 <p>
|
Chris@0
|
18 <label><%= l(:field_status) %></label>
|
Chris@0
|
19 <%= select_tag('issue[status_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
|
Chris@0
|
20 </p>
|
Chris@0
|
21 <% end %>
|
Chris@0
|
22 <p>
|
Chris@0
|
23 <label><%= l(:field_priority) %></label>
|
Chris@0
|
24 <%= select_tag('issue[priority_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>
|
Chris@0
|
25 </p>
|
Chris@0
|
26 <p>
|
Chris@0
|
27 <label><%= l(:field_assigned_to) %></label>
|
Chris@0
|
28 <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') +
|
Chris@0
|
29 content_tag('option', l(:label_nobody), :value => 'none') +
|
Chris@0
|
30 options_from_collection_for_select(@project.assignable_users, :id, :name)) %>
|
Chris@0
|
31 </p>
|
Chris@0
|
32 <p>
|
Chris@0
|
33 <label><%= l(:field_category) %></label>
|
Chris@0
|
34 <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') +
|
Chris@0
|
35 content_tag('option', l(:label_none), :value => 'none') +
|
Chris@0
|
36 options_from_collection_for_select(@project.issue_categories, :id, :name)) %>
|
Chris@0
|
37 </p>
|
Chris@0
|
38 <p>
|
Chris@0
|
39 <label><%= l(:field_fixed_version) %></label>
|
Chris@0
|
40 <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') +
|
Chris@0
|
41 content_tag('option', l(:label_none), :value => 'none') +
|
Chris@0
|
42 version_options_for_select(@project.shared_versions.open)) %>
|
Chris@0
|
43 </p>
|
Chris@0
|
44
|
Chris@0
|
45 <% @custom_fields.each do |custom_field| %>
|
Chris@0
|
46 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field) %></p>
|
Chris@0
|
47 <% end %>
|
Chris@0
|
48
|
Chris@0
|
49 <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>
|
Chris@0
|
50 </div>
|
Chris@0
|
51
|
Chris@0
|
52 <div class="splitcontentright">
|
Chris@0
|
53 <p>
|
Chris@0
|
54 <label><%= l(:field_start_date) %></label>
|
Chris@0
|
55 <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %>
|
Chris@0
|
56 </p>
|
Chris@0
|
57 <p>
|
Chris@0
|
58 <label><%= l(:field_due_date) %></label>
|
Chris@0
|
59 <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %>
|
Chris@0
|
60 </p>
|
Chris@0
|
61 <% if Issue.use_field_for_done_ratio? %>
|
Chris@0
|
62 <p>
|
Chris@0
|
63 <label><%= l(:field_done_ratio) %></label>
|
Chris@0
|
64 <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>
|
Chris@0
|
65 </p>
|
Chris@0
|
66 <% end %>
|
Chris@0
|
67 </div>
|
Chris@0
|
68
|
Chris@0
|
69 </fieldset>
|
Chris@0
|
70
|
Chris@0
|
71 <fieldset><legend><%= l(:field_notes) %></legend>
|
Chris@0
|
72 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
Chris@0
|
73 <%= wikitoolbar_for 'notes' %>
|
Chris@0
|
74 </fieldset>
|
Chris@0
|
75 </div>
|
Chris@0
|
76
|
Chris@0
|
77 <p><%= submit_tag l(:button_submit) %></p>
|
Chris@0
|
78 <% end %>
|