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