Mercurial > hg > soundsoftware-site
comparison .svn/pristine/f7/f7fde042d4cd3f9ac874387e64273a9817227595.svn-base @ 1296:038ba2d95de8 redmine-2.2
Fix redmine-2.2 branch update (add missing svn files)
author | Chris Cannam |
---|---|
date | Fri, 14 Jun 2013 09:05:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1294:3e4c3460b6ca | 1296:038ba2d95de8 |
---|---|
1 <h2><%= @copy ? l(:button_copy) : l(:label_bulk_edit_selected_issues) %></h2> | |
2 | |
3 <ul><%= @issues.collect {|i| | |
4 content_tag('li', | |
5 link_to(h("#{i.tracker} ##{i.id}"), | |
6 { :action => 'show', :id => i } | |
7 ) + h(": #{i.subject}")) | |
8 }.join("\n").html_safe %></ul> | |
9 | |
10 <%= form_tag({:action => 'bulk_update'}, :id => 'bulk_edit_form') do %> | |
11 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join("\n").html_safe %> | |
12 <div class="box tabular"> | |
13 <fieldset class="attributes"> | |
14 <legend><%= l(:label_change_properties) %></legend> | |
15 | |
16 <div class="splitcontentleft"> | |
17 <% if @allowed_projects.present? %> | |
18 <p> | |
19 <label for="issue_project_id"><%= l(:field_project) %></label> | |
20 <%= select_tag('issue[project_id]', content_tag('option', l(:label_no_change_option), :value => '') + project_tree_options_for_select(@allowed_projects, :selected => @target_project), | |
21 :onchange => "updateBulkEditFrom('#{escape_javascript url_for(:action => 'bulk_edit', :format => 'js')}')") %> | |
22 </p> | |
23 <% end %> | |
24 <p> | |
25 <label for="issue_tracker_id"><%= l(:field_tracker) %></label> | |
26 <%= select_tag('issue[tracker_id]', content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(@trackers, :id, :name)) %> | |
27 </p> | |
28 <% if @available_statuses.any? %> | |
29 <p> | |
30 <label for='issue_status_id'><%= l(:field_status) %></label> | |
31 <%= select_tag('issue[status_id]',content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(@available_statuses, :id, :name)) %> | |
32 </p> | |
33 <% end %> | |
34 | |
35 <% if @safe_attributes.include?('priority_id') -%> | |
36 <p> | |
37 <label for='issue_priority_id'><%= l(:field_priority) %></label> | |
38 <%= select_tag('issue[priority_id]', content_tag('option', l(:label_no_change_option), :value => '') + options_from_collection_for_select(IssuePriority.active, :id, :name)) %> | |
39 </p> | |
40 <% end %> | |
41 | |
42 <% if @safe_attributes.include?('assigned_to_id') -%> | |
43 <p> | |
44 <label for='issue_assigned_to_id'><%= l(:field_assigned_to) %></label> | |
45 <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
46 content_tag('option', l(:label_nobody), :value => 'none') + | |
47 principals_options_for_select(@assignables)) %> | |
48 </p> | |
49 <% end %> | |
50 | |
51 <% if @safe_attributes.include?('category_id') -%> | |
52 <p> | |
53 <label for='issue_category_id'><%= l(:field_category) %></label> | |
54 <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
55 content_tag('option', l(:label_none), :value => 'none') + | |
56 options_from_collection_for_select(@categories, :id, :name)) %> | |
57 </p> | |
58 <% end %> | |
59 | |
60 <% if @safe_attributes.include?('fixed_version_id') -%> | |
61 <p> | |
62 <label for='issue_fixed_version_id'><%= l(:field_fixed_version) %></label> | |
63 <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') + | |
64 content_tag('option', l(:label_none), :value => 'none') + | |
65 version_options_for_select(@versions.sort)) %> | |
66 </p> | |
67 <% end %> | |
68 | |
69 <% @custom_fields.each do |custom_field| %> | |
70 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field, @projects) %></p> | |
71 <% end %> | |
72 | |
73 <% if @copy && @attachments_present %> | |
74 <p> | |
75 <label for='copy_attachments'><%= l(:label_copy_attachments) %></label> | |
76 <%= check_box_tag 'copy_attachments', '1', true %> | |
77 </p> | |
78 <% end %> | |
79 | |
80 <% if @copy && @subtasks_present %> | |
81 <p> | |
82 <label for='copy_subtasks'><%= l(:label_copy_subtasks) %></label> | |
83 <%= check_box_tag 'copy_subtasks', '1', true %> | |
84 </p> | |
85 <% end %> | |
86 | |
87 <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %> | |
88 </div> | |
89 | |
90 <div class="splitcontentright"> | |
91 <% if @safe_attributes.include?('is_private') %> | |
92 <p> | |
93 <label for='issue_is_private'><%= l(:field_is_private) %></label> | |
94 <%= select_tag('issue[is_private]', content_tag('option', l(:label_no_change_option), :value => '') + | |
95 content_tag('option', l(:general_text_Yes), :value => '1') + | |
96 content_tag('option', l(:general_text_No), :value => '0')) %> | |
97 </p> | |
98 <% end %> | |
99 | |
100 <% if @safe_attributes.include?('parent_issue_id') && @project %> | |
101 <p> | |
102 <label for='issue_parent_issue_id'><%= l(:field_parent_issue) %></label> | |
103 <%= text_field_tag 'issue[parent_issue_id]', '', :size => 10 %> | |
104 </p> | |
105 <%= javascript_tag "observeAutocompleteField('issue_parent_issue_id', '#{escape_javascript auto_complete_issues_path(:project_id => @project)}')" %> | |
106 <% end %> | |
107 | |
108 <% if @safe_attributes.include?('start_date') %> | |
109 <p> | |
110 <label for='issue_start_date'><%= l(:field_start_date) %></label> | |
111 <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %> | |
112 </p> | |
113 <% end %> | |
114 | |
115 <% if @safe_attributes.include?('due_date') %> | |
116 <p> | |
117 <label for='issue_due_date'><%= l(:field_due_date) %></label> | |
118 <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %> | |
119 </p> | |
120 <% end %> | |
121 | |
122 <% if @safe_attributes.include?('done_ratio') && Issue.use_field_for_done_ratio? %> | |
123 <p> | |
124 <label for='issue_done_ratio'><%= l(:field_done_ratio) %></label> | |
125 <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %> | |
126 </p> | |
127 <% end %> | |
128 </div> | |
129 | |
130 </fieldset> | |
131 | |
132 <fieldset><legend><%= l(:field_notes) %></legend> | |
133 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %> | |
134 <%= wikitoolbar_for 'notes' %> | |
135 </fieldset> | |
136 </div> | |
137 | |
138 <p> | |
139 <% if @copy %> | |
140 <%= hidden_field_tag 'copy', '1' %> | |
141 <%= submit_tag l(:button_copy) %> | |
142 <%= submit_tag l(:button_copy_and_follow), :name => 'follow' %> | |
143 <% elsif @target_project %> | |
144 <%= submit_tag l(:button_move) %> | |
145 <%= submit_tag l(:button_move_and_follow), :name => 'follow' %> | |
146 <% else %> | |
147 <%= submit_tag l(:button_submit) %> | |
148 <% end %> | |
149 </p> | |
150 | |
151 <% end %> |