##// END OF EJS Templates
Sort target versions list on bulk edit form (#2616)....
Jean-Philippe Lang -
r2328:1e1b34b5676c
parent child
Show More
@@ -1,57 +1,57
1 <h2><%= l(:label_bulk_edit_selected_issues) %></h2>
1 <h2><%= l(:label_bulk_edit_selected_issues) %></h2>
2
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>
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
4
5 <% form_tag() do %>
5 <% form_tag() do %>
6 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
6 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
7 <div class="box">
7 <div class="box">
8 <fieldset>
8 <fieldset>
9 <legend><%= l(:label_change_properties) %></legend>
9 <legend><%= l(:label_change_properties) %></legend>
10 <p>
10 <p>
11 <% if @available_statuses.any? %>
11 <% if @available_statuses.any? %>
12 <label><%= l(:field_status) %>:
12 <label><%= l(:field_status) %>:
13 <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %></label>
13 <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %></label>
14 <% end %>
14 <% end %>
15 <label><%= l(:field_priority) %>:
15 <label><%= l(:field_priority) %>:
16 <%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(Enumeration.get_values('IPRI'), :id, :name)) %></label>
16 <%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(Enumeration.get_values('IPRI'), :id, :name)) %></label>
17 <label><%= l(:field_category) %>:
17 <label><%= l(:field_category) %>:
18 <%= select_tag('category_id', content_tag('option', l(:label_no_change_option), :value => '') +
18 <%= select_tag('category_id', content_tag('option', l(:label_no_change_option), :value => '') +
19 content_tag('option', l(:label_none), :value => 'none') +
19 content_tag('option', l(:label_none), :value => 'none') +
20 options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label>
20 options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label>
21 </p>
21 </p>
22 <p>
22 <p>
23 <label><%= l(:field_assigned_to) %>:
23 <label><%= l(:field_assigned_to) %>:
24 <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
24 <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
25 content_tag('option', l(:label_nobody), :value => 'none') +
25 content_tag('option', l(:label_nobody), :value => 'none') +
26 options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
26 options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
27 <label><%= l(:field_fixed_version) %>:
27 <label><%= l(:field_fixed_version) %>:
28 <%= select_tag('fixed_version_id', content_tag('option', l(:label_no_change_option), :value => '') +
28 <%= select_tag('fixed_version_id', content_tag('option', l(:label_no_change_option), :value => '') +
29 content_tag('option', l(:label_none), :value => 'none') +
29 content_tag('option', l(:label_none), :value => 'none') +
30 options_from_collection_for_select(@project.versions, :id, :name)) %></label>
30 options_from_collection_for_select(@project.versions.sort, :id, :name)) %></label>
31 </p>
31 </p>
32
32
33 <p>
33 <p>
34 <label><%= l(:field_start_date) %>:
34 <label><%= l(:field_start_date) %>:
35 <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label>
35 <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label>
36 <label><%= l(:field_due_date) %>:
36 <label><%= l(:field_due_date) %>:
37 <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label>
37 <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label>
38 <label><%= l(:field_done_ratio) %>:
38 <label><%= l(:field_done_ratio) %>:
39 <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label>
39 <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label>
40 </p>
40 </p>
41
41
42 <% @custom_fields.each do |custom_field| %>
42 <% @custom_fields.each do |custom_field| %>
43 <p><label><%= h(custom_field.name) %></label>
43 <p><label><%= h(custom_field.name) %></label>
44 <%= select_tag "custom_field_values[#{custom_field.id}]", options_for_select([[l(:label_no_change_option), '']] + custom_field.possible_values) %></label>
44 <%= select_tag "custom_field_values[#{custom_field.id}]", options_for_select([[l(:label_no_change_option), '']] + custom_field.possible_values) %></label>
45 </p>
45 </p>
46 <% end %>
46 <% end %>
47
47
48 <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>
48 <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>
49 </fieldset>
49 </fieldset>
50
50
51 <fieldset><legend><%= l(:field_notes) %></legend>
51 <fieldset><legend><%= l(:field_notes) %></legend>
52 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
52 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
53 <%= wikitoolbar_for 'notes' %>
53 <%= wikitoolbar_for 'notes' %>
54 </div>
54 </div>
55
55
56 <p><%= submit_tag l(:button_submit) %>
56 <p><%= submit_tag l(:button_submit) %>
57 <% end %>
57 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now