##// END OF EJS Templates
Fixes #765: Date pickers don't work on issues' bulk edit view....
Jean-Philippe Lang -
r1174:4f9f3097d905
parent child
Show More
@@ -1,45 +1,52
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', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label>
18 <%= select_tag('category_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label>
19 </p>
19 </p>
20 <p>
20 <p>
21 <label><%= l(:field_assigned_to) %>:
21 <label><%= l(:field_assigned_to) %>:
22 <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
22 <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
23 content_tag('option', l(:label_nobody), :value => 'none') +
23 content_tag('option', l(:label_nobody), :value => 'none') +
24 options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
24 options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
25 <label><%= l(:field_fixed_version) %>:
25 <label><%= l(:field_fixed_version) %>:
26 <%= select_tag('fixed_version_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.versions, :id, :name)) %></label>
26 <%= select_tag('fixed_version_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.versions, :id, :name)) %></label>
27 </p>
27 </p>
28
28
29 <p>
29 <p>
30 <label><%= l(:field_start_date) %>:
30 <label><%= l(:field_start_date) %>:
31 <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label>
31 <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label>
32 <label><%= l(:field_due_date) %>:
32 <label><%= l(:field_due_date) %>:
33 <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label>
33 <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label>
34 <label><%= l(:field_done_ratio) %>:
34 <label><%= l(:field_done_ratio) %>:
35 <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label>
35 <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label>
36 </p>
36 </p>
37 </fieldset>
37 </fieldset>
38
38
39 <fieldset><legend><%= l(:field_notes) %></legend>
39 <fieldset><legend><%= l(:field_notes) %></legend>
40 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
40 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
41 <%= wikitoolbar_for 'notes' %>
41 <%= wikitoolbar_for 'notes' %>
42 </div>
42 </div>
43
43
44 <p><%= submit_tag l(:button_submit) %>
44 <p><%= submit_tag l(:button_submit) %>
45 <% end %>
45 <% end %>
46
47 <% content_for :header_tags do %>
48 <%= javascript_include_tag 'calendar/calendar' %>
49 <%= javascript_include_tag "calendar/lang/calendar-#{current_language}.js" %>
50 <%= javascript_include_tag 'calendar/calendar-setup' %>
51 <%= stylesheet_link_tag 'calendar' %>
52 <% end %>
General Comments 0
You need to be logged in to leave comments. Login now