2008-02-10 16:17:41 +03:00
|
|
|
<h2><%= l(:label_bulk_edit_selected_issues) %></h2>
|
2007-10-09 23:07:19 +04:00
|
|
|
|
2008-02-10 16:17:41 +03:00
|
|
|
<ul><%= @issues.collect {|i| content_tag('li', link_to(h("#{i.tracker} ##{i.id}"), { :action => 'show', :id => i }) + h(": #{i.subject}")) }.join("\n") %></ul>
|
|
|
|
|
|
|
|
<% form_tag() do %>
|
|
|
|
<%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
|
|
|
|
<div class="box">
|
|
|
|
<fieldset>
|
|
|
|
<legend><%= l(:label_change_properties) %></legend>
|
2007-10-09 23:07:19 +04:00
|
|
|
<p>
|
2008-01-06 20:06:14 +03:00
|
|
|
<% if @available_statuses.any? %>
|
2007-10-12 19:55:06 +04:00
|
|
|
<label><%= l(:field_status) %>:
|
|
|
|
<%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %></label>
|
|
|
|
<% end %>
|
2007-10-09 23:07:19 +04:00
|
|
|
<label><%= l(:field_priority) %>:
|
2007-10-11 21:20:02 +04:00
|
|
|
<%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(Enumeration.get_values('IPRI'), :id, :name)) %></label>
|
2007-10-09 23:07:19 +04:00
|
|
|
<label><%= l(:field_category) %>:
|
2007-10-11 21:20:02 +04:00
|
|
|
<%= select_tag('category_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label>
|
2007-10-12 19:55:06 +04:00
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<label><%= l(:field_assigned_to) %>:
|
2007-10-23 21:15:00 +04:00
|
|
|
<%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
|
2007-10-18 20:29:23 +04:00
|
|
|
content_tag('option', l(:label_nobody), :value => 'none') +
|
|
|
|
options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
|
2007-10-09 23:07:19 +04:00
|
|
|
<label><%= l(:field_fixed_version) %>:
|
2007-10-11 21:20:02 +04:00
|
|
|
<%= select_tag('fixed_version_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@project.versions, :id, :name)) %></label>
|
2007-10-09 23:07:19 +04:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
|
|
|
<label><%= l(:field_start_date) %>:
|
|
|
|
<%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label>
|
|
|
|
<label><%= l(:field_due_date) %>:
|
|
|
|
<%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label>
|
|
|
|
<label><%= l(:field_done_ratio) %>:
|
2007-10-11 21:20:02 +04:00
|
|
|
<%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label>
|
2007-10-09 23:07:19 +04:00
|
|
|
</p>
|
|
|
|
</fieldset>
|
2008-02-10 16:17:41 +03:00
|
|
|
|
|
|
|
<fieldset><legend><%= l(:field_notes) %></legend>
|
|
|
|
<%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
|
|
|
|
<%= wikitoolbar_for 'notes' %>
|
2007-10-09 23:07:19 +04:00
|
|
|
</div>
|
2008-02-10 16:17:41 +03:00
|
|
|
|
|
|
|
<p><%= submit_tag l(:button_submit) %>
|
|
|
|
<% end %>
|