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@37
|
14 <%= select_tag('issue[tracker_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@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@37
|
30 options_from_collection_for_select(@assignables, :id, :name)) %>
|
Chris@0
|
31 </p>
|
chris@37
|
32 <% if @project %>
|
Chris@0
|
33 <p>
|
Chris@0
|
34 <label><%= l(:field_category) %></label>
|
Chris@0
|
35 <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') +
|
Chris@0
|
36 content_tag('option', l(:label_none), :value => 'none') +
|
Chris@0
|
37 options_from_collection_for_select(@project.issue_categories, :id, :name)) %>
|
Chris@0
|
38 </p>
|
chris@37
|
39 <% end %>
|
chris@37
|
40 <% #TODO: allow editing versions when multiple projects %>
|
chris@37
|
41 <% if @project %>
|
Chris@0
|
42 <p>
|
Chris@0
|
43 <label><%= l(:field_fixed_version) %></label>
|
Chris@0
|
44 <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') +
|
Chris@0
|
45 content_tag('option', l(:label_none), :value => 'none') +
|
Chris@119
|
46 version_options_for_select(@project.shared_versions.open.sort)) %>
|
Chris@0
|
47 </p>
|
chris@37
|
48 <% end %>
|
Chris@0
|
49
|
Chris@0
|
50 <% @custom_fields.each do |custom_field| %>
|
Chris@441
|
51 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %></p>
|
Chris@0
|
52 <% end %>
|
Chris@0
|
53
|
Chris@0
|
54 <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>
|
Chris@0
|
55 </div>
|
Chris@0
|
56
|
Chris@0
|
57 <div class="splitcontentright">
|
Chris@441
|
58 <% if @project && User.current.allowed_to?(:manage_subtasks, @project) %>
|
Chris@441
|
59 <p>
|
Chris@441
|
60 <label><%= l(:field_parent_issue) %></label>
|
Chris@441
|
61 <%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %>
|
Chris@441
|
62 </p>
|
Chris@441
|
63 <div id="parent_issue_candidates" class="autocomplete"></div>
|
Chris@441
|
64 <%= javascript_tag "observeParentIssueField('#{auto_complete_issues_path(:project_id => @project) }')" %>
|
Chris@441
|
65 <% end %>
|
Chris@0
|
66 <p>
|
Chris@0
|
67 <label><%= l(:field_start_date) %></label>
|
Chris@0
|
68 <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %>
|
Chris@0
|
69 </p>
|
Chris@0
|
70 <p>
|
Chris@0
|
71 <label><%= l(:field_due_date) %></label>
|
Chris@0
|
72 <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %>
|
Chris@0
|
73 </p>
|
Chris@0
|
74 <% if Issue.use_field_for_done_ratio? %>
|
Chris@0
|
75 <p>
|
Chris@0
|
76 <label><%= l(:field_done_ratio) %></label>
|
Chris@0
|
77 <%= 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
|
78 </p>
|
Chris@0
|
79 <% end %>
|
Chris@0
|
80 </div>
|
Chris@0
|
81
|
Chris@0
|
82 </fieldset>
|
Chris@0
|
83
|
Chris@0
|
84 <fieldset><legend><%= l(:field_notes) %></legend>
|
Chris@0
|
85 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
Chris@0
|
86 <%= wikitoolbar_for 'notes' %>
|
Chris@0
|
87 </fieldset>
|
Chris@0
|
88 </div>
|
Chris@0
|
89
|
Chris@0
|
90 <p><%= submit_tag l(:button_submit) %></p>
|
Chris@0
|
91 <% end %>
|