[#4327] Added the Deliverable field to the bulk edit.

This commit is contained in:
Eric Davis
2010-08-03 11:24:23 -07:00
parent 6ad50c57b2
commit 72aeaac59a
5 changed files with 83 additions and 0 deletions
@@ -0,0 +1,14 @@
<% if project.module_enabled?(:contracts) %>
<p>
<%= label_tag(:deliverable_id, l(:field_deliverable)) %>
<% options = project.contracts.inject([]) {|data, contract|
data << [contract.name, contract.deliverables.collect {|d| [d.title, d.id]} ]
} %>
<%= select_tag('deliverable_id',
content_tag('option', l(:label_no_change_option), :value => '') +
content_tag('option', l(:label_none), :value => 'none') +
grouped_options_for_select(options)) %>
</p>
<% end %>