annotate app/views/issues/bulk_edit.rhtml @ 119:8661b858af72

* Update to Redmine trunk rev 4705
author Chris Cannam
date Thu, 13 Jan 2011 14:12:06 +0000
parents 94944d00e43c
children cbce1fd3b1b7
rev   line source
Chris@0 1 <h2><%= l(:label_bulk_edit_selected_issues) %></h2>
Chris@0 2
Chris@0 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>
Chris@0 4
Chris@14 5 <% form_tag(:action => 'bulk_update') do %>
Chris@0 6 <%= @issues.collect {|i| hidden_field_tag('ids[]', i.id)}.join %>
Chris@0 7 <div class="box tabular">
Chris@0 8 <fieldset class="attributes">
Chris@0 9 <legend><%= l(:label_change_properties) %></legend>
Chris@0 10
Chris@0 11 <div class="splitcontentleft">
Chris@0 12 <p>
Chris@0 13 <label><%= l(:field_tracker) %></label>
chris@37 14 <%= select_tag('issue[tracker_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@trackers, :id, :name)) %>
Chris@0 15 </p>
Chris@0 16 <% if @available_statuses.any? %>
Chris@0 17 <p>
Chris@0 18 <label><%= l(:field_status) %></label>
Chris@0 19 <%= select_tag('issue[status_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(@available_statuses, :id, :name)) %>
Chris@0 20 </p>
Chris@0 21 <% end %>
Chris@0 22 <p>
Chris@0 23 <label><%= l(:field_priority) %></label>
Chris@0 24 <%= select_tag('issue[priority_id]', "<option value=\"\">#{l(:label_no_change_option)}</option>" + options_from_collection_for_select(IssuePriority.all, :id, :name)) %>
Chris@0 25 </p>
Chris@0 26 <p>
Chris@0 27 <label><%= l(:field_assigned_to) %></label>
Chris@0 28 <%= select_tag('issue[assigned_to_id]', content_tag('option', l(:label_no_change_option), :value => '') +
Chris@0 29 content_tag('option', l(:label_nobody), :value => 'none') +
chris@37 30 options_from_collection_for_select(@assignables, :id, :name)) %>
Chris@0 31 </p>
chris@37 32 <% if @project %>
Chris@0 33 <p>
Chris@0 34 <label><%= l(:field_category) %></label>
Chris@0 35 <%= select_tag('issue[category_id]', content_tag('option', l(:label_no_change_option), :value => '') +
Chris@0 36 content_tag('option', l(:label_none), :value => 'none') +
Chris@0 37 options_from_collection_for_select(@project.issue_categories, :id, :name)) %>
Chris@0 38 </p>
chris@37 39 <% end %>
chris@37 40 <% #TODO: allow editing versions when multiple projects %>
chris@37 41 <% if @project %>
Chris@0 42 <p>
Chris@0 43 <label><%= l(:field_fixed_version) %></label>
Chris@0 44 <%= select_tag('issue[fixed_version_id]', content_tag('option', l(:label_no_change_option), :value => '') +
Chris@0 45 content_tag('option', l(:label_none), :value => 'none') +
Chris@119 46 version_options_for_select(@project.shared_versions.open.sort)) %>
Chris@0 47 </p>
chris@37 48 <% end %>
Chris@0 49
Chris@0 50 <% @custom_fields.each do |custom_field| %>
Chris@0 51 <p><label><%= h(custom_field.name) %></label> <%= custom_field_tag_for_bulk_edit('issue', custom_field) %></p>
Chris@0 52 <% end %>
Chris@0 53
Chris@0 54 <%= call_hook(:view_issues_bulk_edit_details_bottom, { :issues => @issues }) %>
Chris@0 55 </div>
Chris@0 56
Chris@0 57 <div class="splitcontentright">
Chris@0 58 <p>
Chris@0 59 <label><%= l(:field_start_date) %></label>
Chris@0 60 <%= text_field_tag 'issue[start_date]', '', :size => 10 %><%= calendar_for('issue_start_date') %>
Chris@0 61 </p>
Chris@0 62 <p>
Chris@0 63 <label><%= l(:field_due_date) %></label>
Chris@0 64 <%= text_field_tag 'issue[due_date]', '', :size => 10 %><%= calendar_for('issue_due_date') %>
Chris@0 65 </p>
Chris@0 66 <% if Issue.use_field_for_done_ratio? %>
Chris@0 67 <p>
Chris@0 68 <label><%= l(:field_done_ratio) %></label>
Chris@0 69 <%= select_tag 'issue[done_ratio]', options_for_select([[l(:label_no_change_option), '']] + (0..10).to_a.collect {|r| ["#{r*10} %", r*10] }) %>
Chris@0 70 </p>
Chris@0 71 <% end %>
Chris@0 72 </div>
Chris@0 73
Chris@0 74 </fieldset>
Chris@0 75
Chris@0 76 <fieldset><legend><%= l(:field_notes) %></legend>
Chris@0 77 <%= text_area_tag 'notes', @notes, :cols => 60, :rows => 10, :class => 'wiki-edit' %>
Chris@0 78 <%= wikitoolbar_for 'notes' %>
Chris@0 79 </fieldset>
Chris@0 80 </div>
Chris@0 81
Chris@0 82 <p><%= submit_tag l(:button_submit) %></p>
Chris@0 83 <% end %>