You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

bulk_edit.rhtml 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <h2><%= l(:label_bulk_edit_selected_issues) %></h2>
  2. <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. <% form_tag() do %>
  4. <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
  5. <div class="box">
  6. <fieldset>
  7. <legend><%= l(:label_change_properties) %></legend>
  8. <p>
  9. <% if @available_statuses.any? %>
  10. <label><%= l(:field_status) %>:
  11. <%= select_tag('status_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %></label>
  12. <% end %>
  13. <label><%= l(:field_priority) %>:
  14. <%= select_tag('priority_id', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(Enumeration.get_values('IPRI'), :id, :name)) %></label>
  15. <label><%= l(:field_category) %>:
  16. <%= select_tag('category_id', content_tag('option', l(:label_no_change_option), :value => '') +
  17. content_tag('option', l(:label_none), :value => 'none') +
  18. options_from_collection_for_select(@project.issue_categories, :id, :name)) %></label>
  19. </p>
  20. <p>
  21. <label><%= l(:field_assigned_to) %>:
  22. <%= select_tag('assigned_to_id', content_tag('option', l(:label_no_change_option), :value => '') +
  23. content_tag('option', l(:label_nobody), :value => 'none') +
  24. options_from_collection_for_select(@project.assignable_users, :id, :name)) %></label>
  25. <label><%= l(:field_fixed_version) %>:
  26. <%= select_tag('fixed_version_id', content_tag('option', l(:label_no_change_option), :value => '') +
  27. content_tag('option', l(:label_none), :value => 'none') +
  28. options_from_collection_for_select(@project.versions, :id, :name)) %></label>
  29. </p>
  30. <p>
  31. <label><%= l(:field_start_date) %>:
  32. <%= text_field_tag 'start_date', '', :size => 10 %><%= calendar_for('start_date') %></label>
  33. <label><%= l(:field_due_date) %>:
  34. <%= text_field_tag 'due_date', '', :size => 10 %><%= calendar_for('due_date') %></label>
  35. <label><%= l(:field_done_ratio) %>:
  36. <%= select_tag 'done_ratio', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %></label>
  37. </p>
  38. </fieldset>
  39. <fieldset><legend><%= l(:field_notes) %></legend>
  40. <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
  41. <%= wikitoolbar_for 'notes' %>
  42. </div>
  43. <p><%= submit_tag l(:button_submit) %>
  44. <% end %>