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