[#4327] Add a select field to selecting the deliverable for an issue.

This commit is contained in:
Eric Davis committed 2010-08-02 16:07:59 -07:00
1 parent ad8dec8638
commit 729acf200d
5 files changed
+66 -29

No files matched your search

@@ -0,0 +1,9 @@
<% if project.module_enabled?(:contracts) %>
<p>
<% options = project.contracts.inject([]) {|data, contract|
data << [contract.name, contract.deliverables.collect {|d| [d.title, d.id]} ]
} %>
<%= form.select(:deliverable_id, grouped_options_for_select(options, issue.deliverable_id), {:include_blank => true}) %>
</p>
<% end %>